]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: use mark instead of point-max in MML quoting.
authorDavid Bremner <bremner@debian.org>
Sat, 4 Feb 2012 18:40:24 +0000 (13:40 -0500)
committerDavid Bremner <bremner@debian.org>
Sat, 4 Feb 2012 18:40:24 +0000 (13:40 -0500)
As Aaron explains in id:"m2vco72tf3.fsf@wal122.wireless-pennnet.upenn.edu"

  Using point-max would include the signature in the quoting as well.
  It would probably be fairly odd to want to put an MML tag in one’s
  signature, but that doesn’t mean that we should break that usage.

We had to use point-max in the 0.11.1 bug-fix release, because the
mark functionality was added post 0.11.

emacs/notmuch-mua.el

index c07b67ba3d389d8b44fbc3b248959baa0107b810..4be7c13d992733bdd4b97f66a431add63014063e 100644 (file)
@@ -121,7 +121,7 @@ list."
   ;; properly quote them in the reply.  Note that using `point-max'
   ;; instead of `mark' here is wrong.  The buffer may include user's
   ;; signature which should not be MML-quoted.
-  (mml-quote-region (point) (point-max)))
+  (mml-quote-region (point) (mark)))
 
 (defun notmuch-mua-forward-message ()
   (message-forward)