summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2021-05-111-13/+22
|\
| * `text-property-search-forward' doc string improvementLars Ingebrigtsen2021-05-111-13/+22
| | | | | | | | | | | | * lisp/emacs-lisp/text-property-search.el (text-property-search-forward): Correct and clarify the doc string (bug#48317).
* | Fix Hexl handling of coding-systems with BOMEli Zaretskii2021-05-112-44/+120
|/ | | | | | | | | | | | | | | | | | | * lisp/international/mule-cmds.el (encode-coding-char): If CODING-SYSTEM produces BOM, remove the BOM bytes from the produced byte sequence. (Bug#48324) * lisp/hexl.el (hexl-mode): Use bufferpos-to-filepos to convert point to offset into the original file. (hexl-mode-exit, hexl-maybe-dehexlify-buffer): Use filepos-to-bufferpos to restore point in the original buffer. (hexl-mode, hexl-insert-multibyte-char) (hexl-self-insert-command, hexl-insert-hex-char) (hexl-insert-decimal-char, hexl-insert-octal-char) (hexl-find-file): Enhance the doc strings, mainly explaining the complications of inserting multibyte characters. (hexl-insert-multibyte-char): Don't treat CH as unibyte if the coding-system isn't ASCII-compatible. Don't treat null bytes as multibyte.
* Tweak documentation relating to 'erc-tls'Amin Bandali2021-05-101-2/+2
| | | | | | | * doc/misc/erc.texi (Connecting): Add a reference to the auth manual. * etc/NEWS: Remove the verbose, detailed example of client certificate specification and refer to the ERC manual instead. * lisp/erc/erc.el (erc-tls): Fix leftover path example in docstring.
* Extend meaning of UNIQUIFY `auto-save-file-name-transforms'. (Bug#47493)Michael Albinus2021-05-101-8/+18
| | | | | | | | | | * doc/lispref/backups.texi (Auto-Saving): Explain UNIQUIFY being a secure hash in auto-save-file-name-transforms. * etc/NEWS: Mention change in `auto-save-file-name-transforms'. * lisp/files.el (auto-save-file-name-transforms): Adapt docstring. (make-auto-save-file-name): Care, if UNIQ is a secure hash symbol.
* Avoid saving session customizations in the custom-fileMauro Aranda2021-05-101-4/+35
| | | | | | | | | | | | * lisp/custom.el (custom-theme-recalc-variable): Only stash theme settings for void variables. (custom-declare-variable): After initializing a variable, unstash a theme setting, if present. (disable-theme): When disabling a theme, maybe unstash a theme setting. * test/lisp/custom-resources/custom--test-theme.el: Add two settings for testing the fix.
* Always heed the `lexical-binding' local variableLars Ingebrigtsen2021-05-101-149/+165
| | | | | | | | | | | | | * doc/lispref/variables.texi (File Local Variables): Document `permanently-enabled-local-variables'. * lisp/files.el (enable-local-variables): Mention the new variable. (set-auto-mode): Always call `hack-local-variables'. (hack-local-variables): Factor out the variable gathering into its own function, and respect the new variable (bug#47843). (hack-local-variables--find-variables): Factored out from `hack-local-variables'. (permanently-enabled-local-variables): New variable.
* Base the "extraclean" Make rule on "maintainer-clean"Glenn Morris2021-05-092-7/+4
| | | | | | | | | | | | | | | | * Makefile.in (FIND_DELETE): New, set by configure. (extraclean_dirs): Remove. (extraclean): Make it just a small variation on maintainer-clean. * admin/charsets/Makefile.in (extraclean): * admin/grammars/Makefile.in (extraclean): * admin/unidata/Makefile.in (extraclean): * leim/Makefile.in (extraclean): * lib-src/Makefile.in (extraclean): * lisp/Makefile.in (extraclean): * lwlib/Makefile.in (extraclean): * nt/Makefile.in (extraclean): * src/Makefile.in (extraclean): Remove target. * lib/Makefile.in (extraclean): Merge into maintainer-clean.
* * lisp/misearch.el (multi-isearch-switch-buffer): New function.Juri Linkov2021-05-092-9/+18
| | | | | | | * lisp/isearch.el (isearch-search-string): * lisp/misearch.el (multi-isearch-wrap, multi-isearch-pop-state): Use it. https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00309.html
* Cleanups for Tramp out-of-band methods on MS WindowsMichael Albinus2021-05-091-6/+2
| | | | | | | | | | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): tramp-use-ssh-controlmaster-options is nil on MS Windows. * lisp/net/tramp.el (tramp-unquote-shell-quote-argument): Revert previous change, it worked (not as expected but) properly. * test/lisp/net/tramp-tests.el (tramp-test17-dired-with-wildcards): Don't skip on MS Windows. (tramp--test-windows-nt-and-scp-p): Remove. (tramp--test-special-characters): Skip for out-of-band methods on MS Windows, sometimes.
* Make autoloads-force work in build directoryAndreas Schwab2021-05-091-1/+1
| | | | | * lisp/Makefile.in (autoloads-force): Remove $(lisp)/loaddefs.el, not loaddefs.el.
* Default to 1970 in decoded-time-set-defaultsBasil L. Contovounesios2021-05-091-1/+3
| | | | | | * lisp/calendar/time-date.el (decoded-time-set-defaults): Set an unspecified year field to 1970, as promised in the docstring, and to ensure it's representable on all systems (bug#48298).
* Reintroduce autoloads for edebug-all-defs/edebug-all-formsLars Ingebrigtsen2021-05-091-0/+2
| | | | | | | * lisp/emacs-lisp/edebug.el (edebug-all-defs, edebug-all-forms): Reintroduce ;;;###autoload of these user options that were removed in bae2cfe63c, because this leads to errors in a common (and recommended) use case (bug#47516).
* Fix indentation of lines starting with # in js-modeLars Ingebrigtsen2021-05-091-1/+0
| | | | | | * lisp/progmodes/js.el (js--proper-indentation): # is not like in C -- it doesn't have to appear on the beginning of the line (bug#47488).
* ; Fix recent re-builder doc changes.Basil L. Contovounesios2021-05-081-1/+1
|
* Don't delete socket on server exit if it was passed inLars Ingebrigtsen2021-05-081-1/+6
| | | | | * lisp/server.el (server-sentinel): Don't delete the socket if it was passed in to Emacs (bug#47511).
* Remove dead URL in isearchb.el commentsLars Ingebrigtsen2021-05-081-1/+0
| | | | * lisp/isearchb.el: Remove dead URL in comments (bug#47514).
* Prevent the selected window being a dead mini-window when switching framesAlan Mackenzie2021-05-081-8/+10
| | | | | | | | | | | | | | | This fixes bug #48249 and also a situation where, with recursive minibuffers enabled and minibuffer-follows-selected-frame t, switching frames when a minibuffer was open would leave the mini-window selected on the old frame. * lisp/window.el (record-window-buffer): Add extra parameter DO-MINIBUF, and amend the code such that minibuffers only get processed when that parameter is non-nil. * src/minibuf.c (zip_minibuffer_stacks, read_minibuf): Call Qrecord_window_buffer with the new argument set to Qt. (move_minibuffers_onto_frame): Set the selected window on the old frame when this would otherwise remain the mini-window.
* Mention that Emacs is usually case-insensitive in a couple of placesdalanicolai2021-05-081-1/+6
| | | | | | | | | | * doc/lispref/searching.texi (Regular Expressions): Mention `case-fold-search'. * lisp/emacs-lisp/re-builder.el (re-builder): Mention case sensitivity toggles (bug#47534). Copyright-paperwork-exempt: yes
* Revert "Fix moving directories with the same name to trash"Lars Ingebrigtsen2021-05-081-1/+1
| | | | | | This reverts commit f618cc5bc83d3822759c5bb85d15320651ca2431. This patch doesn't cover some corner cases, I think.
* Fix moving directories with the same name to trashCodruț Constantin Gușoi2021-05-081-1/+1
| | | | | | | * lisp/files.el (move-file-to-trash): Allow moving several directories with the same name to Trash (bug#48280). Copyright-paperwork-exempt: yes
* * lisp/gnus/nnoo.el (defvoo, deffoo): Add `doc-string` propertyStefan Monnier2021-05-071-0/+2
|
* Ensure `<menu-bar> <edit> <clear>' handles rectangular regionsJim Porter2021-05-072-1/+3
| | | | | | * lisp/delsel.el (delete-active-region): Autoload it and make it interactive. * lisp/menu-bar.el (menu-bar-edit-menu): Bind "Clear" to `delete-active-region'.
* Tramp: Fix file name quoting on MS WindowsMichael Albinus2021-05-072-3/+7
| | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name): Use `tramp-unquote-shell-quote-argument'. * lisp/net/tramp.el (tramp-unquote-shell-quote-argument): Adapt for MS Windows. * test/lisp/net/tramp-tests.el (tramp--test-special-characters): Adapt for MS Windows.
* Fix a recent change in rmc.elEli Zaretskii2021-05-071-28/+29
| | | | | * lisp/emacs-lisp/rmc.el (read-multiple-choice): Doc fix. Improve the message when entering recursive-edit.
* Fix some annoyances wrt file-name-non-specialMichael Albinus2021-05-072-6/+10
| | | | | | | * lisp/files.el (file-name-non-special): Do not expand `file-truename'. * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Use local `default-directory' for `start-process'.
* `mail-envelope-from' doc clarificationLars Ingebrigtsen2021-05-071-1/+4
| | | | | * lisp/mail/sendmail.el (mail-envelope-from): Note that the buffer should be narrowed before calling (bug#47616).
* Tune Tramp tracesMichael Albinus2021-05-072-4/+50
| | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Traces and Profiles): Describe call traces. * lisp/net/tramp-compat.el: Add `tramp-suppress-trace' property for all functions. * lisp/net/tramp.el (tramp-verbose): Adapt docstring. (tramp-file-name-method, tramp-file-name-user) (tramp-file-name-domain, tramp-file-name-host) (tramp-file-name-port, tramp-file-name-localname) (tramp-file-name-hop, tramp-file-name-user-domain) (tramp-file-name-host-port, tramp-file-name-port-or-default) (tramp-tramp-file-p, tramp-find-method, tramp-find-user) (tramp-find-host, tramp-dissect-file-name) (tramp-dissect-hop-name, tramp-debug-buffer-name) (tramp-debug-outline-level, tramp-get-debug-buffer) (tramp-get-debug-file-name, tramp-read-passwd) (tramp-clear-passwd): Add `tramp-suppress-trace' property. (tramp-debug-message): Activate call traces. * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Simplify.
* Shell-quote the directory when finding a project's filesJim Porter2021-05-061-2/+3
| | | | | * lisp/progmodes/project.el (project--files-in-directory): Shell-quote the directory (bug48247).
* project--buffer-list: Tighten the checkDmitry Gutov2021-05-061-3/+5
| | | | | | * lisp/progmodes/project.el (project--buffer-list): Tighten the check to speed up in the presence of multiple Tramp sessions, too. (https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00152.html)
* Rename comp-eln-load-path → native-comp-eln-load-pathAndrea Corallo2021-05-062-18/+18
| | | | | | | | | | | | * src/comp.c (Fcomp_el_to_eln_filename): Rename comp-eln-load-path → native-comp-eln-load-path. * src/lread.c (maybe_swap_for_eln): Likewise. * lisp/startup.el (native-comp-eln-load-path) (normal-top-level): Likewise. * lisp/emacs-lisp/comp.el (comp-spill-lap-function, comp-final) (comp-eln-load-path-eff, comp-trampoline-compile) (comp-clean-up-stale-eln, comp-run-async-workers) (comp-lookup-eln, batch-byte-native-compile-for-bootstrap): Likewise.
* Rename comp-warning-on-missing-sourceAndrea Corallo2021-05-061-1/+1
| | | | | | | | | * src/lread.c (maybe_swap_for_eln): Rename comp-warning-on-missing-source → native-comp-warning-on-missing-source. * src/comp.c (syms_of_comp): Likewise. * lisp/emacs-lisp/comp.el (native-comp-warning-on-missing-source): Likewise.
* Rename comp-native-driver-options → native-comp-driver-optionsAndrea Corallo2021-05-062-9/+9
| | | | | | | | | * src/comp.c (add_driver_options, syms_of_comp): Rename comp-native-driver-options → native-comp-driver-options. * lisp/emacs-lisp/comp.el (native-comp-driver-options) (comp-ctxt, comp-spill-lap-function, comp-final) (comp-run-async-workers): Likewise. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise.
* * Rename comp-async-query-on-exit → native-comp-async-query-on-exitAndrea Corallo2021-05-061-2/+2
| | | | | | * lisp/emacs-lisp/comp.el (native-comp-async-query-on-exit) (comp-run-async-workers): Rename comp-async-query-on-exit → native-comp-async-query-on-exit.
* * Rename comp-async-report-warnings-errorsAndrea Corallo2021-05-061-2/+2
| | | | | | | * lisp/emacs-lisp/comp.el (native-comp-async-report-warnings-errors) (comp-accept-and-process-async-output): Rename comp-async-report-warnings-errors → native-comp-async-report-warnings-errors.
* * Rename comp-async-env-modifier-form → native-comp-async-env-modifier-formAndrea Corallo2021-05-061-3/+3
| | | | | | * lisp/emacs-lisp/comp.el (native-comp-async-env-modifier-form) (comp-final, comp-run-async-workers): Rename comp-async-env-modifier-form → native-comp-async-env-modifier-form.
* * Rename comp-async-all-done-hook → native-comp-async-all-done-hookAndrea Corallo2021-05-061-3/+3
| | | | | | * lisp/emacs-lisp/comp.el (native-comp-async-all-done-hook) (comp-run-async-workers): Rename comp-async-all-done-hook → native-comp-async-all-done-hook.
* * Rename comp-async-cu-done-functions → native-comp-async-cu-done-functionsAndrea Corallo2021-05-061-2/+2
| | | | | | * lisp/emacs-lisp/comp.el (native-comp-async-cu-done-functions) (comp-run-async-workers): Rename comp-async-cu-done-functions → native-comp-async-cu-done-functions.
* * Rename comp-async-jobs-number → native-comp-async-jobs-numberAndrea Corallo2021-05-061-5/+5
| | | | | | | * lisp/emacs-lisp/comp.el (native-comp-async-jobs-number) (comp-effective-async-max-jobs, native--compile-async) (native-compile-async): Rename comp-async-jobs-number → native-comp-async-jobs-number.
* Rename comp-never-optimize-functions → native-comp-never-optimize-functionsAndrea Corallo2021-05-062-10/+10
| | | | | | | * lisp/emacs-lisp/nadvice.el (advice--add-function): Rename comp-never-optimize-functions → native-comp-never-optimize-functions. * lisp/emacs-lisp/comp.el (native-comp-never-optimize-functions) (comp-subr-trampoline-install, comp-call-optim-form-call): Likewise.
* Rename comp-bootstrap-deny-list → native-comp-bootstrap-deny-listAndrea Corallo2021-05-061-2/+2
| | | | | | * lisp/emacs-lisp/comp.el (native-comp-bootstrap-deny-list) (batch-native-compile): Rename comp-bootstrap-deny-list → native-comp-bootstrap-deny-list.
* * Rename comp-always-compile → native-comp-always-compileAndrea Corallo2021-05-061-2/+2
| | | | | | * lisp/emacs-lisp/comp.el (native-comp-always-compile) (comp-run-async-workers): comp-always-compile → native-comp-always-compile.
* * Rename comp-verbose -> native-comp-verboseAndrea Corallo2021-05-061-6/+6
| | | | | | * lisp/emacs-lisp/comp.el (native-comp-verbose, comp-log) (comp-log-func, comp-final, comp-run-async-workers): Rename comp-verbose -> native-comp-verbose.
* Rename comp-debug -> native-comp-debugAndrea Corallo2021-05-062-6/+6
| | | | | | | | | * src/comp.c (emit_ctxt_code, syms_of_comp): Rename comp-debug -> native-comp-debug. * lisp/emacs-lisp/comp.el (native-comp-debug, comp-ctxt) (comp-spill-lap-function, comp-run-async-workers): Likewise. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise. * test/src/comp-tests.el (comp-tests-bootstrap): Likewise.
* Rename comp-speed -> native-comp-speedAndrea Corallo2021-05-062-11/+11
| | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename comp-speed -> native-comp-speed. * lisp/emacs-lisp/comp.el (native-comp-speed, comp-ctxt, comp-func, comp-spill-lap-function, comp-trampoline-compile, comp-run-async-workers): Likewise. * src/comp.c (emit_ctxt_code, load_comp_unit, syms_of_comp): Likewise. * test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1) (comp-tests-check-ret-type-spec, comp-tests-pure): Likewise.
* * Rename comp-limple-mode -> native-comp-limple-modeAndrea Corallo2021-05-061-4/+4
| | | | | | * lisp/emacs-lisp/comp.el (comp-limple-lock-keywords): Doc update. (native-comp-limple-mode, comp-log-to-buffer): Rename comp-limple-mode -> native-comp-limple-mode.
* In Tramp, use scp "-T" argument if availableMichael Albinus2021-05-062-13/+46
| | | | | | | | | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-scp-strict-file-name-checking): New defvar. (tramp-scp-strict-file-name-checking): New defun. (tramp-do-copy-or-rename-file-out-of-band): Use it. (tramp-methods) <scp, scpx>: Use "%x". (tramp-make-copy-program-file-name): Use local quoting. (tramp-sh-handle-make-process): Don't call `tramp-maybe-open-connection', this happens implicitly by `tramp-send-command'. * lisp/net/tramp.el (tramp-methods): Adapt docstring. * test/lisp/net/tramp-tests.el (tramp-test40-special-characters) (tramp-test40-special-characters-with-stat) (tramp-test40-special-characters-with-perl) (tramp-test40-special-characters-with-ls): Don't skip for `tramp--test-windows-nt-and-scp-p'.
* Remove another variable alias obsolete since Emacs 23Stefan Kangas2021-05-061-3/+0
| | | | | | * lisp/menu-bar.el (menu-bar-files-menu): Delete variable alias for `menu-bar-file-menu'. * etc/NEWS: Announce its deletion.
* Tidy file-matching regexps and remove some ineffective backslashesMattias Engdegård2021-05-064-4/+4
| | | | | | | | | * lisp/emacs-lisp/package.el (package--delete-directory): * lisp/net/tramp-cmds.el (tramp-recompile-elpa): Escape dot; replace $ with \'. * lisp/help.el (help-for-help): * lisp/transient.el (transient-font-lock-keywords): Remove useless backslashes.
* Make (setf (map-elt ...)) return the value in the alist/plist casesLars Ingebrigtsen2021-05-061-13/+19
| | | | | | * lisp/emacs-lisp/map.el (map-elt): Return the value in the list case (which can signal a `map-not-inplace' error. (map-elt): Return the value in the list case, too (bug#47572).