aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Rost2002-05-06 21:12:42 +0000
committerMarkus Rost2002-05-06 21:12:42 +0000
commitfe75e6d0237955a3d5bb2c23dfad6bb9c36bc17d (patch)
tree3210ab1ee8d2095eb8795a0bf873cf526ebe6c21
parent21936ea51ec84f7860dd4aa8fda24798ecb75c76 (diff)
downloademacs-fe75e6d0237955a3d5bb2c23dfad6bb9c36bc17d.tar.gz
emacs-fe75e6d0237955a3d5bb2c23dfad6bb9c36bc17d.zip
(find-function-search-for-symbol): Use with-syntax-table.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/emacs-lisp/find-func.el30
2 files changed, 19 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5904b7c9179..7293631addb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,10 +1,15 @@
12002-05-06 Markus Rost <rost@math.ohio-state.edu>
2
3 * emacs-lisp/find-func.el (find-function-search-for-symbol): Use
4 with-syntax-table.
5
12002-05-06 Francesco Potorti` <pot@gnu.org> 62002-05-06 Francesco Potorti` <pot@gnu.org>
2 7
3 * mail/rmail.el (rmail-font-lock-keywords): Highlight Resent-[Ff]rom:. 8 * mail/rmail.el (rmail-font-lock-keywords): Highlight Resent-[Ff]rom:.
4 9
52002-05-05 Markus Rost <rost@math.ohio-state.edu> 102002-05-05 Markus Rost <rost@math.ohio-state.edu>
6 11
7 * time-stamp.el (time-stamp-format): Doc fix: escape open 12 * time-stamp.el (time-stamp-format): Doc fix: escape open
8 parenthesis in column 0. 13 parenthesis in column 0.
9 14
102002-05-04 Richard M. Stallman <rms@gnu.org> 152002-05-04 Richard M. Stallman <rms@gnu.org>
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 8850273b491..78dece5b47d 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -139,24 +139,20 @@ If VARIABLE-P is nil, `find-function-regexp' is used, otherwise
139 find-variable-regexp 139 find-variable-regexp
140 find-function-regexp) 140 find-function-regexp)
141 (regexp-quote (symbol-name symbol)))) 141 (regexp-quote (symbol-name symbol))))
142 (syn-table (syntax-table))
143 (case-fold-search)) 142 (case-fold-search))
144 (unwind-protect 143 (with-syntax-table emacs-lisp-mode-syntax-table
145 (progn 144 (goto-char (point-min))
146 (set-syntax-table emacs-lisp-mode-syntax-table) 145 (if (or (re-search-forward regexp nil t)
147 (goto-char (point-min)) 146 (re-search-forward
148 (if (or (re-search-forward regexp nil t) 147 (concat "^([^ ]+ +"
149 (re-search-forward 148 (regexp-quote (symbol-name symbol))
150 (concat "^([^ ]+ +" 149 "\\>")
151 (regexp-quote (symbol-name symbol)) 150 nil t))
152 "\\>") 151 (progn
153 nil t)) 152 (beginning-of-line)
154 (progn 153 (cons (current-buffer) (point)))
155 (beginning-of-line) 154 (error "Cannot find definition of `%s' in library `%s'"
156 (cons (current-buffer) (point))) 155 symbol library))))))))
157 (error "Cannot find definition of `%s' in library `%s'"
158 symbol library)))
159 (set-syntax-table syn-table)))))))
160 156
161;;;###autoload 157;;;###autoload
162(defun find-function-noselect (function) 158(defun find-function-noselect (function)