summaryrefslogtreecommitdiff
path: root/lisp/so-long.el
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* ; Fix typosStefan Kangas2022-12-161-1/+1
|
* ; Fix typos (prefer US spelling)Stefan Kangas2022-11-181-2/+2
|
* Merge from origin/emacs-28Stefan Kangas2022-07-141-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | 5e47ec9511 ; * lisp/url/url-http.el (url-http-parse-headers): Fix typo. ba0871bef1 ; Fix typos: prefer American spelling e3e7f31faa Adapt Tramp doc # Conflicts: # etc/NEWS # etc/themes/modus-themes.el # lisp/emacs-lisp/byte-opt.el # test/lisp/so-long-tests/spelling-tests.el
| * ; Fix typos: prefer American spellingStefan Kangas2022-07-131-4/+4
| |
* | Prefer :risky defcustom keywordStefan Kangas2022-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/align.el (align-region-separate, align-rules-list) (align-exclude-rules-list, align-vhdl-rules-list): * lisp/bindings.el (mode-line-percent-position): * lisp/filesets.el (filesets-menu-cache-file, filesets-commands) (filesets-external-viewers, filesets-ingroup-patterns) (filesets-data): * lisp/hi-lock.el (hi-lock-file-patterns-policy): * lisp/mail/mailalias.el (mail-complete-alist) (mail-directory-process, mail-directory-stream) (mail-directory-parser): * lisp/mail/rmail.el (rmail-confirm-expunge): * lisp/mail/sendmail.el (mail-signature): * lisp/mail/supercite.el (sc-cite-frame-alist) (sc-uncite-frame-alist, sc-recite-frame-alist) (sc-default-cite-frame, sc-default-uncite-frame) (sc-default-recite-frame, sc-attrib-selection-list) (sc-rewrite-header-list): * lisp/progmodes/make-mode.el (makefile-special-targets-list): * lisp/so-long.el (so-long-action-alist): * lisp/textmodes/sgml-mode.el (sgml-tag-alist): Prefer defcustom :risky keyword argument to directly setting the 'risky-local-variable' symbol property.
* | Merge from origin/emacs-28Stefan Kangas2022-06-241-26/+26
|\| | | | | | | | | | | | | a772c0b852 ; Fix typos: prefer US spelling. # Conflicts: # doc/misc/modus-themes.org
| * ; Fix typos: prefer US spelling.Stefan Kangas2022-06-231-26/+26
| |
* | Audit symbol quoting in Lisp doc stringsLars Ingebrigtsen2022-05-241-2/+2
|/ | | | | | | | | | | | * lisp/vc/vc-svn.el (vc-svn-dir-status-files): * lisp/so-long.el (so-long-mode-maintain-preserved-variables): * lisp/help-fns.el (help-fns--most-relevant-active-keymap): * lisp/gnus/nnselect.el (nnselect-get-artlist): (nnselect-store-artlist): * lisp/forms.el (forms-enumerate): * lisp/ffap.el (ffap-string-at-point): * lisp/emacs-lisp/byte-run.el (define-obsolete-variable-alias): Audit symbol quoting in Lisp doc strings.
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
|
* ; More minor stylistic fixes found by checkdocStefan Kangas2021-09-221-4/+4
|
* Don't quote nil and t in doc strings and commentsLars Ingebrigtsen2021-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/minibuf-tests.el (test-try-completion-ignore-case): * test/lisp/url/url-auth-tests.el (url-auth-test-digest-auth-retrieve-cache): * test/lisp/subr-tests.el (subr-tests-add-hook-depth): * test/lisp/so-long-tests/so-long-tests.el (so-long-tests-invisible-buffer-function): * test/lisp/emacs-lisp/tabulated-list-test.el (tabulated-list-sort): * src/xfaces.c: * src/process.c (Finterrupt_process): (syms_of_process): * src/minibuf.c (Fread_from_minibuffer): (Fcompleting_read): (syms_of_minibuf): * src/dispnew.c (syms_of_display): * src/data.c: * lisp/so-long.el (so-long--hack-local-variables): * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions): (elisp--xref-find-definitions): * lisp/org/ox-html.el (org-html-htmlize-output-type): * lisp/org/org-agenda.el (org-agenda-do-in-region): * lisp/net/tramp.el: * lisp/minibuffer.el (set-minibuffer-message): * lisp/isearch.el (isearch-wrap-pause): (isearch-repeat-on-direction-change): * lisp/emacs-lisp/timer.el (timer): * lisp/emacs-lisp/package.el (package-read-archive-contents): * lisp/emacs-lisp/faceup.el (faceup-next-property-change): * lisp/emacs-lisp/comp.el (comp-func): * lisp/emacs-lisp/comp-cstr.el (comp-cstr-empty-p): * lisp/emacs-lisp/cl-macs.el (cl-do): (cl-do*): (cl--self-tco): * lisp/emacs-lisp/bytecomp.el (byte-compile-unresolved-functions): (byte-compile-cond-jump-table): Don't quote t and nil.
* ; * lisp/so-long.el (so-long-mode): Use `so-long-mode-line-active' facePhil Sainty2021-09-191-4/+11
|
* ; * lisp/so-long.el: DocumentationPhil Sainty2021-09-191-23/+31
| | | | | | | | | | | | | | | | Clarify things which are only relevant to 'global-so-long-mode', and not when the 'so-long' command, or one of its actions, is invoked directly. Use the new "customization group" hyperlink syntax. Only quote 'so-long' as a symbol when it specifically refers to the command (or will otherwise generate a hyperlink which is appropriate to the context). When referring to the library more generally, leave it unquoted. Changes from commit 63f419f1339cbd0a7d1e64586854a4f01b3f80d1 are reverted or improved.
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-161-7/+7
|
* ; More minor docfixes found by checkdocStefan Kangas2021-09-141-1/+1
|
* ; * lisp/so-long.el: Bump version for the GNU ELPA buildPhil Sainty2021-08-041-1/+2
| | | | | GNU ELPA released commit 359a8e4eda047b7dcb7e64faff7f8eaacf5d937c as version 1.1.
* Make `global-so-long-mode' use `buffer-line-statistics'Phil Sainty2021-08-031-14/+50
| | | | | | | | | | | | * lisp/so-long.el: (so-long-statistics-excessive-p): New predicate function using `buffer-line-statistics'. (so-long-predicate): Use `so-long-statistics-excessive-p' by default. * etc/NEWS: Describe changes. * test/lisp/so-long-tests/so-long-tests-helpers.el: * test/lisp/so-long-tests/so-long-tests.el: Update tests. Also improve the existing `so-long-tests-predicate' tests.
* ; Revert "Make `so-long' restore `view-mode'"Phil Sainty2021-08-031-6/+2
| | | | | | | | | | This reverts commit 3c2db0c541491fceb7081d5b54de5abec25e2f4b. A more general solution to bug#45084 has been implemented via new user options `so-long-mode-preserved-variables' and `so-long-mode-preserved-minor-modes'. See the previous commit (before this revert) for details.
* Support 'preserved' variables and minor modes in `so-long-mode'Phil Sainty2021-08-031-1/+98
| | | | | | | | | | | | | | | | | The default values support preserving the state of `view-mode' when switching to (and reverting from) `so-long-mode' (bug#45084). * lisp/so-long.el (so-long-mode-preserved-variables) (so-long-mode-preserved-minor-modes): New user options. (so-long-mode-maintain-preserved-variables) (so-long-mode-maintain-preserved-minor-modes): New functions. (so-long-remember-all, so-long-after-change-major-mode) (so-long-mode-revert): Use them. * etc/NEWS: Describe changes. * test/lisp/so-long-tests/so-long-tests-helpers.el: * test/lisp/so-long-tests/so-long-tests.el: Update tests.
* ; * lisp/so-long.el: Minor bug fixesPhil Sainty2021-08-031-3/+4
| | | | | | | | | | | | (so-long-disable-minor-modes): Don't call the mode function to disable the mode unless it was actually enabled. (so-long-restore-minor-modes, so-long-restore-variables): Use the remembered list values, which might be different to the defaults. Also comments, and spelling consistency changes for the so-long tests (a fixup for commit 83bc4ad369 which had only addressed so-long.el, and not the test files).
* * lisp/so-long.el (so-long-minor-modes): Additional modes to disablePhil Sainty2021-08-031-1/+4
|
* Make `global-so-long-mode' handle unrecognised file typesPhil Sainty2021-08-031-2/+3
| | | | | | | | | | | * lisp/so-long.el (so-long-target-modes): Add `fundamental-mode' * etc/NEWS: Describe changes. This doesn't affect buffers which are simply in `fundamental-mode' by default. It only affects buffers for which `set-auto-mode' has been called (normally via `find-file') without establishing a different major mode.
* Increase `so-long-threshold' and `so-long-max-lines' defaultsPhil Sainty2021-08-031-5/+6
| | | | | | | | | | | | | | | | | | | | | | | * lisp/so-long.el (so-long-threshold, so-long-max-lines): Increase default values to reduce false-positives. * etc/NEWS: Describe changes. Lines shorter than 10,000 characters shouldn't generally be causing problems, so testing this explicitly will largely eliminate false-positives. We must also increase the maximum number of lines to check, because 'minified' code may still include newlines, and so there may be many lines shorter than the new threshold before we find a line which exceeds it. Previously we used a minimum-effort heuristic, testing a very small number of lines against a maximum length which, while not remotely long enough to cause problems, would nevertheless be uncommon in any normal file of programming code (and hence indicative that the file was likely to be minified code). Testing indicates that the performance penalty for the larger values should be negligible.
* ; * lisp/so-long.el: Bump to version 1.1Phil Sainty2021-08-031-3/+5
|
* ; * lisp/so-long.el: DocumentationPhil Sainty2021-08-031-11/+16
|
* Make `so-long' restore `view-mode'Lars Ingebrigtsen2021-06-061-2/+6
| | | | | * lisp/so-long.el (so-long): Make the `v' command in Dired work more reliably (bug#45084).
* * lisp/**/*.el: Avoid positional args to `define-minor-mode`Stefan Monnier2021-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Merge from origin/emacs-27Glenn Morris2020-12-251-3/+3
|\ | | | | | | | | | | | | | | | | | | 5d46593568 Support build of Emacs on ARM Macos machines 7f8793e5f1 Update to Org 9.4.4 7b3367a0b5 * lisp/so-long.el: Decrease use of passive voice. a90836c638 * doc/misc/efaq.texi (New in Emacs 27): Add section. 711fe70dd8 * doc/misc/efaq.texi (Latest version of Emacs): Bump version. 52b30834fb * lisp/face-remap.el (face-remap-set-base): Doc fix. (Bug... b3fe0ac62e Correct argument order in comment
| * * lisp/so-long.el: Decrease use of passive voice.Stefan Kangas2020-12-211-3/+3
| | | | | | | | Suggested by Richard Stallman <rms@gnu.org>.
* | * lisp/so-long.el: Doc fix to reduce use of passive voice.Stefan Kangas2020-11-301-7/+6
| |
* | ; Fix typosStefan Kangas2020-09-211-1/+1
| |
* | Merge from origin/emacs-27Glenn Morris2020-08-131-9/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | 86d8d76aa3 (tag: emacs-27.1-rc2, tag: emacs-27.1) ; lisp/ldefs-boot.e... a6634197da * etc/HISTORY: Update the Emacs 27.1 release date. a68b3f761a ; Update ChangeLog.3 7cc85e7b51 ; Update etc/AUTHORS 1ca4da054b ; * etc/NEWS: fix some quoting 5578febcd4 ; * lisp/so-long.el: Documentation fa20e443c8 lisp/so-long.el: Improve support for major mode hooks # Conflicts: # etc/AUTHORS # etc/NEWS
| * ; * lisp/so-long.el: DocumentationPhil Sainty2020-08-041-7/+10
| |
| * lisp/so-long.el: Improve support for major mode hooksPhil Sainty2020-08-041-3/+46
| | | | | | | | | | | | | | | | | | | | * lisp/so-long.el (so-long-remember-all, so-long-disable-minor-modes) (so-long-override-variables): Store and use the `so-long-minor-modes' and `so-long-variable-overrides' values seen by the original major mode, so that buffer-local changes made in the major mode hook will be respected. Add documentation of this and other major mode hook usage.
* | Merge from origin/emacs-27Glenn Morris2020-08-031-37/+51
|\| | | | | | | | | | | | | | | | | | | | | | | 8576297b2a (origin/emacs-27) ; lisp/so-long.el: Prevent potential err... 986c12b20f ; * lisp/so-long.el: Byte-compilation bug fix 19f8f36f11 ; * lisp/so-long.el (so-long-variable-overrides): Improve doc 83bc4ad369 ; * so-long.el: Documentation and spelling 72c5f71cd4 Avoid segfaults if XIM is set but not xim_styles f54ddb0198 (emacs-27) ; * test/lisp/emacs-lisp/generator-tests.el: St... # Conflicts: # test/lisp/emacs-lisp/generator-tests.el
| * ; lisp/so-long.el: Prevent potential error if comment-use-syntax is nilPhil Sainty2020-08-041-1/+3
| | | | | | | | | | | | | | * lisp/so-long.el (so-long-detected-long-line-p): Ensure that `comment-start-skip' and `comment-end-skip' are both set if `comment-use-syntax' is nil, as `comment-forward' requires them to be bound in this scenario.
| * ; * lisp/so-long.el: Byte-compilation bug fixPhil Sainty2020-08-041-1/+2
| | | | | | | | | | | | | | As this `require' is not at the top-level (it is only conditionally evaluated, when loading the library over the top of an earlier version), we need `eval-and-compile' to ensure that both macros and functions from advice.el are accounted for.
| * ; * lisp/so-long.el (so-long-variable-overrides): Improve docPhil Sainty2020-08-041-2/+13
| |
| * ; * so-long.el: Documentation and spellingPhil Sainty2020-08-041-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverting certain changes from commits b0f20651e3 and d1a791f8ed. Please refer to the comments on spelling at the end of the library. M-x ispell-buffer should find no misspellings in the documentation. See also test/lisp/so-long-tests/spelling-tests.el (The current spelling will persist while so-long.el is maintained in its own Savannah repository, to avoid unnecessary conflicts between the two versions. If in the future it is maintained solely in the Emacs repository, changing the spelling would become an option.) Note that "mitigations" (plural) is intentional -- this library identifies a collection of different performance mitigations, multiple of which will typically be in effect together.
* | Make so-long test pass following lisp-mnt changeGlenn Morris2020-01-231-3/+5
|/ | | | * lisp/so-long.el (so-long-commentary): Update for lisp-mnt change.
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* ; Spelling fixesPaul Eggert2019-12-101-12/+12
|
* Spelling fixesPaul Eggert2019-12-091-24/+24
|
* * lisp/so-long.el (so-long-variable-overrides): Set bidi-inhibit-bpaPhil Sainty2019-11-301-2/+4
| | | | (Bug#38407)
* lisp/so-long.el: Refactor menu action commandsPhil Sainty2019-11-181-22/+13
| | | | | | | | | * lisp/so-long.el (so-long-menu): Call `so-long' with an ACTION argument instead of using `so-long-menu-item-replace-action'. (so-long-menu-item-replace-action): Remove the deprecated function. * test/lisp/so-long-tests/so-long-tests.el (so-long-tests-so-long-menu-item-replace-action): Update the test.
* * lisp/so-long.el (so-long): Firstly revert the existing action, if anyPhil Sainty2019-11-181-2/+10
| | | | | | | | This makes `so-long' consistent with the action commands in the menu. If multiple actions were to be layered on top of one another, we would lose the ability to revert to the normal state. Custom actions combining multiple other actions can be defined if necessary.
* lisp/so-long.el: Use (interactive "@") for menu commandsStefan Monnier2019-11-181-36/+17
| | | | | | | | | | | | | | * lisp/so-long.el (so-long-menu, so-long-menu-item-replace-action) (so-long-revert): Use interactive code "@", replacing all uses of `so-long-menu-click-window'. This approach leaves the window selected afterwards, whereas the old code did not; but that is not a problem. (so-long-menu-click-window, so-long-menu-item-revert): Remove the deprecated functions. * test/lisp/so-long-tests/so-long-tests.el (so-long-tests-so-long-menu-item-replace-action): Update the test. Co-authored-by: Phil Sainty <psainty@orcon.net.nz>