aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2012-03-21 13:17:23 -0400
committerSam Steingold2012-03-21 13:17:23 -0400
commite298b5da3d0179d00e38d6baa8df515b160595ff (patch)
tree6ad0547c755f0ecc1f1881ccab5ad5c71bb5cd09
parent6e5d1d00ca4e5a7a9049b2a8f0e2b7bfac2ba57d (diff)
downloademacs-e298b5da3d0179d00e38d6baa8df515b160595ff.tar.gz
emacs-e298b5da3d0179d00e38d6baa8df515b160595ff.zip
* lisp/progmodes/etags.el (tags-completion-at-point-function):
Avoid the error when point is inside the pattern.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/etags.el8
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5a82dd4758d..801d0ac6a3c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-03-21 Sam Steingold <sds@gnu.org>
2
3 * progmodes/etags.el (tags-completion-at-point-function):
4 Avoid the error when point is inside the pattern.
5
12012-03-21 John Yates <john@yates-sheets.org> (tiny change) 62012-03-21 John Yates <john@yates-sheets.org> (tiny change)
2 7
3 * progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first 8 * progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index cc5f0fef934..3a36410884f 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -809,10 +809,10 @@ If no tags table is loaded, do nothing and return nil."
809 beg) 809 beg)
810 (when pattern 810 (when pattern
811 (save-excursion 811 (save-excursion
812 (search-backward pattern) ;FIXME: will fail if we're inside pattern. 812 (when (search-backward pattern nil t) ; will fail inside pattern
813 (setq beg (point)) 813 (setq beg (point))
814 (forward-char (length pattern)) 814 (forward-char (length pattern))
815 (list beg (point) (tags-lazy-completion-table) :exclusive 'no)))))) 815 (list beg (point) (tags-lazy-completion-table) :exclusive 'no)))))))
816 816
817(defun find-tag-tag (string) 817(defun find-tag-tag (string)
818 "Read a tag name, with defaulting and completion." 818 "Read a tag name, with defaulting and completion."