From 9b31880ed19486c3672f467ce6dfd58faf612e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 22 Dec 2012 18:18:04 +0000 Subject: [PATCH] Fix: double check if mac trigger symbol is available --- yasnippet.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 6f3fd92..175ba13 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -311,8 +311,9 @@ Any other non-nil value, every submenu is listed." (const :tag "No menu" nil)) :group 'yasnippet) -(defcustom yas-trigger-symbol (if (eq window-system 'mac) - (char-to-string ?\x21E5) ;; little ->| sign +(defcustom yas-trigger-symbol (or (and (eq window-system 'mac) + (ignore-errors + (char-to-string ?\x21E5))) ;; little ->| sign " =>") "The text that will be used in menu to represent the trigger." :type 'string