summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* WIP: Update tests to cover usage of `buffer-line-statistics'scratch/so-longPhil Sainty2021-03-212-81/+122
|
* WIP: Use `buffer-line-statistics'Phil Sainty2021-03-212-16/+53
|
* Support 'preserved' variables and minor modes in `so-long-mode'Phil Sainty2021-03-214-3/+179
| | | | | | | | | | | | | | | | | 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.
* ; so-long-tests.el: Suppress expected warningsPhil Sainty2021-03-211-2/+6
| | | | | | | | * test/lisp/so-long-tests/so-long-tests.el (so-long-tests-invisible-buffer-function): Suppress warning about obsolete function `run-window-configuration-change-hook', as we are using it intentionally (see the preceding code comments and URL for details).
* ; * lisp/so-long.el: Minor bug fixesPhil Sainty2021-03-213-7/+11
| | | | | | | | | | | | (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): Add smartparens modesPhil Sainty2021-03-211-1/+3
|
* Make `global-so-long-mode' handle unrecognised file typesPhil Sainty2021-03-212-2/+13
| | | | | | | | | | | * 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-03-212-5/+13
| | | | | | | | | | | | | | | | | | | | | | | * 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-03-211-3/+5
|
* ; * lisp/so-long.el: DocumentationPhil Sainty2021-03-211-10/+12
|
* * lisp/tutorial.el: Use lexical-binding.Stefan Kangas2021-03-211-8/+4
|
* * lisp/cedet/semantic/ia.el (semantic-ia-complete-symbol): SimplifyStefan Monnier2021-03-201-7/+2
| | | | Cut the `semantic-ia-get-completions-deprecated` middle man.
* Remove support for Syndic8.com, defunct since 2013Stefan Kangas2021-03-201-54/+6
| | | | | | * lisp/gnus/nnrss.el (nnrss-discover-feed) (nnrss-find-rss-via-syndic8): Remove support for Syndic8.com, as the site was shut down in 2013.
* ; * etc/NEWS: Minor improvement to the last change.Eli Zaretskii2021-03-201-1/+6
|
* ; Improve a recent change in NEWSEli Zaretskii2021-03-201-1/+7
| | | | | * etc/NEWS: Enhance the description of how to get the old bindings removed with the 'M-o' keymap.
* Fix cl-progv binding orderToby Cubitt2021-03-202-1/+7
| | | | | * lisp/emacs-lisp/cl-macs.el (cl-progv): Bind variables in the correct order (bug#47272).
* * etc/NEWS: Small corrections for the new command 'font-lock-update'Gregory Heytings2021-03-201-3/+3
|
* Remove Gnus specific .dir-locals.elStefan Kangas2021-03-201-4/+0
| | | | | | * lisp/gnus/.dir-locals.el: Delete file. The only variable it set was 'show-trailing-whitespace', but this should be up to the individual developer. (Bug#47278)
* Prefer https and fix broken links in ERCStefan Kangas2021-03-203-8/+9
| | | | | | | * lisp/erc/erc-button.el (erc-button-rfc-url) (erc-button-search-url): Prefer https. * lisp/erc/erc-capab.el: * lisp/erc/erc.el (erc-cmd-MODE): Fix broken links.
* * lisp/thumbs.el (thumbs-show-from-dir): Improve prompt.Stefan Kangas2021-03-201-1/+1
|
* Fix args-out-of-range error in format.elEli Zaretskii2021-03-201-7/+11
| | | | | * lisp/format.el (format-deannotate-region): Ignore todo items with FROM > TO. (Bug#47277)
* Don’t convert pointer to boolPaul Eggert2021-03-191-1/+1
| | | | | | Without this patch, Oracle Studio 12.6 complains about converting pointer to bool. * src/editfns.c (styled_format): Use !!.
* Assume something more recent than X11R6Stefan Kangas2021-03-204-6/+7
| | | | | | | | * lisp/bindings.el: * lisp/menu-bar.el: * lisp/printing.el: * lisp/thumbs.el (thumbs-conversion-program): Assume we have something more recent than X11R6.
* Use lexical-binding in thumbs.elStefan Kangas2021-03-202-32/+53
| | | | | * lisp/thumbs.el: Use lexical-binding. Remove redundant :group args. * test/lisp/thumbs-tests.el: New file.
* * lisp/novice.el: Use lexical-binding.Stefan Kangas2021-03-201-1/+1
|
* * lisp/wdired.el: Use lexical-bindingStefan Monnier2021-03-191-50/+42
| | | | | | | | | Remove redundant `:group` args. (wdired-change-to-wdired-mode): Use `add-function` to modify `revert-buffer-function`. (wdired-change-to-dired-mode): Adjust accordingly. (wdired-do-renames): Make sure to bind `dired-backup-overwrite` dynamically.
* Don't tag mouse command as mode exclusiveStefan Kangas2021-03-201-1/+1
| | | | * lisp/finder.el (finder-mouse-select): Don't tag for finder-mode.
* * lisp/emacs-lisp/bytecomp.el: Remember location of unresolved callsStefan Monnier2021-03-191-51/+20
| | | | | | | | | | | | | | | I've gotten tired of seeing the "function foo not known to be defined" warning without any line number information. So this patch adds as line number the position of the first use of that function in the file (well, approximately, as usual). (byte-compile-unresolved-functions): Add POSITIONs in the alist. (byte-compile-function-warn): Store the current position in `byte-compile-unresolved-functions`. (byte-compile-arglist-warn): Adjust accordingly. (byte-compile-print-syms): Delete unused function. (byte-compile-warn-about-unresolved-functions): Use the stored position to give more precise warnings.
* * lisp/emacs-lisp/pcase.el (pcase-compile-patterns): New function (bug#47261)Stefan Monnier2021-03-192-54/+96
| | | | | Extracted from `pcase--expand`. (pcase--expand): Use it.
* Improve the docs of a recent change in mb-depth.elEli Zaretskii2021-03-191-4/+7
| | | | | | * lisp/mb-depth.el (minibuffer-depth-indicator-function): Improve the wording of the doc string and of the label used for the default value. (Bug#47252)
* Fix :type of recently introduced defcustomMauro Aranda2021-03-191-1/+2
| | | | | * lisp/mb-depth.el (minibuffer-depth-indicator-function): The option can be nil, so add nil as a choice. (Bug#47252)
* Make minibuffer-depth-indicator-function a defcustomGabriel do Nascimento Ribeiro2021-03-191-2/+5
| | | | | * lisp/mb-depth.el (minibuffer-depth-indicator-function): Make into a user option (bug#47252).
* Warn the user if we can't find pkg-configLars Ingebrigtsen2021-03-191-0/+5
| | | | | * configure.ac (WITH_IFAVAILABLE): Warn the user if we can't find a usable pkg-config (bug#47159).
* Add a note to NEWS as to how to restore the facemenuLars Ingebrigtsen2021-03-191-0/+4
|
* Fix copyright lines mistakenly treated as outline headersStefan Monnier2021-03-188-8/+8
| | | | | | | | | | | * lisp/emacs-lisp/generator.el: * test/lisp/cedet/semantic-utest.el: * test/lisp/cedet/semantic/format-tests.el: * test/lisp/cedet/semantic/fw-tests.el: * test/lisp/cedet/semantic/bovine/gcc-tests.el: * test/lisp/cedet/semantic/format-resources/test-fmt.el: * test/manual/cedet/semantic-tests.el: * lisp/obsolete/inversion.el: Use only 2 semi-colons before "Copyright".
* lisp/erc: Use lexical-bindingStefan Monnier2021-03-1835-584/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove various redundant `:group` arguments. * lisp/erc/erc-backend.el (define-erc-response-handler): Move `declare` after the docstring. * lisp/erc/erc-capab.el: Use lexical-binding. (erc-capab-identify-activate): Simplify with `member`. * lisp/erc/erc-dcc.el (erc-dcc): Move before erc-dcc-mode definition, which refers to it. (erc-dcc-chat-accept): Remove unused vars `nick` and `buffer`. * lisp/erc/erc-imenu.el: Use lexical-binding. (erc-create-imenu-index): Remove unused var `prev-pos`. * lisp/erc/erc-match.el: Use lexical-binding. (erc-match-message): Remove unused var `old-pt`. (erc-match-message): Strength-reduce `eval` to `symbol-value`. * lisp/erc/erc-page.el: Use lexical-binding. (erc-page): Move Custom group before `erg-page-mode` which refers to it. * lisp/erc/erc-replace.el: Use lexical-binding. (erc-replace-insert): Use `functionp`. * lisp/erc/erc-status-sidebar.el: Use lexical-binding. (erc-status-sidebar-open): Remove unused var `sidebar-window`. * lisp/erc/erc.el: Fix header to use the customary 3 semi-colons. (erc-fill-column): Declare variable. * lisp/erc/erc-autoaway.el: Use lexical-binding. * lisp/erc/erc-ezbounce.el: Use lexical-binding. * lisp/erc/erc-fill.el: Use lexical-binding. * lisp/erc/erc-goodies.el: Use lexical-binding. * lisp/erc/erc-ibuffer.el: Use lexical-binding. * lisp/erc/erc-identd.el: Use lexical-binding. * lisp/erc/erc-join.el: Use lexical-binding. * lisp/erc/erc-lang.el: Use lexical-binding. * lisp/erc/erc-log.el: Use lexical-binding. * lisp/erc/erc-menu.el: Use lexical-binding. * lisp/erc/erc-netsplit.el: Use lexical-binding. * lisp/erc/erc-networks.el: Use lexical-binding. * lisp/erc/erc-pcomplete.el: Use lexical-binding. * lisp/erc/erc-ring.el: Use lexical-binding. * lisp/erc/erc-speedbar.el: Use lexical-binding. * lisp/erc/erc-spelling.el: Use lexical-binding. * lisp/erc/erc-truncate.el: Use lexical-binding. * lisp/erc/erc-xdcc.el: Use lexical-binding.
* Do interactive mode tagging for finder.elStefan Kangas2021-03-191-4/+5
|
* Use lexical-binding in finder.elStefan Kangas2021-03-191-11/+9
| | | | | | * lisp/finder.el: Use lexical-binding. (finder-mode-map, finder-compile-keywords): Remove unused lexical variables.
* Fix a warning due to not preloading facemenu.elStefan Kangas2021-03-191-0/+1
| | | | * test/src/undo-tests.el (facemenu): Require.
* * lisp/faces.el (help-key-binding): Tweak background.Stefan Kangas2021-03-181-2/+2
|
* * lisp/emacs-lisp/cl-macs.el (cl--self-tco): Optimize the "return nil" caseStefan Monnier2021-03-181-6/+12
|
* * test/lisp/progmodes/cperl-mode-tests.el: Silence warningsStefan Monnier2021-03-181-3/+6
| | | | (cperl-test-bug-47112): Actually obey the major-mode for the test.
* * lisp/newcomment.el: Allow 'comment-continue' with whitespace (bug#47167)Juri Linkov2021-03-181-1/+5
| | | | | * lisp/newcomment.el (comment-region-default-1): Still use 'comment-continue' as a string with whitespace even when 'comment-padright' returns nil.
* * lisp/simple.el (next-error-quit-window): New function (bug#44611).Juri Linkov2021-03-182-0/+17
| | | | (next-error-found-function): Add it as a choice.
* ; ChangeLog.3 fixGlenn Morris2021-03-181-1/+1
| | | | | admin/make-tarball.txt: "It's best not to commit these files until the release is actually made"
* * admin/make-tarball.txt: Be kind to people merging branches.Glenn Morris2021-03-181-9/+12
|
* Merge from origin/emacs-27Glenn Morris2021-03-184-24/+384
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | d5b160d7cc (tag: emacs-27.2-rc1, origin/emacs-27) Prepare the Emacs 2... 216bd67a4f ; * admin/make-tarball.txt: Advise to remove stale subdire... # Conflicts: # ChangeLog.3 # README # configure.ac # etc/AUTHORS # etc/NEWS # lisp/ldefs-boot.el # msdos/sed2v2.inp # nt/README.W32
| * Prepare the Emacs 27.2 release.emacs-27.2-rc1Eli Zaretskii2021-03-189-48/+416
| | | | | | | | | | | | | | | | | | * etc/HISTORY: Update for Emacs 27.2. * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Set version to 27.2
| * ; * admin/make-tarball.txt: Advise to remove stale subdirectories.Eli Zaretskii2021-03-181-0/+5
| |
* | ; Merge from origin/emacs-27Glenn Morris2021-03-180-0/+0
|\ \ | |/ | | | | | | | | The following commit was skipped: 7ae4588bb4 Document that `buffer-string' retains text properties