summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Prefer defvar-local in international/*.elStefan Kangas2021-01-314-36/+18
| | | | | | | | | | | | | | | | * lisp/international/mule-cmds.el (current-input-method) (current-input-method-title, current-transient-input-method) (previous-transient-input-method, input-method-history) (deactivate-current-input-method-function) (describe-current-input-method-function): * lisp/international/mule.el (buffer-file-coding-system-explicit): * lisp/international/quail.el (quail-current-package) (quail-guidance-str, quail-overlay, quail-conv-overlay) (quail-current-key, quail-current-str) (quail-current-translations, quail-current-data): * lisp/international/robin.el (robin-mode) (robin-current-package-name): Prefer defvar-local in international/*.el.
* Prefer defvar-local in nxml/*.elStefan Kangas2021-01-313-28/+14
| | | | | | | | | | | * lisp/nxml/rng-cmpct.el (rng-c-current-token) (rng-c-escape-positions, rng-c-file-name): * lisp/nxml/rng-pttrn.el (rng-current-schema): * lisp/nxml/rng-valid.el (rng-validate-timer) (rng-validate-quick-timer, rng-error-count, rng-message-overlay) (rng-message-overlay-inhibit-point, rng-message-overlay-current) (rng-validate-up-to-date-end, rng-conditional-up-to-date-start) (rng-conditional-up-to-date-end, rng-dtd): Prefer defvar-local.
* Prefer defvar-local in emacs-lisp/*.elStefan Kangas2021-01-316-20/+10
| | | | | | | | | | | | * lisp/emacs-lisp/chart.el (chart-local-object): * lisp/emacs-lisp/easy-mmode.el (define-minor-mode) (define-globalized-minor-mode): * lisp/emacs-lisp/edebug.el: * lisp/emacs-lisp/generic.el (generic-font-lock-keywords): * lisp/emacs-lisp/re-builder.el (reb-regexp, reb-regexp-src) (reb-overlays): * lisp/emacs-lisp/syntax.el (syntax-propertize-extend-region-functions): Prefer defvar-local.
* Prefer defvar-local in alloutStefan Kangas2021-01-312-76/+39
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/allout.el (allout-just-did-undo, allout-mode) (allout-layout, allout-regexp, allout-bullets-string) (allout-bullets-string-len, allout-depth-specific-regexp) (allout-depth-one-regexp, allout-line-boundary-regexp) (allout-bob-regexp, allout-header-subtraction) (allout-plain-bullets-string-len, allout-mode-prior-settings) (allout-outside-normal-auto-fill-function) (allout-encryption-plaintext-sanitization-regexps) (allout-encryption-ciphertext-rejection-regexps) (allout-explicitly-deactivated, allout-recent-prefix-beginning) (allout-recent-prefix-end, allout-recent-depth) (allout-recent-end-of-subtree, allout-post-goto-bullet) (allout-command-counter, allout-this-command-hid-text): * lisp/allout-widgets.el (allout-widgets-mode) (allout-widgets-tally, allout-widgets-mode-inhibit) (allout-inhibit-body-modification-hook) (allout-widgets-changes-record) (allout-widgets-undo-exposure-record) (allout-escaped-prefix-regexp, allout-item-icon-keymap) (allout-item-body-keymap, allout-cue-span-keymap) (allout-widgets-last-decoration-timing) (allout-container-item-widget): Prefer defvar-local.
* Prefer defvar-local in cuaStefan Kangas2021-01-312-9/+5
| | | | | | | * lisp/emulation/cua-base.el (cua-inhibit-cua-keys) (cua--status-string): * lisp/emulation/cua-rect.el (cua--rectangle) (cua--rectangle-overlays): Prefer defvar-local.
* Obsolete viper-deflocalvar for defvar-localStefan Kangas2021-01-316-99/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emulation/viper-init.el (viper-deflocalvar): Make obsolete. Use defvar-local. * lisp/emulation/viper-cmd.el (viper--undo-change-group-handle): * lisp/emulation/viper-init.el (viper-vi-intercept-minor-mode) (viper-vi-basic-minor-mode, viper-vi-local-user-minor-mode) (viper-vi-global-user-minor-mode) (viper-vi-state-modifier-minor-mode) (viper-vi-diehard-minor-mode, viper-vi-kbd-minor-mode) (viper-insert-intercept-minor-mode) (viper-insert-basic-minor-mode) (viper-insert-local-user-minor-mode) (viper-insert-global-user-minor-mode) (viper-insert-state-modifier-minor-mode) (viper-insert-diehard-minor-mode, viper-insert-kbd-minor-mode) (viper-replace-minor-mode, viper-emacs-intercept-minor-mode) (viper-emacs-local-user-minor-mode) (viper-emacs-global-user-minor-mode, viper-emacs-kbd-minor-mode) (viper-emacs-state-modifier-minor-mode) (viper-vi-minibuffer-minor-mode) (viper-insert-minibuffer-minor-mode) (viper-automatic-iso-accents, viper-special-input-method) (viper-intermediate-command, viper-began-as-replace) (viper-replace-overlay, viper-last-posn-in-replace-region) (viper-last-posn-while-in-insert-state) (viper-sitting-in-replace, viper-replace-chars-to-delete) (viper-replace-region-chars-deleted, viper-current-state) (viper-cted, viper-current-indent, viper-preserve-indent) (viper-auto-indent, viper-electric-mode, viper-insert-point) (viper-pre-command-point, viper-com-point) (viper-ex-style-motion, viper-ex-style-editing) (viper-ESC-moves-cursor-back, viper-delete-backwards-in-replace) (viper-related-files-and-buffers-ring) (viper-local-search-start-marker, viper-search-overlay) (viper-last-jump, viper-last-jump-ignore) (viper-minibuffer-current-face, viper-minibuffer-overlay): * lisp/emulation/viper-keym.el (viper-vi-local-user-map) (viper-insert-local-user-map, viper-emacs-local-user-map) (viper--key-maps, viper-need-new-vi-local-map) (viper-need-new-insert-local-map) (viper-need-new-emacs-local-map): * lisp/emulation/viper-mous.el (viper-mouse-click-search-noerror) (viper-mouse-click-search-limit): * lisp/emulation/viper-util.el (viper-non-word-characters) (viper-ALPHA-char-class): * lisp/emulation/viper.el: Use defvar-local instead of now obsolete macro viper-deflocalvar.
* Don't attempt to display input method guidance in expired minibuffersAlan Mackenzie2021-01-311-4/+9
| | | | | | | | This caused infinite waits in circumstances involving setting an input method in a global minor mode. This commit fixes bug #45792. * lisp/international/quail.el (quail-show-guidance): Test the major mode is not minibuffer-inactive-mode before proceding with the function.
* Make operating-system-release obsoleteLars Ingebrigtsen2021-01-311-0/+1
| | | | | | * lisp/subr.el (operating-system-release): Make obsolete (bug#39940). There are no in-tree usages any more, and the data doesn't seem all that interesting on its own.
* Doc string improvements around `default-korean-keyboard'Lars Ingebrigtsen2021-01-311-5/+11
| | | | | | | * lisp/language/korea-util.el (default-korean-keyboard): Mention "Hangul" here for easier discoverability. (toggle-korean-input-method, quail-hangul-switch-symbol-ksc) (quail-hangul-switch-hanja): Mention the variable.
* Revert "Improve fontifying of #| ... |# in `lisp-mode'"Lars Ingebrigtsen2021-01-311-1/+0
| | | | | | This reverts commit 1275dc4711af77c9c223063dcd149d782d497463. Setting comment-end isn't the correct thing to do -- it makes M-; insert that string.
* ; Fix my previous commitStefan Kangas2021-01-312-2/+2
| | | | | | * lisp/play/5x5.el (5x5-solver-output): Prefer defvar-local. * lisp/play/gamegrid.el (gamegrid-display-table): Provide default value.
* Prefer defvar-local in play/*.elStefan Kangas2021-01-315-78/+41
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/play/5x5.el (5x5-grid, 5x5-x-pos, 5x5-y-pos, 5x5-moves, 5x5-cracking): * lisp/play/decipher.el (decipher-alphabet) (decipher-stats-buffer, decipher-undo-list-size) (decipher-undo-list): * lisp/play/gamegrid.el (gamegrid-use-glyphs) (gamegrid-use-color, gamegrid-font, gamegrid-face) (gamegrid-display-options, gamegrid-buffer-width) (gamegrid-buffer-height, gamegrid-blank, gamegrid-timer) (gamegrid-display-mode, gamegrid-display-table) (gamegrid-face-table, gamegrid-buffer-start) (gamegrid-score-file-length): * lisp/play/snake.el (snake-length, snake-velocity-x) (snake-velocity-y, snake-positions, snake-score, snake-paused) (snake-moved-p, snake-velocity-queue): * lisp/play/tetris.el (tetris-shape, tetris-rot) (tetris-next-shape, tetris-n-shapes, tetris-n-rows) (tetris-score, tetris-pos-x, tetris-pos-y, tetris-paused): Prefer defvar-local. * lisp/play/5x5.el (5x5-defvar-local): Make obsolete.
* Remove redundant defvar for artist-modeStefan Kangas2021-01-311-4/+0
| | | | | * lisp/textmodes/artist.el (artist-mode): Remove redundant defvar; it is defined by define-minor-mode.
* Prefer defvar-local in ercStefan Kangas2021-01-3111-138/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc-backend.el (erc-server-current-nick) (erc-server-process, erc-session-server, erc-session-connector) (erc-session-port, erc-server-announced-name) (erc-server-version, erc-server-parameters) (erc-server-connected, erc-server-reconnect-count) (erc-server-quitting, erc-server-reconnecting) (erc-server-timed-out, erc-server-banned) (erc-server-error-occurred, erc-server-lines-sent) (erc-server-last-peers, erc-server-last-sent-time) (erc-server-last-ping-time, erc-server-last-received-time) (erc-server-lag, erc-server-filter-data, erc-server-duplicates) (erc-server-processing-p, erc-server-flood-last-message) (erc-server-flood-queue, erc-server-flood-timer) (erc-server-ping-handler): * lisp/erc/erc-capab.el (erc-capab-identify-activated) (erc-capab-identify-sent): * lisp/erc/erc-dcc.el (erc-dcc-byte-count, erc-dcc-entry-data) (erc-dcc-file-name): * lisp/erc/erc-ezbounce.el (erc-ezb-session-list): * lisp/erc/erc-join.el (erc--autojoin-timer): * lisp/erc/erc-netsplit.el (erc-netsplit-list): * lisp/erc/erc-networks.el (erc-network): * lisp/erc/erc-notify.el (erc-last-ison, erc-last-ison-time): * lisp/erc/erc-ring.el (erc-input-ring, erc-input-ring-index): * lisp/erc/erc-stamp.el (erc-timestamp-last-inserted) (erc-timestamp-last-inserted-left) (erc-timestamp-last-inserted-right): * lisp/erc/erc.el (erc-session-password, erc-channel-users) (erc-server-users, erc-channel-topic, erc-channel-modes) (erc-insert-marker, erc-input-marker, erc-last-saved-position) (erc-dbuf, erc-active-buffer, erc-default-recipients) (erc-session-user-full-name, erc-channel-user-limit) (erc-channel-key, erc-invitation, erc-channel-list) (erc-bad-nick, erc-logged-in, erc-default-nicks) (erc-nick-change-attempt-count, erc-send-input-line-function) (erc-channel-new-member-names, erc-channel-banlist) (erc-current-message-catalog): Prefer defvar-local.
* Remove redundant requires of 'derived'Stefan Kangas2021-01-314-4/+0
| | | | | | | | * lisp/net/newst-backend.el (derived): * lisp/net/newst-plainview.el (derived): * lisp/play/gametree.el (derived): * lisp/textmodes/less-css-mode.el (derived): Remove redundant require; 'define-derived-mode' is autoloaded.
* Recompute mode-lines when marking conflicts resolvedDmitry Gutov2021-01-311-0/+3
| | | | | * lisp/vc/vc.el (vc-mark-resolved): Recompute the mode lines of the affected files.
* Allow the caller to specify own face on suffix in annotation-functionJuri Linkov2021-01-301-11/+8
| | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (completion--insert-strings): Don't add 'completions-annotations' face when the caller specified own face in annotation-function. Remove no-op code for 'unless prefix' branch. (completion-metadata, completion-extra-properties): Update docs of affixation-function. Suggested by Clemens <clemera@posteo.net> (bug#45780) * test/lisp/minibuffer-tests.el: Rename package name from completion-tests.el to minibuffer-tests.el. Add new test completion--insert-strings-faces. * doc/lispref/minibuf.texi (Completion Variables) (Programmed Completion): Update descriptions of annotation-function and affixation-function.
* ; Improve defcustom :type in last change.Basil L. Contovounesios2021-01-301-1/+1
|
* Reduce flicker in Isearch modeAugusto Stoffel2021-01-301-4/+19
| | | | | | | | | | | | | | | | | | | Lazy highlighting now happens immediately when the search string is at least as long as the value of the new custom variable `lazy-highlight-no-delay-length`. Also avoid updating the lazy count in the echo area too often. * isearch.el (lazy-highlight-no-delay-length): New defcustom. * isearch.el (lazy-lazy-count-format): Avoid a momentarily incorrect count when reversing search direction. * isearch.el (isearch-lazy-highlight-new-loop): Avoid a call to `isearch-message` that is quickly succeed by a second echo area update, thus causing flicker. * isearch.el (isearch-lazy-highlight-new-loop): Start lazy highlight immediately if appropriate. * etc/NEWS: Announce the change. * doc/emacs/search.texi: Document `lazy-highlight-no-delay-length'. Copyright-paperwork-exempt: yes
* Also highlight 'conflict' with the warning faceDmitry Gutov2021-01-301-2/+2
| | | | | | * lisp/vc/vc-git.el (vc-git-dir-printer): Also highlight 'conflict' with the warning face, like vc-default-dir-printer does already.
* auth-source-search doc string fixLars Ingebrigtsen2021-01-301-1/+1
| | | | * lisp/auth-source.el (auth-source-search): Fix example (bug#36286).
* * lisp/tab-line.el (tab-line-new-tab): Use tty menus when supported.Jared Finder2021-01-301-1/+3
|
* New Rmail option 'rmail-show-message-set-modified'Eli Zaretskii2021-01-301-0/+8
| | | | | | | | | * lisp/mail/rmail.el (rmail-show-message-set-modified): New option. (rmail-show-message-1): If 'rmail-show-message-set-modified' is non-nil, don't reset the buffer's modified state. (Bug#45941) * etc/NEWS: Announce the new option.
* Fix vc-hg-rename-file on file names like ~/foo/barLars Ingebrigtsen2021-01-301-1/+2
| | | | | | * lisp/vc/vc-hg.el (vc-hg-rename-file): Use absolute file names, because hg doesn't like getting file names like "~/foo/bar" (bug#36932).
* Fix interaction between two dired cleanup variablesJeff Spencer2021-01-301-9/+12
| | | | | | | | * lisp/dired.el (dired-clean-up-after-deletion): Kill the buffers if you have `dired-clean-up-buffers-too' set and `dired-clean-confirm-killing-deleted-buffers' nil (bug#38037). Copyright-paperwork-exempt: yes
* Add source to sgml-empty-tagsMauro Aranda2021-01-301-2/+2
| | | | | * lisp/textmodes/sgml-mode.el (html-mode): Add "source" as an empty tag to fix indentation when this element is present (bug#46181).
* rmail-summary-mark-deleted optional argument fixLars Ingebrigtsen2021-01-301-2/+3
| | | | | * lisp/mail/rmailsum.el (rmail-summary-mark-deleted): Argument N is optional, so don't assume that it's a number (bug#39076).
* vc-dir-mode-map: Remove the mouse-2 bindingDmitry Gutov2021-01-302-4/+10
| | | | | | | | | | * lisp/vc/vc-dir.el (vc-dir-mode-map): Remove the mouse-2 binding (bug#13692). (vc-dir-mode): Update the docstring accordingly. (vc-dir-status-mouse-map): New variable. (vc-default-dir-printer): Use it on the state buttons. * lisp/vc/vc-git.el (vc-git-dir-printer): Same.
* Use lexical-binding in mpuz.elStefan Kangas2021-01-301-19/+11
| | | | | | * lisp/play/mpuz.el: Use lexical-binding. Remove redundant :group args. (mpuz-switch-to-window): Minor cleanup.
* Use lexical-binding in handwrite.elStefan Kangas2021-01-301-54/+32
| | | | | | | | | * lisp/play/handwrite.el: Use lexical-binding. Remove redundant :group args. Minor cleanups. (handwrite): Minor cleanups. (handwrite-set-pagenumber-off, handwrite-set-pagenumber-on): Make comments into docstrings.
* ; Silence byte-compilerStefan Kangas2021-01-292-5/+5
| | | | | | | * lisp/net/sasl-ntlm.el (sasl-ntlm-request): * lisp/net/sasl.el (sasl-plain-response, sasl-login-response-1) (sasl-login-response-2, sasl-anonymous-response): Fix warnings introduced by my previous commit.
* Use lexical-binding in sasl.el and add testsStefan Kangas2021-01-294-4/+4
| | | | | | | | | | * lisp/net/sasl.el: * lisp/net/sasl-digest.el: * lisp/net/sasl-cram.el: * lisp/net/sasl-ntlm.el: Use lexical-binding. * test/lisp/net/sasl-tests.el: * test/lisp/net/sasl-cram-tests.el: New files.
* (xref-revert-buffer): Also 'erase-buffer' when handling a user-errorDmitry Gutov2021-01-291-0/+1
| | | | | * lisp/progmodes/xref.el (xref-revert-buffer): Also 'erase-buffer' when handling a user-error (bug#46042).
* Use save-mark-and-excursion in query-replace-read-args (bug#45617)Juri Linkov2021-01-291-8/+9
|
* Fix Bug#45518 in compile.elMichael Albinus2021-01-291-1/+6
| | | | | * lisp/progmodes/compile.el (compilation-get-file-structure): Avoid call of `file-truename' for remote files. (Bug#45518)
* Fix previous commit regarding revert-buffer-functionSean Whitton2021-01-291-6/+6
| | | | | | | * simple.el (shell-command, shell-command-on-region): Set revert-buffer-function buffer-locally, not globally. Also, avoid an unnecessary call to (current-buffer) by taking advantage of the closure (bug#46151).
* Add a command for redisplay during keyboard macrosMarco Wahl2021-01-291-0/+11
| | | | | | | | * doc/emacs/kmacro.texi (Basic Keyboard Macro): Document it (bug#39252). * lisp/kmacro.el (kdb-macro-redisplay): New function. (kmacro-keymap): Bind it.
* Improve fontifying of #| ... |# in `lisp-mode'Lars Ingebrigtsen2021-01-291-0/+1
| | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-mode): Fontify the end delimiter in #| ... |# correctly (bug#39820).
* flymake-diagnostic-beg/end doc string and error reporting improvementLars Ingebrigtsen2021-01-291-4/+12
| | | | | | * lisp/progmodes/flymake.el (flymake-diagnostic-beg): (flymake-diagnostic-end): Improve doc string and error reporting (bug#39971).
* Fix position in empty buffers in checkdoc-file-comments-engineLars Ingebrigtsen2021-01-291-1/+3
| | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): Don't give invalid positions on empty buffers (bug#39987).
* Set revert-buffer-function in shell command output buffersSean Whitton2021-01-291-0/+6
| | | | | * simple.el (shell-command, shell-command-on-region): Set revert-buffer-function in shell command output buffers (bug#46151).
* Mention using buffer-list-update-hook in recentf-modeLars Ingebrigtsen2021-01-291-1/+8
| | | | | * lisp/recentf.el (recentf-mode): Mention using `buffer-list-update-hook' (bug#46153).
* Remove Emacs 21 compat code from sasl.elStefan Kangas2021-01-291-8/+1
| | | | | * lisp/net/sasl.el (sasl-read-passphrase): Remove compat code; 'read-passwd' is preloaded since Emacs 22.
* * lisp/flow-ctrl.el: Use lexical-binding.Stefan Kangas2021-01-291-7/+6
| | | | * lisp/flow-ctrl.el (enable-flow-control): Minor cleanup.
* Use lexical-binding in find-cmd.el and add testsStefan Kangas2021-01-291-2/+2
| | | | | * lisp/find-cmd.el: Use lexical-binding. * test/lisp/find-cmd-tests.el: New file.
* Slight gravatar.el code clean upLars Ingebrigtsen2021-01-291-7/+6
| | | | | * lisp/image/gravatar.el (gravatar--service-libravatar): Clean the code up slightly.
* Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs into trunkStefan Monnier2021-01-283-30/+18
|\
| * Use lexical-binding in nroff-mode.elStefan Kangas2021-01-281-6/+3
| | | | | | | | | | * lisp/textmodes/nroff-mode.el: Use lexical-binding. Remove redundant :group args.
| * * lisp/progmodes/bat-mode.el: Use lexical-binding.Stefan Kangas2021-01-281-1/+1
| |
| * ; Fix my previous commitStefan Kangas2021-01-281-1/+1
| | | | | | | | | | | | * lisp/generic-x.el (generic-mode-ini-file-find-file-hook): Fix my previous commit; for some reason 'function' produces a warning here while 'quote' does not.