aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2013-05-15 02:38:14 +0300
committerJuri Linkov2013-05-15 02:38:14 +0300
commit180ed218429ec9c0ce8e3ee186a47c9565459eff (patch)
tree316554295ce9f89c175696dc21ab2c6f84adf190
parent0ac0fecb1517ea7fd82e25c365528c8c44d1c11e (diff)
downloademacs-180ed218429ec9c0ce8e3ee186a47c9565459eff.tar.gz
emacs-180ed218429ec9c0ce8e3ee186a47c9565459eff.zip
* lisp/subr.el (find-tag-default-as-regexp): Return nil if `tag' is nil.
Fixes: debbugs:14390
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/subr.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d39c434cb6f..5b2c28d97a1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-05-14 Juri Linkov <juri@jurta.org>
2
3 * subr.el (find-tag-default-as-regexp): Return nil if `tag' is nil.
4 (Bug#14390)
5
12013-05-14 Glenn Morris <rgm@gnu.org> 62013-05-14 Glenn Morris <rgm@gnu.org>
2 7
3 * progmodes/f90.el (f90-imenu-generic-expression): 8 * progmodes/f90.el (f90-imenu-generic-expression):
diff --git a/lisp/subr.el b/lisp/subr.el
index 4871f3733f9..177e9a84a58 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2738,7 +2738,7 @@ symbol at point exactly."
2738 (get major-mode 'find-tag-default-function) 2738 (get major-mode 'find-tag-default-function)
2739 'find-tag-default)) 2739 'find-tag-default))
2740 (tag (funcall tagf))) 2740 (tag (funcall tagf)))
2741 (cond ((not tag)) 2741 (cond ((null tag) nil)
2742 ((eq tagf 'find-tag-default) 2742 ((eq tagf 'find-tag-default)
2743 (format "\\_<%s\\_>" (regexp-quote tag))) 2743 (format "\\_<%s\\_>" (regexp-quote tag)))
2744 (t (regexp-quote tag))))) 2744 (t (regexp-quote tag)))))