]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Add instructions to the hidden citations/signatures.
authorCarl Worth <cworth@cworth.org>
Fri, 11 Dec 2009 23:52:40 +0000 (15:52 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 11 Dec 2009 23:54:53 +0000 (15:54 -0800)
We've received a user report that the hidden citations were annoying
since the user couldn't tell what was being referred to by subsequent
text. Apparently it wasn't obvious enough that the hidden citation
could be revealed by clicking or by pressing Enter. So make the button
text say as much.

notmuch.el

index 492b5d66f78f20fb5f62ff3c8e4943fb5c6544ff..97914f2cba68b6c879520c9ba7491ec2a0338135 100644 (file)
@@ -613,13 +613,13 @@ which this thread was originally shown."
               (let ((p (point-marker))
                     (cite-button-text
                      (concat "["  (number-to-string (count-lines beg-sub (point)))
-                             "-line citation.]")))
+                             "-line citation. Click/Enter to show.]")))
                 (goto-char (- beg-sub 1))
                 (insert (concat "\n" indent))
                 (insert-button cite-button-text
                                'invisibility-spec invis-spec
                                :type 'notmuch-button-citation-toggle-type)
-                (goto-char (+ (length cite-button-text) p))
+                (forward-line)
               ))))
       (move-to-column depth)
       (if (looking-at notmuch-show-signature-regexp)