2012-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
+ * progmodes/etags.el (tags-completion-at-point-function):
+ Improve last fix.
+
* files.el (move-file-to-trash): Files aren't regexps (bug#11055).
2012-03-21 Sam Steingold <sds@gnu.org>
beg)
(when pattern
(save-excursion
- (when (search-backward pattern nil t) ; will fail inside pattern
- (setq beg (point))
- (forward-char (length pattern))
- (list beg (point) (tags-lazy-completion-table) :exclusive 'no)))))))
+ (forward-char (1- (length pattern)))
+ (search-backward pattern)
+ (setq beg (point))
+ (forward-char (length pattern))
+ (list beg (point) (tags-lazy-completion-table) :exclusive 'no))))))
\f
(defun find-tag-tag (string)
"Read a tag name, with defaulting and completion."