From aea245c70e7d7dd2c0fe4580d1b55299e6c936ef Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Sun, 20 Apr 2008 08:25:14 +0000 Subject: [PATCH] fix bug: comparing string to symbol using string= --- yasnippet.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 98c3958..357e49a 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -126,12 +126,12 @@ proper values: (defvar yas/buffer-local-condition '(if (and (not (bobp)) - (or (string= "font-lock-comment-face" - (get-char-property (1- (point)) - 'face)) - (string= "font-lock-string-face" - (get-char-property (1- (point)) - 'face)))) + (or (equal "font-lock-comment-face" + (get-char-property (1- (point)) + 'face)) + (equal "font-lock-string-face" + (get-char-property (1- (point)) + 'face)))) '(require-snippet-condition . force-in-comment) t) "Condition to yasnippet local to each buffer.