[PATCH] Eliminate redundant code.

servilio servilio at gmail.com
Sun Mar 13 22:09:37 PDT 2011


There is no need to move the cursor to the position if you can
retrieve its value directly.
---
 emacs/notmuch-address.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
index 1a7c577..52e320d 100644
--- a/emacs/notmuch-address.el
+++ b/emacs/notmuch-address.el
@@ -48,8 +48,8 @@ line."
   (let* ((end (point))
 	 (beg (save-excursion
 		(re-search-backward "\\(\\`\\|[\n:,]\\)[ \t]*")
-		(goto-char (match-end 0))
-		(point)))
+		(match-end 0)
+		))
 	 (orig (buffer-substring-no-properties beg end))
 	 (completion-ignore-case t)
 	 (options (notmuch-address-options orig))
-- 
1.7.4.1


More information about the notmuch mailing list