summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* Fix spacing in *Help* buttonsLars Ingebrigtsen2022-07-221-1/+2
| | | | | * lisp/help-mode.el (help-xref--navigation-buttons): Fix spacing before single [forward] button.
* * lisp/help-mode.el (help-news): Use `view-file`Stefan Monnier2022-07-211-5/+5
|
* Fix xref links in `C-h o'Lars Ingebrigtsen2022-07-161-14/+17
| | | | | | | | | | | * lisp/help-fns.el (describe-symbol): Make xref links happen in all sections (bug#49587). * lisp/help-fns.el (describe-symbol): Add back/forward links. * lisp/help-mode.el (help-make-xrefs): Factor out links from here... (help-xref--navigation-buttons): To here.
* Document using make-composed-keymap with defvar-keymapStefan Kangas2022-07-041-19/+17
| | | | | | | | * doc/lispref/keymaps.texi (Inheritance and Keymaps): Document using 'make-composed-keymap' with 'defvar-keymap'. * lisp/help-mode.el (help-mode-map): Use defvar-keymap to make this code match the above documentation change.
* ; * lisp/help-mode.el (help-xref-button): Doc fix.Eli Zaretskii2022-06-201-2/+2
|
* Allow removing quotes around links in *Help* buffersLars Ingebrigtsen2022-06-201-5/+25
| | | | | | * doc/emacs/help.texi (Help Mode): Document it. * lisp/help-mode.el (help-clean-buttons): New user option (help-xref-button): Use it.
* Allow using xref buttons in non-*Help* buffersStephen Berman2022-06-061-9/+8
| | | | | | * lisp/help-mode.el (help-buffer): Allow using the xref buttons in non-*Help* buffers (bug#8147) (but display the result in a *Help* buffer).
* Fix reference to help-enable-variable-value-editingDaniel Martín2022-05-291-1/+1
| | | | | | * lisp/help-mode.el (help-mode): Fix docstring to reference the correct variable name. * lisp/ldefs-boot.el (help-mode): Ditto (bug#55705).
* Revert mistaken change in help-mode-setupLars Ingebrigtsen2022-05-131-2/+1
| | | | | * lisp/help-mode.el (help-mode-setup): Revert mistakenly applied change from cd87a5c7a.
* Don't clear out local variables in `with-help-window'Lars Ingebrigtsen2022-05-131-1/+4
| | | | | | | | | | | | * lisp/help-mode.el (help-mode-setup): Declare obsolete. (help-mode-finish): Ditto. * lisp/help.el (with-help-window): Don't be a wrapper around `with-temp-buffer-window', because that made the macro big and difficult to understand. (help--window-setup): Implement the relevant bits from `with-temp-buffer-window'. Also don't clear out local variables, because that makes things like `text-scale-mode' not work (bug#25979).
* Allow inhibiting linkification in *Help* buffersLars Ingebrigtsen2022-05-071-20/+22
| | | | | | * doc/lispref/help.texi (Keys in Documentation): Document it. lisp/help-mode.el (help-make-xrefs): Implement a new \+ syntax to inhibit buttonification.
* Don't override search-default-mode set by user in info/helpLars Ingebrigtsen2022-05-061-1/+2
| | | | | | * lisp/info.el (Info-mode): * lisp/help-mode.el (help-mode): Don't override isearch mode set by the user.
* Char-fold quotation characters in *info* and *Help*Lars Ingebrigtsen2022-05-061-1/+2
| | | | | | | * lisp/info.el (Info-mode): * lisp/help-mode.el (help-mode): Use it. * lisp/isearch.el (isearch-fold-quotes-mode): New minor mode (bug#24510).
* Make more buttons in *Help* respect `help-window-keep-selected'Lars Ingebrigtsen2022-05-031-4/+13
| | | | | | * lisp/help-mode.el (help-function-cmacro, help-variable-def) (help-face-def): Also respect `help-window-keep-selected' like the other commands.
* Allow reusing the *Help* window with `i'/`s/ commandsLars Ingebrigtsen2022-05-021-2/+5
| | | | | | | | | | | | | * doc/emacs/help.texi (Help): Document it. * lisp/help-mode.el (help-function-def--button-function): Use it. * lisp/help-mode.el (help-goto-info): Use it. * lisp/help.el (help-window-select): Mention it. (help-window-keep-selected): New user option (bug#9054). * lisp/info-look.el (info-lookup-symbol): (info-lookup): Allow keeping the same window.
* Allow editing variable values in *Help* buffersLars Ingebrigtsen2022-04-171-1/+2
| | | | | | | | | | * lisp/help-fns.el (help-enable-variable-value-editing): New user option. (describe-variable): Tag values for editing. (help-fns--editable-variable, help-fns-edit-variable): New functions (bug#36826). (help-fns--edit-value-mode-map, help-fns--edit-value-mode) (help-fns-edit-mode-done): New mode and commands.
* Extend bookmark menu with with handler type columnMatthias Meulien2022-02-171-0/+1
| | | | | | | | | | | | | * lisp/bookmark.el (bookmark-bmenu--revert): Extend table entries with handler type. (bookmark-bmenu-mode): Add handler type column. * lisp/doc-view.el (doc-view-bookmark-jump): Set bookmark handler type. * lisp/help-mode.el (help-bookmark-jump): Set bookmark handler type. * lisp/image-dired.el (image-dired-bookmark-jump): Set bookmark handler type. * lisp/info.el (Info-bookmark-jump): Set bookmark handler type. * lisp/net/eww.el (eww-bookmark-jump): Set bookmark handler type. * lisp/vc/vc-dir.el (vc-dir-bookmark-jump): Set bookmark handler type. * lisp/woman.el (woman-bookmark-jump): Set bookmark handler type.
* Add a *Help* command that'll take you to the lispref manualLars Ingebrigtsen2022-01-241-0/+9
| | | | | | | | * doc/emacs/help.texi (Help Mode): Document it. * lisp/help-mode.el (help-mode-map): Add an `I' keystroke. (help-goto-lispref-info): New command. * lisp/info-look.el (:mode): Add an entry for the lispref manual.
* Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
| |
* | Add buttons to definition in help--describe-commandLars Ingebrigtsen2021-11-011-22/+1
| | | | | | | | | | | | | | * lisp/help-mode.el (help-make-xrefs): Don't add buttons to keymaps, because they're pre-buttonized. * lisp/help.el (help--describe-command): Make buttons out of the definitions.
* | Further xref fix-ups after keymap help changesLars Ingebrigtsen2021-11-011-0/+1
| | | | | | | | * lisp/help-mode.el (help-make-xrefs): Get continuation lines right.
* | Fix infloop in help-make-xrefs in certain keymapsLars Ingebrigtsen2021-11-011-2/+3
| | | | | | | | | | * lisp/help-mode.el (help-make-xrefs): Adjust xref symbol finding after changes to how keymaps are output.
* | Make xref symbol marking work again after describe-keymap changesLars Ingebrigtsen2021-11-011-20/+12
| | | | | | | | | | * lisp/help-mode.el (help-make-xrefs): Adjust xref symbol finding after changes to how keymaps are output.
* | Add mode tagging to previously added help commandsLars Ingebrigtsen2021-10-311-2/+2
| | | | | | | | | | | | * lisp/help-mode.el (help-goto-previous-page): New command and key binding. (help-goto-previous-page): Ditto.
* | Add 'n'/'p' key bindings in *Help* buffersLars Ingebrigtsen2021-10-311-0/+22
| | | | | | | | | | | | * lisp/help-mode.el (help-goto-previous-page): New command and key binding. (help-goto-previous-page): Ditto.
* | Add new option help-link-key-to-documentationStefan Kangas2021-10-241-0/+7
| | | | | | | | | | | | | | * lisp/help.el (help-link-key-to-documentation): New user option. (substitute-command-keys): Add a link from keys to the command they are bound to, if the above new option is non-nil. (Bug#8951) * etc/NEWS: Announce the new option.
* | Save position in mark ring before jumping to definitionIhor Radchenko2021-10-011-0/+4
|/ | | | | * lisp/help-mode.el (help-function-def--button-function): Current point is saved in the mark ring before jumping to definition.
* Add support for man page hyperlinks in doc stringsStefan Kangas2021-09-251-0/+14
| | | | | | | | * lisp/help-mode.el (help-man): New button type. (help-xref-man-regexp): New const. (help-make-xrefs): Use them to allow making man page buttons. * doc/lispref/tips.texi (Documentation Tips): Document the new hyperlink type. (Bug#39215)
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-161-1/+1
|
* Add docstrings to context menu functions, and add middle-separatorJuri Linkov2021-09-151-0/+1
| | | | | | | | | | | | * lisp/mouse.el (context-menu-functions): Add context-menu-middle-separator to default values. (context-menu-middle-separator): New function. * lisp/replace.el (occur-context-menu): Use middle-separator. * lisp/progmodes/elisp-mode.el (elisp-context-menu): * lisp/progmodes/prog-mode.el (prog-context-menu): Use middle-separator and reorder menu items correspondingly.
* * lisp/mouse.el (context-menu-map): Add 'click' arg to called funs (bug#50256)Juri Linkov2021-09-121-2/+2
| | | | | | | | | | | | | (context-menu-toolbar, context-menu-global, context-menu-local) (context-menu-minor, context-menu-buffers, context-menu-vc) (context-menu-undo, context-menu-region, context-menu-ffap): Add 'click' arg. * lisp/dired.el (dired-context-menu): * lisp/help-mode.el (help-mode-context-menu): * lisp/info.el (Info-context-menu): * lisp/net/eww.el (eww-context-menu): * lisp/net/goto-addr.el (goto-address-context-menu): * lisp/progmodes/prog-mode.el (prog-context-menu): Add 'click' arg.
* Use window-point in event-start and event-end (bug#50256)Juri Linkov2021-09-121-6/+1
| | | | | | | | * lisp/subr.el (event-start, event-end): Provide window-point as an arg for posn-at-point, and for the constructed list. * lisp/help-mode.el (help-mode-context-menu): Remove a kludge that checked if window-buffer is current-buffer.
* Add support for customization group hyperlinks in doc stringsLars Ingebrigtsen2021-09-041-0/+15
| | | | | | | * lisp/help-mode.el (help-customization-group): New button. (help-xref-customization-group-regexp): New const. (help-make-xrefs): Use them to allow making customization group buttons.
* ; Fix a comment in a recent commit.Eli Zaretskii2021-08-171-2/+2
| | | | | * lisp/help-mode.el (help-mode-syntax-table): Fix punctuation in a comment.
* Improve `forward-sexp' in *Help* buffersMichalis V2021-08-171-2/+11
| | | | | | | * lisp/help-mode.el (help-mode-syntax-table): New variable (bug#39134). (help-make-xrefs): Use it to make picking out symbols in curved quotes work reliably. (help-xref-on-pp): Ditto.
* Merge branch 'feature/context-menu'Juri Linkov2021-08-171-0/+30
|\
| * * lisp/help-mode.el (help-mode-context-menu): New function.Juri Linkov2021-08-011-0/+30
| | | | | | | | (help-mode): Use it.
* | ; Fix typosJuri Linkov2021-08-111-1/+1
| |
* | Don't bind <mouse-2> and RET in *Help* buffersLars Ingebrigtsen2021-07-311-6/+6
|/ | | | | | | | | * lisp/help-mode.el (help-mode-map): Remove key bindings for RET and <mouse-2> (bug#49784). (help-xref-stack, help-xref-forward-stack, help-xref-stack-item) (help-make-xrefs): Fix doc strings -- these aren't used by `help-follow', but by `help-follow-symbol'. (help-follow-mouse, help-follow): Make obsolete.
* Make the `s' command in *Help* work for Lisp variables defined in CLars Ingebrigtsen2021-07-191-2/+4
| | | | | | * lisp/help-fns.el (describe-variable): Store the type. * lisp/help-mode.el (help-view-source): Use the type. This fixes the problem when looking for a variable defined in a C file.
* ; * lisp/help-mode.el (help-customize): Doc fix. (Bug#36767)Eli Zaretskii2021-06-201-1/+1
|
* Add new convenience command for *Help*Juri Linkov2021-06-201-2/+15
| | | | | | | | * doc/emacs/help.texi (Help Mode): Document it (bug#36767). * lisp/help-mode.el (help-mode-map): Add 'c'. (help-mode-menu): Add help-customize. (help-customize): New command.
* Make help-view-source more robustLars Ingebrigtsen2021-06-151-1/+1
| | | | | * lisp/help-mode.el (help-view-source): Check the right thing to see if we can jump to the source file.
* Add new convenience commands for *Help*Lars Ingebrigtsen2021-06-151-1/+25
| | | | | | | | | | | | | * doc/emacs/help.texi (Help Mode): Document it (bug#36767). * lisp/help-fns.el (help-fns-function-description-header) (describe-variable, describe-face, describe-keymap) (describe-mode): Add the required data. * lisp/help-mode.el (help-mode-map): Add 'i' and 's'. (help-mode--current-data): New variable. (help-mode): Make it local. (help-view-source, help-goto-info): New commands.
* * lisp/help-mode.el (help-mode-tool-bar-map): Fix tooltips.Stefan Kangas2021-03-081-2/+2
|
* Remove redundant requires of easymenuStefan Kangas2021-02-261-1/+0
| | | | | | | | | | | | | | | | | * lisp/allout.el: * lisp/emacs-lisp/edebug.el: * lisp/emacs-lisp/ert.el: * lisp/erc/erc-menu.el: * lisp/help-mode.el: * lisp/net/dictionary.el: * lisp/nxml/rng-nxml.el: * lisp/progmodes/ebrowse.el: * lisp/progmodes/meta-mode.el: * lisp/progmodes/prolog.el: * lisp/progmodes/ps-mode.el: * lisp/progmodes/vera-mode.el: * lisp/wid-browse.el: Remove redundant require of easymenu. We only use the autoloaded macro 'easy-menu-define' here.
* Buttonize function values in help (and add a blank line)Lars Ingebrigtsen2021-02-221-2/+1
| | | | | | | | | * lisp/help-fns.el (describe-variable): Add a newline for better readability (bug#46702). This also has the side effect of buttonizing `function-references-like-this' in the "Its value is" part. * lisp/help-mode.el (help-make-xrefs): Adjust comments.
* Add toolbar for help-modeStefan Kangas2021-02-201-5/+23
| | | | | | | | * lisp/help-mode.el (help-mode): Add toolbar. (help-mode-tool-bar-map): New variable. (help-mode-menu): Disable forward/backward items when stack is empty. (help-bookmark-make-record, help-bookmark-jump): Minor doc fixes.