diff options
author | Wilfred Hughes <me@wilfred.me.uk> | 2017-12-10 13:34:06 +0000 |
---|---|---|
committer | Wilfred Hughes <me@wilfred.me.uk> | 2017-12-10 14:52:54 +0000 |
commit | abd18254aec76b26e86ae27e91d2c916ec20cc46 (patch) | |
tree | 9d346b42760ea3d0bec8224481d09f16a9df79ad /lisp/emacs-lisp/subr-x.el | |
parent | ab203e36d5f84a99b6d4b04f1a22ba028be750e3 (diff) | |
download | emacs-abd18254aec76b26e86ae27e91d2c916ec20cc46.tar.gz emacs-abd18254aec76b26e86ae27e91d2c916ec20cc46.tar.bz2 emacs-abd18254aec76b26e86ae27e91d2c916ec20cc46.zip |
Ensure that we can find definitions when buffer is narrowed
find-function-search-for-symbol will reuse the existing buffer if
we've already opened the file that contains this symbol. However, if
the user has narrowed that buffer, we can't find definitions outside
the narrowed area.
Instead, search the whole file to find definitions, and teach the help
buttons to widen if necessary.
* lisp/emacs-lisp/find-func.el (find-function-search-for-symbol):
Search the whole buffer for the target symbol.
* lisp/help-mode.el: Help buttons now widen the target buffer, if
narrowing is in effect and the target position is not in that range.
Diffstat (limited to 'lisp/emacs-lisp/subr-x.el')
0 files changed, 0 insertions, 0 deletions