summaryrefslogtreecommitdiff
path: root/lisp/outline.el
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix up the outline minor mode button logicLars Ingebrigtsen2022-07-291-7/+11
| | | | | | | | * lisp/outline.el (outline-minor-mode-highlight-buffer): Factor out... (bug#56820). (outline--use-buttons-p): ... to here. (outline-hide-subtree, outline--fix-up-all-buttons) (outline-show-subtree): Use it.
* Use icons in outlineLars Ingebrigtsen2022-07-281-40/+46
| | | | | | | | | | | | | | | | | | * lisp/help.el (describe-bindings): Don't force buttons on (bug#56691). * lisp/outline.el (outline-minor-mode-use-buttons): Default buttons on in special-mode buffers. * lisp/outline.el (outline-minor-mode-buttons): Remove. (outline-open, outline-close): New icons. (outline-minor-mode-highlight-buffer): Use the new predicate to switch on/off. (outline--make-button): Remove. (outline--make-button-overlay): Use icons.el instantiation. (outline--valid-emoji-p): Remove. (outline--valid-char-p): Remove. (outline--insert-open-button, outline--insert-close-button): Make point movement better in *Help* buffers.
* ; Improve doc strings of 2 outline-minor-mode optionsEli Zaretskii2022-07-221-2/+13
| | | | | * lisp/outline.el (outline-minor-mode-use-buttons) (outline-minor-mode-buttons): Improve the doc strings. (Bug#56691)
* Quote some literal keys to get help-key-binding faceStefan Kangas2022-07-031-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/align.el (align): * lisp/bindings.el (undo-repeat-map): * lisp/calc/calc-embed.el (calc-do-embedded): * lisp/calc/calc-prog.el (calc-user-define-invocation): * lisp/calc/calc-yank.el (calc--edit-mode): * lisp/comint.el (comint-history-isearch) * lisp/dired.el (dired-mode): * lisp/emulation/viper.el (viper-mode): * lisp/erc/erc-button.el (erc-button-face): * lisp/erc/erc-track.el (erc-track-enable-keybindings): * lisp/gnus/gnus-art.el (gnus-article-button-face): * lisp/gnus/gnus-eform.el (gnus-edit-form): * lisp/gnus/gnus-sum.el (gnus-summary-stop-at-end-of-message) (gnus-summary-goto-unread): * lisp/icomplete.el (icomplete-show-matches-on-no-input): * lisp/image-mode.el (image-scroll-up): * lisp/international/iso-transl.el (iso-transl-set-language): * lisp/isearch.el (isearch-forward-regexp): * lisp/misc.el (butterfly): * lisp/outline.el (outline-minor-mode-cycle-filter) (outline-minor-mode-cycle): * lisp/progmodes/grep.el (rgrep): * lisp/progmodes/gud.el (gud-gdb-repeat-map, gud-sdb-repeat-map) (gud-dbx-repeat-map, gud-xdb-repeat-map, gud-perldb-repeat-map) (gud-pdb-repeat-map, gud-guiler-repeat-map, gud-jdb-repeat-map): * lisp/progmodes/idlw-shell.el (idlwave-shell-graphics-window-size) (idlwave-shell-mode): * lisp/progmodes/idlwave.el (idlwave-shell-debug-modifiers) (idlwave-list-shell-load-path-shadows): * lisp/progmodes/python.el (python-shell-get-process-or-error): * lisp/repeat.el (repeat-check-key): * lisp/replace.el (query-replace, query-replace-regexp) (read-regexp): * lisp/simple.el (read-extended-command-predicate): * lisp/tab-bar.el (tab-bar-switch-repeat-map) (tab-bar-move-repeat-map): * lisp/term.el (ansi-term): * lisp/textmodes/reftex-index.el (reftex-index-phrases-set-macro-key): * lisp/vc/emerge.el (emerge-scroll-left, emerge-scroll-right): * lisp/windmove.el: * lisp/winner.el (winner-mode): Quote literal keys to get 'help-key-binding' face. * lisp/comint.el (comint-insert-previous-argument): Use regular quotes.
* Revert "Add meta navigation keys to outline-minor-mode-cycle-map"Lars Ingebrigtsen2022-05-111-4/+0
| | | | | | This reverts commit 2e949031160d769bbac941c064b825a5c578afc5. These key bindings are too intrusive.
* Add meta navigation keys to outline-minor-mode-cycle-mapLars Ingebrigtsen2022-05-091-0/+4
| | | | | * lisp/outline.el (outline-minor-mode-cycle-map): Add meta navigate keys (bug#41129).
* Audit quoting the quote character in doc stringsLars Ingebrigtsen2022-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/regex-emacs-tests.el (regex-tests-compare): (regex-tests-compare): (regex-tests-match): * test/lisp/xml-tests.el (xml-parse-tests--qnames): * test/lisp/mh-e/mh-thread-tests.el (mh-thread-tests-before-from): * test/lisp/cedet/srecode-utest-template.el (srecode-utest-map-reset): * test/lisp/calc/calc-tests.el (calc-tests-equal): * lisp/window.el (get-lru-window): (get-mru-window): (get-largest-window): (quit-restore-window): (display-buffer): * lisp/vc/vc-rcs.el (vc-rcs-consult-headers): * lisp/url/url-auth.el (url-digest-auth-build-response): * lisp/tutorial.el (tutorial--find-changed-keys): * lisp/transient.el (transient-suffix-object): * lisp/textmodes/rst.el (rst-insert-list-new-item): * lisp/textmodes/bibtex.el (bibtex-clean-entry): * lisp/tab-bar.el (tab-bar--key-to-number): (toggle-frame-tab-bar): * lisp/ses.el (ses-recalculate-cell): (ses-define-local-printer): (ses-prin1): * lisp/progmodes/xref.el (xref--find-ignores-arguments): * lisp/progmodes/verilog-mode.el (verilog-single-declaration-end): * lisp/progmodes/tcl.el (tcl-mode-hook): * lisp/progmodes/gdb-mi.el (gdb-get-buffer-create): * lisp/progmodes/elisp-mode.el (elisp--xref-make-xref): * lisp/play/dunnet.el (dun-room-objects): * lisp/outline.el (outline--cycle-state): * lisp/org/ox-publish.el (org-publish-find-property): * lisp/org/ox-html.el (org-html--unlabel-latex-environment): * lisp/org/org-table.el (org-table-collapse-header): * lisp/org/org-plot.el (org--plot/prime-factors): * lisp/org/org-agenda.el (org-agenda--mark-blocked-entry): (org-agenda-set-restriction-lock): * lisp/org/ob-lua.el (org-babel-lua-read-string): * lisp/org/ob-julia.el (org-babel-julia-evaluate-external-process): (org-babel-julia-evaluate-session): * lisp/org/ob-core.el (org-babel-default-header-args): * lisp/obsolete/mouse-sel.el (mouse-select): (mouse-select-secondary): * lisp/net/tramp.el (tramp-methods): * lisp/net/eww.el (eww-accept-content-types): * lisp/net/dictionary-connection.el (dictionary-connection-status): * lisp/minibuffer.el (completion-flex--make-flex-pattern): * lisp/mh-e/mh-mime.el (mh-have-file-command): * lisp/mh-e/mh-limit.el (mh-subject-to-sequence): (mh-subject-to-sequence-threaded): (mh-subject-to-sequence-unthreaded): * lisp/mail/feedmail.el (feedmail-queue-buffer-file-name): (feedmail-vm-mail-mode): * lisp/ls-lisp.el (ls-lisp--sanitize-switches): * lisp/keymap.el (key-valid-p): * lisp/international/ccl.el (ccl-compile-branch-blocks): * lisp/image/image-converter.el (image-convert): * lisp/gnus/spam.el (spam-backend-check): * lisp/gnus/nnselect.el (nnselect-generate-artlist): * lisp/gnus/nnmairix.el (nnmairix-widget-other): * lisp/gnus/message.el (message-mailto): * lisp/gnus/gnus-sum.el (gnus-collect-urls-from-article): * lisp/gnus/gnus-search.el (gnus-search-prepare-query): * lisp/frame.el (frame-size-history): * lisp/eshell/esh-var.el (eshell-parse-variable-ref): * lisp/eshell/em-dirs.el (eshell-expand-multiple-dots): * lisp/erc/erc-backend.el (erc-bounds-of-word-at-point): * lisp/emulation/cua-rect.el (cua--rectangle-operation): * lisp/emacs-lisp/text-property-search.el (text-property-search-forward): * lisp/emacs-lisp/package.el (package-desc-suffix): * lisp/emacs-lisp/faceup.el (faceup-test-explain): * lisp/emacs-lisp/comp.el (comp-curr-allocation-class): (comp-alloc-class-to-container): (comp-add-cstrs): (comp-remove-type-hints-func): (batch-byte+native-compile): * lisp/emacs-lisp/cl-macs.el (cl--optimize): * lisp/elec-pair.el (electric-pair--syntax-ppss): * lisp/doc-view.el (doc-view-doc-type): * lisp/cedet/semantic/symref.el (semantic-symref-tool-alist): (semantic-symref-hit-to-tag-via-db): (semantic-symref-hit-to-tag-via-buffer): * lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-get-overlay): * lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map): * lisp/cedet/semantic/find.el (semantic-brute-find-tag-by-function): * lisp/cedet/semantic/db.el (semanticdb-project-predicate-functions): * lisp/cedet/semantic.el (semantic-working-type): * lisp/cedet/ede/files.el (ede-flush-directory-hash): * lisp/calc/calc.el (calc--header-line): * lisp/auth-source.el (auth-source-pick-first-password): (auth-source--decode-octal-string): * etc/themes/modus-themes.el (modus-themes--paren): (modus-themes--agenda-habit): * admin/cus-test.el (cus-test-vars-with-changed-state): Fix quoting in doc strings. In code examples, the ' character is quoted with \\=, and regularize 'foo to `foo', and quote strings like "foo" instead of 'foo'.
* Merge from origin/emacs-28Eli Zaretskii2022-04-161-24/+49
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | d53c999b4a Further vcs-cvs/rcs-responsible-p updates from master dc3d1628ec ; * src/sysdep.c: Fix mistake in previous commit 855e15dbf1 Fix builds on older versions of macOS 9da744e450 Fix documentation of Outline minor mode options a8bb12ab05 Improve discoverability of 'insert-directory-program' 3f166bdf44 ; * etc/PROBLEMS: Describe MS-Windows issues with fonts. ... 803ac857ee Fix cursor motion under truncate-lines with Flymake fringe... # Conflicts: # etc/PROBLEMS # lisp/outline.el # src/sysdep.c
| * Fix documentation of Outline minor mode optionsEli Zaretskii2022-04-161-24/+49
| | | | | | | | | | | | * lisp/outline.el (outline-minor-mode-cycle-filter) (outline-minor-mode-cycle, outline-minor-mode-highlight) (outline-cycle, outline-cycle-buffer): Doc fixes. (Bug#54967)
* | Make outline-blank-line into defcustomJeff Norden2022-02-221-2/+5
| | | | | | | | | | | | | | * lisp/outline.el (outline-blank-line): Make into defcustom (bug#54095). Copyright-paperwork-exempt: yes
* | Fix some doc strings in outline.elMatthias Meulien2022-01-221-12/+18
| | | | | | | | | | * lisp/outline.el (outline-default-state): Fix doc string. (outline-default-rules): Fix doc string.
* | Extend Outline mode with default visibility stateMatthias Meulien2022-01-161-2/+176
| | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Announce support for default visibility state (bug#51809). * lisp/outline.el (outline-mode, outline-minor-mode): Ensure default visibility state is applied with outline-apply-default-state. (outline-default-state, outline-default-rules) (outline-default-long-line, outline-default-line-count): New defcustoms. (outline-apply-default-state, outline-show-only-headings) (outline--show-headings-up-to-level): New functions.
* | * lisp/outline.el (outline-minor-mode-cycle--bind): Fix outline-on-heading-p.Juri Linkov2022-01-111-1/+1
| | | | | | | | | | | | | | | | | | When calling outline-on-heading-p, set its argument INVISIBLE-OK to t, so when <backtab> (bound to outline-cycle-buffer) hides the current outline at a deep level, <backtab> should continue cycling outlines even when the current outline heading is invisible. It worked this way before the recent change that moved cycling keys from font-lock text properties to outline-minor-mode keymap with :filter.
* | * lisp/outline.el: Don't set outline-minor font-lock text property 'keymap'.Juri Linkov2022-01-101-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of adding font-lock text property 'keymap' with outline-minor-mode-cycle on headings in outline-minor-mode, check for outline-minor-mode-cycle and outline-on-heading-p in :filter on keys from the keymap of outline-minor-mode. https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg00180.html (outline-minor-mode-cycle--bind): Add a condition on outline-minor-mode-cycle and outline-on-heading-p in :filter. (outline-font-lock-keywords): Remove if-branches for outline-minor-mode-cycle that added keymap. (outline-minor-mode-highlight-buffer): Don't put keymap on overlays. (outline-minor-mode): Rewrite :keymap setting to rely on easy-mmode-define-keymap, and add :inherit outline-minor-mode-cycle-map. Don't check for outline-minor-mode-cycle to add font-lock keywords. (outline--insert-open-button, outline--insert-close-button): Remove :parent outline-minor-mode-cycle-map.
* | 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
| |
* | * lisp/outline.el (outline-minor-mode-use-buttons): Add :safe #'booleanp.Juri Linkov2021-12-151-2/+3
| | | | | | | | | | (outline-minor-mode-cycle, outline-minor-mode-highlight): Replace `put safe-local-variable' with :safe tag.
* | * lisp/outline.el (outline-font-lock-keywords): Replace ‘.+’ with ‘.*’.Juri Linkov2021-11-241-1/+1
| | | | | | | | | | | | Make the regexp less restrictive and don't require the outline heading to have more text after outline-regexp until the end of the heading line (bug#51016).
* | Adjust `defvar-keymap' and `define-keymap' to the new syntaxLars Ingebrigtsen2021-11-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/smerge-mode.el (smerge-basic-map): * lisp/vc/pcvs.el (cvs-mode-map): (cvs-minor-mode-prefix): * lisp/vc/log-view.el (log-view-mode-map): * lisp/vc/log-edit.el (log-edit-mode-map): * lisp/vc/diff-mode.el (diff-mode-shared-map): (diff-minor-mode-prefix): * lisp/vc/cvs-status.el (cvs-status-mode-map): * lisp/simple.el (special-mode-map): * lisp/outline.el (outline--insert-open-button): (outline--insert-close-button): * lisp/net/shr.el (shr-map): * lisp/net/eww.el (eww-link-keymap): (eww-mode-map): (eww-submit-map): (eww-bookmark-mode-map): (eww-history-mode-map): (eww-buffers-mode-map): * lisp/mh-e/mh-speed.el (:keymap): * lisp/mh-e/mh-show.el (:keymap): * lisp/mh-e/mh-search.el (:keymap): * lisp/mh-e/mh-letter.el (:keymap): * lisp/mh-e/mh-folder.el (:keymap): * lisp/international/emoji.el (emoji-list-mode-map): * lisp/gnus/spam.el (:keymap): * lisp/gnus/mml.el (mml-mode-map): * lisp/gnus/message.el (message-mode-map): * lisp/gnus/gnus-undo.el (gnus-undo-mode-map): * lisp/gnus/gnus-topic.el (gnus-topic-mode-map): * lisp/gnus/gnus-sum.el (:keymap): * lisp/gnus/gnus-srvr.el (gnus-server-mode-map): (gnus-browse-mode-map): * lisp/gnus/gnus-salt.el (gnus-pick-mode-map): (gnus-tree-mode-map): * lisp/gnus/gnus-msg.el (:prefix): * lisp/gnus/gnus-ml.el (gnus-mailing-list-mode-map): * lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): * lisp/gnus/gnus-html.el (gnus-html-displayed-image-map): * lisp/gnus/gnus-group.el (:keymap): * lisp/gnus/gnus-eform.el (gnus-edit-form-mode-map): * lisp/gnus/gnus-draft.el (gnus-draft-mode-map): * lisp/gnus/gnus-dired.el (gnus-dired-mode-map): * lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode-map): * lisp/gnus/gnus-art.el (:keymap): (gnus-article-edit-mode-map): * lisp/gnus/gnus-agent.el (gnus-agent-group-mode-map): (gnus-agent-summary-mode-map): (gnus-agent-server-mode-map): (gnus-category-mode-map): Adjust `defvar-keymap' and `define-keymap' to the new syntax.
* | Fix outline-cycle-buffer issue in `C-h b' buffersLars Ingebrigtsen2021-11-151-1/+4
| | | | | | | | | | * lisp/outline.el (outline--fix-up-all-buttons): Fix issue when called after collapsing a buffer (bug#51855).
* | Add outline-minor-mode-use-buttons doc string caveatLars Ingebrigtsen2021-11-061-0/+3
| | | | | | | | | | * lisp/outline.el (outline-minor-mode-use-buttons): Note that the feature is for special mode buffers only (bug#51629).
* | Make `outline-hide-body' work in `C-h b' buffersLars Ingebrigtsen2021-11-061-9/+14
| | | | | | | | | | | | | | * lisp/outline.el (outline-flag-region): Update buttons on most outline toggling commands (bug#51629). (outline--fix-up-all-buttons): Take a region as parameter. (outline-cycle-buffer): Adjust call.
* | Fix widgets in Outline mode on TTY framesEli Zaretskii2021-11-031-1/+2
| | | | | | | | | | * lisp/outline.el (outline--valid-emoji-p): Don't try to probe support for display of Emoji characters on TTY frames. (Bug#51578)
* | * lisp/outline.el: Fix compilation of `outline--make-button`Stefan Monnier2021-11-021-0/+2
| |
* | Fix mouse-1 on `C-h b' buttonsLars Ingebrigtsen2021-11-021-2/+2
| | | | | | | | | | * lisp/outline.el (outline--make-button-overlay): Make mouse-1 work on the buttons.
* | Add a better test for emojisLars Ingebrigtsen2021-11-021-5/+11
| | | | | | | | | | | | * lisp/outline.el (outline--valid-char-p) (outline--valid-emoji-p): New predicates. (outline--make-button, outline-minor-mode-buttons): Use them.
* | Re-fix the new mouse event logic in outlineLars Ingebrigtsen2021-11-011-2/+2
| | | | | | | | | | * lisp/outline.el (outline-show-subtree, outline-hide-subtree): Really fix the mouse logic.
* | Make TAB work on the outline buttonsLars Ingebrigtsen2021-10-311-0/+2
| | | | | | | | | | | | * lisp/outline.el (outline--insert-close-button) (outline--insert-open-button): Make TAB work to toggle on the buttons, too.
* | Fix new mouse handling in outlineLars Ingebrigtsen2021-10-311-2/+4
| | | | | | | | | | * lisp/outline.el (outline-show-subtree, outline-hide-subtree): Don't set point if we have no event.
* | Add buttons to outlining and tweak `C-h b' bufferLars Ingebrigtsen2021-10-311-6/+81
|/ | | | | | | | | | | | * lisp/help.el (describe-bindings-outline): Change default to t. (describe-bindings): Tweak the look and remove the explanation. * lisp/outline.el (outline-minor-mode-use-buttons): (outline-minor-mode-buttons): New user options. (outline-hide-subtree): Update buttons. (outline--make-button, outline--make-button-overlay) (outline--insert-open-button, outline--insert-close-button) (outline--fix-up-all-buttons): New functions.
* * lisp/outline.el (outline-minor-mode-cycle-filter): New defcustom (bug#50679)Juri Linkov2021-09-231-13/+35
| | | | | | | | | | | | (outline-minor-mode-cycle--bind): New helper function. (outline-minor-mode-cycle-map): Rename from outline-mode-cycle-map. (outline-mode-map): Revert part of 6458e16f33 to disassociate keymaps outline-mode-map and outline-minor-mode-cycle-map. (outline-font-lock-keywords, outline-minor-mode-highlight-buffer): Use outline-minor-mode-cycle-map instead of outline-mode-cycle-map. * lisp/help.el (describe-bindings): Rename outline-mode-cycle-map to outline-minor-mode-cycle-map.
* * lisp/outline.el (outline-mode-cycle-map): Don't bind `tab`.Stefan Monnier2021-07-081-1/+0
| | | | | Since it would take precedence over bindings for TAB in higher precedence maps.
* * lisp/outline.el (outline-font-lock-keywords): Fix highlight case (bug#48707)Juri Linkov2021-05-281-1/+3
|
* * lisp/outline.el (outline-minor-mode-highlight): Fix safe-local-variable.Utkarsh Singh2021-05-281-1/+1
| | | | Copyright-paperwork-exempt: yes
* Make outline commands repeatable (bug#47878)Philip K2021-04-221-0/+39
| | | | | * outline.el (outline-navigation-repeat-map): Add new map. (outline-editing-repeat-map): Add new map.
* * lisp/**/*.el: Avoid positional args to `define-minor-mode`Stefan Monnier2021-04-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Back in Emacs-21.1, `define-minor-mode` grew keywords arguments to replace its old positional arguments. Let's make sure we don't use the old-style any more. * lisp/org/ox-beamer.el (org-beamer-mode-map): Move initialization into declaration. (org-beamer-mode): * lisp/textmodes/tildify.el (tildify-mode): * lisp/textmodes/sgml-mode.el (html-autoview-mode): * lisp/textmodes/rst.el (rst-minor-mode): * lisp/textmodes/remember.el (remember-notes-mode): * lisp/textmodes/ispell.el (ispell-minor-mode): * lisp/tar-mode.el (tar-subfile-mode): * lisp/strokes.el (strokes-mode): * lisp/so-long.el (so-long-minor-mode): * lisp/shell.el (shell-dirtrack-mode): * lisp/scroll-all.el (scroll-all-mode): * lisp/ruler-mode.el (ruler-mode): * lisp/rect.el (rectangle-mark-mode): * lisp/progmodes/sh-script.el (sh-electric-here-document-mode): * lisp/outline.el (outline-minor-mode): * lisp/org/org.el (org-cdlatex-mode): * lisp/org/org-table.el (org-table-header-line-mode) (org-table-follow-field-mode, orgtbl-mode): * lisp/org/org-src.el (org-src-mode): * lisp/org/org-list.el (org-list-checkbox-radio-mode): * lisp/org/org-indent.el (org-indent-mode): * lisp/org/org-capture.el (org-capture-mode): * lisp/obsolete/pc-select.el (pc-selection-mode): * lisp/obsolete/iswitchb.el (iswitchb-mode): * lisp/net/rcirc.el (rcirc-omit-mode, rcirc-multiline-minor-mode) (rcirc-track-minor-mode): * lisp/net/goto-addr.el (goto-address-mode, goto-address-prog-mode): * lisp/image-mode.el (image-minor-mode): * lisp/ibuf-ext.el (ibuffer-auto-mode): * lisp/gnus/gnus-cite.el (gnus-message-citation-mode): * lisp/font-core.el (font-lock-mode): * lisp/erc/erc.el (define-erc-module): * lisp/erc/erc-track.el (erc-track-minor-mode): * lisp/erc/erc-fill.el (erc-fill-mode): * lisp/epa-mail.el (epa-mail-mode): * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode): * lisp/dirtrack.el (dirtrack-mode, dirtrack-debug-mode): * lisp/dired-aux.el (dired-isearch-filenames-mode): * lisp/cedet/semantic/idle.el (semantic-idle-scheduler-mode): * lisp/cedet/semantic/decorate/mode.el (semantic-decoration-mode): * lisp/autoarg.el (autoarg-mode, autoarg-kp-mode): * lisp/vc/pcvs.el (cvs-minor-mode): Avoid old-style positional args to `define-minor-mode`.
* Separate values 'override' and 'append' in 'outline-minor-mode-highlight'Juri Linkov2021-03-131-6/+10
| | | | | | | | * lisp/outline.el (outline-font-lock-keywords): Handle 'override' and 'append' separately. (outline-minor-mode-highlight): Separate values 'override' and 'append'. (outline-minor-mode-highlight-buffer): Go to match-beginning before checking '(point)'.
* * lisp/outline.el (outline-font-lock-keywords): SimplifyStefan Monnier2021-03-111-4/+1
| | | | The `laxmatch` part of `font-lock-keywords` is just a boolean.
* Remove outline-cycle-minor-mode and outline-cycle-highlight-minor-modeJuri Linkov2021-03-071-41/+30
| | | | | | | | | | | | | | | * lisp/outline.el (outline-font-lock-keywords): Use OVERRIDE or LAXMATCH depending on outline-minor-mode-highlight in outline-minor-mode. (outline-minor-mode-cycle, outline-minor-mode-highlight): Promote defvar to defcustom. (outline-minor-mode-highlight-buffer): Don't override existing faces. (outline-cycle-minor-mode, outline-cycle-highlight-minor-mode): Remove minor modes. * etc/compilation.txt: * etc/grep.txt: Enable outline-minor-mode-cycle and outline-minor-mode-highlight with outline-minor-mode. https://lists.gnu.org/archive/html/emacs-devel/2021-03/msg00144.html
* New mode outline-cycle-minor-mode with Orgmode-like TAB cycling on headingsJuri Linkov2021-03-031-7/+92
| | | | | | | | | | | | | | | | | * lisp/outline.el (outline-mode-cycle-map): New keymap from outline-mode-map. (outline-mode-map): Inherit from outline-mode-cycle-map. (outline-font-lock-keywords): Append keymap and face depending on 'outline-minor-mode-cycle' and 'outline-minor-mode-highlight'. (outline-minor-mode-cycle, outline-minor-mode-highlight): New variables. (outline-minor-mode-highlight-buffer): New function. (outline-minor-mode): Handle 'outline-minor-mode-cycle' and 'outline-minor-mode-highlight'. (outline-cycle-minor-mode, outline-cycle-highlight-minor-mode): New minor modes (bug#45147). * etc/compilation.txt: * etc/grep.txt: Enable outline-cycle-highlight-minor-mode.
* Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Prefer setq-local in most filesStefan Kangas2020-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/apropos.el (apropos-print): * lisp/buff-menu.el (Buffer-menu-mode): * lisp/calc/calc.el (calc-trail-buffer): * lisp/chistory.el (command-history-mode): * lisp/dabbrev.el: * lisp/dframe.el (dframe-frame-mode): * lisp/doc-view.el (doc-view-presentation-mode): * lisp/ebuff-menu.el (electric-buffer-menu-mode) (electric-buffer-update-highlight): * lisp/edmacro.el (edit-kbd-macro): * lisp/face-remap.el (buffer-face-set, buffer-face-toggle): * lisp/files.el: (find-file-noselect-1, hack-local-variables-confirm) (set-visited-file-name, revert-buffer--default): * lisp/filesets.el (filesets-spawn-external-viewer): * lisp/find-dired.el (find-dired): * lisp/find-lisp.el (find-lisp-find-dired-internal): * lisp/finder.el (finder-mode): * lisp/font-core.el (font-lock-default-function): * lisp/format.el (format-annotate-function): * lisp/help-fns.el (describe-variable): * lisp/help-mode.el (help-mode): * lisp/icomplete.el (icomplete-minibuffer-setup) (icomplete--in-region-setup): * lisp/ido.el (ido-completion-help, ido-tidy): * lisp/international/robin.el (robin-activate): * lisp/leim/quail/hangul.el (hangul-input-method-activate): * lisp/leim/quail/uni-input.el (ucs-input-activate): * lisp/man.el (Man-mode): * lisp/master.el (master-set-slave): * lisp/minibuffer.el (minibuffer-completion-help) (read-file-name-default): * lisp/outline.el (outline-minor-mode): * lisp/pcomplete.el (pcomplete-comint-setup): * lisp/proced.el (proced-mode): * lisp/recentf.el (recentf-edit-list, recentf-open-files-items): * lisp/replace.el (occur-1): * lisp/reveal.el (reveal-mode): * lisp/ruler-mode.el (ruler--save-header-line-format): * lisp/scroll-lock.el (scroll-lock-mode): * lisp/startup.el (normal-top-level, normal-splash-screen): * lisp/strokes.el (strokes-list-strokes): * lisp/thumbs.el (thumbs-insert-image, thumbs-show-thumbs-list): * lisp/tree-widget.el (tree-widget-set-theme): * lisp/window.el (read-buffer-to-switch): * lisp/xwidget.el (xwidget-webkit-begin-edit-textarea): Prefer setq-local.
* Handle outline overlays better when cycling in outline.elPaul W. Rankin2020-11-241-22/+37
| | | | | | | | | | * lisp/outline.el (outline--cycle-state): Only consider outline overlays that are on outline headings; when subtree end is point-max, return overlay-end +1 because final subtree overlay only reaches point-max -1 (bug#41198). (outline-cycle-buffer): Check that buffer has top-level headings before calling outline-hide-sublevels 1 thus preventing disconcerting buffer state of content reduced to single "..."
* * lisp/outline.el: Use lexical-bindingStefan Monnier2020-10-201-72/+49
| | | | | | | Remove redundant `group` arguments. (outline-level): Move before first use. (outline-mode): Use `setq-local`. (outline-isearch-open-invisible-function): Give it a non-nil default.
* Handle "Before first headings" error in outline-cycleYuan Fu2020-10-191-21/+19
| | | | | | | | * lisp/outline.el (outline-before-first-heading): New error. (outline-back-to-heading): Signal the new error. (outline-cycle): Ignore the error. (outline-cycle-buffer): Simply pass 1 to 'outline-hide-sublevels' (bug#41130).
* Fix documentation of Outline cycling commandsEli Zaretskii2020-10-131-1/+1
| | | | | | | | | * lisp/outline.el (outline-mode-map): Fix wording of a comment. * doc/emacs/text.texi (Outline Visibility): Fix wording and markup of a recently added paragraph. Improve indexing. * etc/NEWS: Fix whitespace of a recently added entry.
* Add cycling commands to outlineYuan Fu2020-10-131-0/+83
| | | | | | | | | | * lisp/outline.el (outline--cycle-state, outline-has-subheading-p) (outline-cycle, outline-cycle-buffer): New functions. (outline-mode-map): Add key bindings for the two new commands. (outline--cycle-buffer-state): New variable. * doc/emacs/text.text (Outline Visibility): Add 'outline-cycle' and 'outline-cycle-buffer'. * etc/NEWS (Outline): Record the change (bug#41130).
* * lisp/outline.el (outline-minor-mode-prefix): Fix compilation.Glenn Morris2020-08-081-0/+1
|
* outline-minor-mode-prefix is a key sequence, not a stringPhilip K2020-08-081-1/+1
| | | | * lisp/outline.el (outline-minor-mode-prefix): Fix the type (bug#41072).
* Make Customize changes to outline-minor-mode-prefix happen immediatelyPhilip K2020-08-081-1/+7
| | | | | * lisp/outline.el (outline-minor-mode-prefix): Update the key map after changing the value in Customize (bug#41073).