summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * Use lexical-binding in generic-x.elStefan Kangas2021-01-281-22/+12
| | | | | | | | | | * lisp/generic-x.el: Use lexical-binding. Remove redundant :groups. (generic-rul-mode-setup-function): Prefer setq-local.
| * Define compat alias obsoleteStefan Kangas2021-01-281-1/+2
| | | | | | | | | | * lisp/generic-x.el (generic-mode-ini-file-find-file-hook): Define compat alias introduced after rename in 22.1 obsolete.
* | Use lexical-binding in all of `lisp/emacs-lisp`Stefan Monnier2021-01-2811-130/+142
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bindat.el: Use lexical-binding. (bindat--unpack-group, bindat--length-group, bindat--pack-group): Declare `last` and `tag` as dyn-scoped. (bindat-unpack, bindat-pack): Bind `bindat-raw` and `bindat-idx` via `let` rather than via the formal arglist. * lisp/emacs-lisp/package-x.el: * lisp/emacs-lisp/generic.el: * lisp/emacs-lisp/eieio-opt.el: * lisp/emacs-lisp/derived.el: * lisp/emacs-lisp/crm.el: Use lexical-binding. * lisp/emacs-lisp/helper.el: Use lexical-binding. (Helper-help-map): Move initialization into declaration. * lisp/emacs-lisp/regi.el: Use lexical-binding. (regi-interpret): Remove unused var `tstart`. Declare `curframe`, `curentry` and `curline` as dyn-scoped. * lisp/emacs-lisp/shadow.el: Use lexical-binding. (load-path-shadows-find): Remove unused var `file`. Tighten a regexp, use `push`. * lisp/emacs-lisp/tcover-ses.el: Use lexical-binding. Require `ses`. Remove correspondingly redundant declarations. (ses--curcell-overlay): Declare. (ses-exercise): Use `dlet` and use a properly-prefixed var name. Fix name of `curcell-overlay` variable. * lisp/emacs-lisp/unsafep.el: Use lexical-binding. (unsafep): Bind `unsafep-vars` via `let` rather than via the formal arglist.
* Use isearch-tmm-menubar when tmm-menubar is called in isearch-mode (bug#43966)Juri Linkov2021-01-282-8/+9
| | | | | | | * lisp/isearch.el (isearch-menu-bar-commands): Add tmm-menubar to defaults. (isearch-mode-map): Remove remapping of tmm-menubar to isearch-tmm-menubar. * lisp/tmm.el (tmm-menubar): Call isearch-tmm-menubar in isearch-mode.
* * lisp/wdired.el: Minor doc fixes.Stefan Kangas2021-01-281-10/+10
|
* Avoid recommending GoogleStefan Kangas2021-01-284-10/+7
| | | | | | | | | | | * doc/misc/org.texi (Link Abbreviations): * lisp/net/webjump.el (webjump-sample-sites): * lisp/org/ol.el (org-link-shell-confirm-function) (org-link-elisp-confirm-function): * lisp/org/org.el (org-highlight-links): * lisp/wdired.el: Avoid recommending Google. squash! Avoid recommending Google
* * lisp/leim/quail/viqr.el: Use lexical-binding.Stefan Kangas2021-01-281-1/+1
|
* * lisp/leim/quail/compose.el: Use lexical-binding.Stefan Kangas2021-01-281-1/+1
|
* * lisp/ezimage.el: Use lexical-binding.Stefan Kangas2021-01-281-1/+1
|
* Add cross-reference to with-eval-after-loadStefan Kangas2021-01-281-1/+3
| | | | | * lisp/subr.el (eval-after-load): Doc fix; add cross-reference to 'with-eval-after-load'.
* * lisp/generic-x.el (hosts-generic-mode): Support IPv6 addresses.Stefan Kangas2021-01-281-1/+2
|
* Add missing file systems to etc-fstab-generic-modeStefan Kangas2021-01-281-3/+66
| | | | | * lisp/generic-x.el (etc-fstab-generic-mode): Add entries for missing file systems.
* ; * lisp/dired-aux.el (dired-compress-files-alist): Minor doc fix.Stefan Kangas2021-01-281-1/+1
|
* * lisp/net/ange-ftp.el (ange-ftp-ls): Handle several "--dired" switches.Michael Albinus2021-01-281-1/+1
|
* Simplify auto-revert buffer list by watch descriptor (Bug#44639)Michael Albinus2021-01-281-58/+47
| | | | | | | | | * lisp/autorevert.el (auto-revert--buffer-by-watch-descriptor): Rename from `auto-revert--buffers-by-watch-descriptor'. Make it an assoc list. (auto-revert-notify-rm-watch, auto-revert-notify-add-watch) (auto-revert-notify-handler): Adapt accordingly. Based on a patch provided by Spencer Baugh <sbaugh@catern.com>. (Bug#44639)
* Use lexical-binding in lisp/{term,nxml,language}Stefan Monnier2021-01-286-5/+10
| | | | | | | | | | | | | * test/lisp/electric-tests.el: * lisp/term/w32console.el: * lisp/nxml/rng-util.el: * leim/leim-ext.el: Use lexical-binding. * lisp/international/titdic-cnv.el (tit-process-header) (miscdic-convert): * lisp/international/mule-cmds.el (leim-list-header): * lisp/international/ja-dic-cnv.el (skkdic-convert): Use lexical-binding in the generated file.
* Protect against bad results from libravatarLars Ingebrigtsen2021-01-281-5/+9
| | | | | | * lisp/image/gravatar.el (gravatar--service-libravatar): Don't have (gravatar-retrieve "foobar@zjp.codes" 'ignore) (which returns a CNAME) bug out.
* Fix numerical `comment-padding' valueLars Ingebrigtsen2021-01-281-6/+11
| | | | | * lisp/newcomment.el (comment-padright): Allow using a number for `comment-padding', like the doc string says (bug#40056).
* Make the default `whitespace-enable-predicate' use `derived-mode-p'Lars Ingebrigtsen2021-01-281-2/+2
| | | | | * lisp/whitespace.el (whitespace-enable-predicate): Use `derived-mode-p' to check modes instead of `eq' (bug#40481).
* Fix fill-paragraph in asm-modeMattias M2021-01-281-2/+1
| | | | | | | | | | | * lisp/progmodes/asm-mode.el: The value of fill-prefix ought to be nil not "\t" so that fill-context-prefix can do its thing. In fact, fill-prefix does not have to be set at all becuase asm-mode derives from prog-mode and fill-prefix is set in simple.el. * test/lisp/progmodes/asm-mode-tests.el: Add relevant test (bug#41064). Copyright-paperwork-exempt: yes
* Allow commenting out white space lines in latex-modeLars Ingebrigtsen2021-01-282-10/+27
| | | | | | | | * lisp/newcomment.el (comment-region-default-1): Allow commenting out whitespace-only regions (bug#41793). * lisp/textmodes/tex-mode.el (latex--comment-region): Use it. (latex-mode): Set a comment style shim.
* Fix Gnus icalendar button navigationLars Ingebrigtsen2021-01-281-0/+1
| | | | | * lisp/gnus/gnus-icalendar.el (gnus-icalendar-insert-button): Mark buttons correctly for TAB navigation (bug#46135).
* perl-mode.el: Eliminate keywords which are not in Perl.Harald Jörg2021-01-281-4/+3
| | | | | | | * lisp/progmodes/perl-mode.el (perl-imenu-generic-expression): Remove keywords which are not part of Perl. (perl-font-lock-keywords-2): Remove keywords which are not part of Perl (bug#46024). (These keywords are part of Raku; aka. Perl 6.)
* Allow project/xref packages to be used in Emacs 26.1João Távora2021-01-282-3/+3
| | | | | | | * lisp/progmodes/project.el: Change Package-Requires to Emacs 26.1 (bug#44671). * lisp/progmodes/xref.el: Ditto.
* * lisp/emacs-lisp/macroexp.el (macroexp-if): Fix typoStefan Monnier2021-01-271-1/+1
|
* * lisp/emacs-lisp/pcase.el (pcase--split-pred): Handle `memq` pred.Stefan Monnier2021-01-271-17/+27
| | | | | | | | | | | | | | | | | | | | Improve handling of the `member` tests generated from (or 'a 'b 'c). This will expand (pcase EXP ((and (or 1 2 3) (guard (FOO))) EXP1) (1 EXP2) (6 EXP3)) to (cond ((memql '(3 2 1) EXP) (cond ((FOO) EXP1) ((eql EXP 1) EXP2))) ((eql EXP 6) EXP3)) rather than to (cond ((memql '(3 2 1) EXP) (cond ((FOO) EXP1) ((eql EXP 1) EXP2) ((eql EXP 6) EXP3))) ((eql EXP 1) EXP2) ((eql EXP 6) EXP3))