diff options
| author | Stefan Monnier | 2012-03-21 13:50:28 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-03-21 13:50:28 -0400 |
| commit | af67c9d7cd1a44d1e7f168707486407d845ee357 (patch) | |
| tree | 64e87812b5a34dd65e652d089a7a7c70e7d64270 | |
| parent | 1acad97c3e4b3c9cdf59c5debc10e5ed83699c4f (diff) | |
| download | emacs-af67c9d7cd1a44d1e7f168707486407d845ee357.tar.gz emacs-af67c9d7cd1a44d1e7f168707486407d845ee357.zip | |
* progmodes/etags.el (tags-completion-at-point-function): Improve last fix.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/progmodes/etags.el | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dc8c5e04eb3..4cedbe5f9a6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-03-21 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-03-21 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * progmodes/etags.el (tags-completion-at-point-function): | ||
| 4 | Improve last fix. | ||
| 5 | |||
| 3 | * files.el (move-file-to-trash): Files aren't regexps (bug#11055). | 6 | * files.el (move-file-to-trash): Files aren't regexps (bug#11055). |
| 4 | 7 | ||
| 5 | 2012-03-21 Sam Steingold <sds@gnu.org> | 8 | 2012-03-21 Sam Steingold <sds@gnu.org> |
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 3a36410884f..4b337e1c15c 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -809,10 +809,11 @@ 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 | (when (search-backward pattern nil t) ; will fail inside pattern | 812 | (forward-char (1- (length pattern))) |
| 813 | (setq beg (point)) | 813 | (search-backward pattern) |
| 814 | (forward-char (length pattern)) | 814 | (setq beg (point)) |
| 815 | (list beg (point) (tags-lazy-completion-table) :exclusive 'no))))))) | 815 | (forward-char (length pattern)) |
| 816 | (list beg (point) (tags-lazy-completion-table) :exclusive 'no)))))) | ||
| 816 | 817 | ||
| 817 | (defun find-tag-tag (string) | 818 | (defun find-tag-tag (string) |
| 818 | "Read a tag name, with defaulting and completion." | 819 | "Read a tag name, with defaulting and completion." |