Return unpropertized strings for filename and message-id
authorTassilo Horn <tassilo@member.fsf.org>
Mon, 23 Nov 2009 16:57:31 +0000 (17:57 +0100)
committerCarl Worth <cworth@cworth.org>
Thu, 26 Nov 2009 21:18:20 +0000 (13:18 -0800)
notmuch.el

index d762c6fcffb650b5be3043e85caa6cad4a537350..d7c973c30cafe9c08ba937f95b1672abdfb5923c 100644 (file)
@@ -174,7 +174,7 @@ Unlike builtin `next-line' this version accepts no arguments."
     (if (not (looking-at notmuch-show-message-begin-regexp))
        (re-search-backward notmuch-show-message-begin-regexp))
     (re-search-forward notmuch-show-id-regexp)
-    (buffer-substring (match-beginning 1) (match-end 1))))
+    (buffer-substring-no-properties (match-beginning 1) (match-end 1))))
 
 (defun notmuch-show-get-filename ()
   (save-excursion
@@ -182,7 +182,7 @@ Unlike builtin `next-line' this version accepts no arguments."
     (if (not (looking-at notmuch-show-message-begin-regexp))
        (re-search-backward notmuch-show-message-begin-regexp))
     (re-search-forward notmuch-show-filename-regexp)
-    (buffer-substring (match-beginning 1) (match-end 1))))
+    (buffer-substring-no-properties (match-beginning 1) (match-end 1))))
 
 (defun notmuch-show-set-tags (tags)
   (save-excursion