summaryrefslogtreecommitdiff
path: root/lisp/outline.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix outline-minor-mode-mapLars Ingebrigtsen2022-09-011-4/+4
| | | | | | * lisp/outline.el (outline-minor-mode): Avoid using easy-mmode-define-keymap, since it doesn't handle :inherit correctly (bug#57512).
* Fix 744ed0ceeed7472a160fea7154939cf641205577 from bug#57082 (bug#57176)Juri Linkov2022-08-301-10/+11
| | | | | | | * lisp/outline.el (outline-minor-mode-highlight-buffer): Handle 'append'. (outline-minor-mode): Call outline--fix-up-all-buttons when font-lock is used. * lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common): Fix regexp.
* Tweak outline symbol iconsLars Ingebrigtsen2022-08-131-2/+2
| | | | | * lisp/outline.el (outline-close, outline-open): Use icons of the same size in Symbola.
* Default outline-minor-mode-use-buttons to only happen in *Help*Lars Ingebrigtsen2022-08-121-1/+1
| | | | | | | | * lisp/outline.el (outline-minor-mode-use-buttons): Change the default to only use buttons in the *Help* buffer (for now), because it's too disruptive in other modes. This will probably be changed again to have some other mechanism to opt in in certain modes, but it's not clear what that mechanism should look like.
* Reverse the outline arrowsStephen Berman2022-08-121-4/+4
| | | | | * lisp/outline.el (outline-open): Reverse the arrows to match arrows in Customize (bug#57082).
* Make outline buttons work in NEWSStephen Berman2022-08-091-30/+31
| | | | | | | | | | | | * lisp/outline.el (outline-minor-mode-highlight-buffer): Fix button insertion. (outline-minor-mode): Ditto. (outline--insert-open-button): Don't mark buffer as modified when inserting buttons. (outline--insert-close-button): Ditto. * lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common): Adjust outline regexp.
* Make the symbol icons in outline.el more logicalLars Ingebrigtsen2022-07-301-2/+2
| | | | | * lisp/outline.el (outline-open, outline-close): Use symbols from the same series so that it's more likely that they match up (bug#56823).
* Fix outline-minor-mode-use-buttons defcustom typeLars Ingebrigtsen2022-07-301-1/+1
| | | | * lisp/outline.el (outline-minor-mode-use-buttons): Fix wrong type.
* Adjust outline--use-buttons-p to buffer-match-p changeLars Ingebrigtsen2022-07-301-6/+3
| | | | | * lisp/outline.el (outline-minor-mode-use-buttons): Adjust doc string. (outline--use-buttons-p): No longer any need to special-case t/nil.
* Make outline-view-change-hook obsoleteStefan Kangas2022-07-301-1/+1
| | | | | | According to a comment, this hook "Seems only used by lazy-lock. I.e. obsolete." But lazy-lock has been deleted. * lisp/outline.el (outline-view-change-hook): Make obsolete.
* Fix outline byte compilation warning from previous changeLars Ingebrigtsen2022-07-291-7/+7
| | | | | * lisp/outline.el (outline--use-buttons-p): Move around to fix byte compilation warning.
* 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