summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Extend directory-append to take an arbitrary number of componentsLars Ingebrigtsen2021-07-244-44/+94
| | | | | | | | * doc/lispref/files.texi (Directory Names): Document it. * lisp/emacs-lisp/shortdoc.el (file-name): Add new example. * src/fileio.c (Fdirectory_append): Change the function to take an arbitrary number of components.
* ; Fix directory-append arglist in files.texi.Basil L. Contovounesios2021-07-241-1/+1
|
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2021-07-241-1/+1
|\
| * Adjust tab-bar to the new mode-line-misc-info valueLars Ingebrigtsen2021-07-241-1/+1
| | | | | | | | | | * lisp/tab-bar.el (tab-bar--define-keys): Adjust to the new default value for `mode-line-misc-info'.
* | Add Tramp support for yubikey (bug#49714)Michael Albinus2021-07-242-0/+25
|/ | | | | | | | * lisp/net/tramp.el (tramp-yubikey-regexp): New defcustom. (tramp-action-show-and-confirm-message): New defun. * lisp/net/tramp-sh.el (tramp-actions-before-shell) (tramp-actions-copy-out-of-band): Add `tramp-yubikey-regexp' action.
* Remove duplicated NEWS entriesLars Ingebrigtsen2021-07-241-19/+0
|
* Make 's' in *Help* work for Lisp-defined variables againLars Ingebrigtsen2021-07-241-1/+3
| | | | | * lisp/help-fns.el (describe-variable): Make the `s' command work for Lisp-defined variables again (bug#39121).
* Fix problem when moving files called ~ to the trashLars Ingebrigtsen2021-07-241-8/+8
| | | | | | * lisp/files.el (move-file-to-trash): Construct the trash file name safely (bug#49711). This makes (move-file-to-trash "/tmp/~") etc work.
* Add new function `directory-append'Lars Ingebrigtsen2021-07-245-40/+77
| | | | | | | | | * doc/lispref/files.texi (Directory Names): Document it, and remove the concat-based file concatenation description. * lisp/emacs-lisp/shortdoc.el (file-name): Add. And add more expand-file-name examples. * src/fileio.c (Fdirectory_append): New function.
* Make the test for auto-mode-alist from .dir-local.el stricterLars Ingebrigtsen2021-07-246-6/+25
| | | | | * lisp/files.el (set-auto-mode--dir-local-valid-p): New function. (set-auto-mode--apply-alist): Use it as a stricter test.
* ; * etc/NEWS: Fix wording of the 'fill-column' entry.Eli Zaretskii2021-07-231-3/+2
|
* ; * lisp/calendar/cal-french.el (calendar-french-trim-feast): Doc fix.Eli Zaretskii2021-07-231-2/+2
|
* ; * lisp/files.el (set-auto-mode--apply-alist): Doc fix.Eli Zaretskii2021-07-231-3/+4
|
* Improve recently added documentationEli Zaretskii2021-07-232-4/+5
| | | | | | * etc/NEWS: Improve wording of a recently added entry. * doc/misc/smtpmail.texi (Queued delivery): Fix typo.
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2021-07-235-31/+70
|\
| * Fix typo in set-auto-mode--apply-alistLars Ingebrigtsen2021-07-231-1/+1
| | | | | | | | | | * lisp/files.el (set-auto-mode--apply-alist): Fix typo in ad5faa424a5 (bug#49712).
| * Allow storing SMTP variables when queueing mailLars Ingebrigtsen2021-07-234-30/+69
| | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/smtpmail.texi (Queued delivery): Document it (bug#49709). * lisp/gnus/message.el (message-multi-smtp-send-mail): Store variables. * lisp/mail/smtpmail.el (smtpmail-queue-mail): Mention it. (smtpmail-store-queue-variables): New variable. (smtpmail-send-it): Store SMTP variables if requested. (smtpmail-send-queued-mail): Restore variables.
* | Fix bug#49699Alex Bochannek2021-07-231-1/+3
|/ | | | | * lisp/net/tramp-sh.el (tramp-scp-strict-file-name-checking): Adapt check for macOS. (Bug#49699)
* Fix do-auto-fill thinko introduced earlier todayLars Ingebrigtsen2021-07-231-1/+1
| | | | | * lisp/simple.el (do-auto-fill): `current-fill-column' returns nil to signal that we should fill.
* Add auto-mode-alist functionality to .dir-locals.elTom Tromey2021-07-237-68/+136
| | | | | | | | | | | | | | | | | * doc/emacs/custom.texi (Directory Variables): Document auto-mode-alist in .dir-locals.el (Bug#18721) * doc/emacs/modes.texi (Choosing Modes): Update. * lisp/files.el (set-auto-mode--apply-alist): New function, from set-auto-mode. (set-auto-mode): Check directory locals for auto-mode-alist. (dir-locals-collect-variables): Add "predicate" parameter. (hack-dir-local--get-variables): New function, from hack-dir-local-variables. (hack-dir-local-variables): Call hack-dir-local--get-variables. * test/lisp/files-resources/.dir-locals.el: New file. * test/lisp/files-resources/whatever.quux: New file. * test/lisp/files-tests.el (files-tests-data-dir): New variable. (files-test-dir-locals-auto-mode-alist): New test.
* Add more support for the French Revolutionary CalendarJean Forget2021-07-232-21/+284
| | | | | | | | | | | * lisp/calendar/cal-french.el (calendar-french-feasts-array): New variable (bug#19174). (calendar-french-trim-feast): New function. (calendar-french-date-string, calendar-french-goto-date): (calendar-french-goto-date): Use them. http://datetime.mongueurs.net/Histoire/s-c/01-g.en.html https://metacpan.org/pod/DateTime::Calendar::FrenchRevolutionary#Internet
* Off-by-one error in compilation rule end-column function (bug#49624)Mattias Engdegård2021-07-232-5/+35
| | | | | | | | * lisp/progmodes/compile.el (compilation-error-properties): When the end-column parameter of a compilation message rule (in compilation-error-regexp-alist[-alist]) is a function, treat its return value as if it were matched by the regexp, which is how it is documented to work, and how all other parameters work.
* Warn about arity errors in inlining calls (bug#12299)Mattias Engdegård2021-07-234-11/+39
| | | | | | | | | | | | | | | Wrong number of arguments in inlining function calls (to `defsubst` or explicitly using `inline`) did not result in warnings, or in very cryptic ones. * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Add calls to `byte-compile--check-arity-bytecode`. * lisp/emacs-lisp/bytecomp.el (byte-compile-emit-callargs-warn) (byte-compile--check-arity-bytecode): New functions. (byte-compile-callargs-warn): Use factored-out function. * test/lisp/emacs-lisp/bytecomp-resources/warn-callargs-defsubst.el: * test/lisp/emacs-lisp/bytecomp-tests.el ("warn-callargs-defsubst.el"): New test case.
* Remove text props from callback args in erc-buttonF. Jason Park2021-07-231-1/+1
| | | | | | | | | * lisp/erc/erc-button.el (erc-button-add-buttons-1): Remove text properties from strings stored in `erc-data' and passed to `erc-callback' (both text properties themselves) (bug#49704). This reduces memory usage in erc buffers (which are long-lived and can become very large).
* declare-function doc string clarification about FILELars Ingebrigtsen2021-07-231-1/+2
| | | | | * lisp/subr.el (declare-function): Mention that FILE can be nil (bug#21466).
* Make nil value of fill-column obsoleteStefan Kangas2021-07-233-2/+21
| | | | | | | | | * lisp/textmodes/fill.el (current-fill-column): Make nil value of 'fill-column' obsolete. (Bug#22847) (current-fill-column--has-warned): New variable to track warning. * lisp/simple.el (do-auto-fill): Remove handling of nil return value from 'current-fill-column'. * etc/NEWS: Announce obsoletion of this usage.
* Adjust time-tests.el to bug#30056Lars Ingebrigtsen2021-07-231-0/+1
| | | | | * test/lisp/time-tests.el (time-tests-display-time-update): Adjust test (bug#30056).
* Move mode-line NEWS items to a common sectionLars Ingebrigtsen2021-07-231-0/+21
|
* 'global-mode-string' elements should have a space at the endLars Ingebrigtsen2021-07-235-8/+17
| | | | | | | | | * lisp/time.el (display-time-string-forms): * lisp/battery.el (battery-mode-line-format): Add a space to the end (bug#30056). * lisp/bindings.el (mode-line-misc-info): Remove space from end. This will make the default format have one space before the line-of-dashes (instead of two) on terminals.
* Fix an rcirc merge problemLars Ingebrigtsen2021-07-231-16/+0
| | | | | * lisp/net/rcirc.el (rcirc-get-server-method) (rcirc-get-server-password): Remove double definition after merge.
* MS-Windows followup to recent emacsclient changesEli Zaretskii2021-07-231-0/+1
| | | | | * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_file-has-acl): Set to true to avoid compiling file-has-acl.c on MS-Windows.
* Redo emacsclient socket symlink-attack checkingPaul Eggert2021-07-235-80/+672
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/merge-gnulib (GNULIB_MODULES): Add file-has-acl. * lib/file-has-acl.c: New file, copied from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib-src/emacsclient.c: Include acl.h, for file_has_acl. (O_PATH): Default to O_SEARCH, which is good enough here. (union local_sockaddr): New type. (socket_status): Remove, replacing with ... (connect_socket): New function. All callers changed. This function checks for ownership and permissions issues with the parent directory of the socket file, instead of checking the owner of the socket (which does not help security). (socknamesize): Move to file scope. (local_sockname): New arg S. No need to pass socknamesize. UID arg is now uid_t. All callers changed. Get file descriptor of parent directory of socket, to foil some symlink attacks. Do not follow symlinks to that directory. (set_local_socket): Create the socket here instead of on each attempt to connect it. Fall back from XDG_RUNTIME_DIR to /tmp only if the former fails due to ENOENT. Adjust permission-failure diagnostic to match changed behavior. This addresses Bug#33847, which complained about emacsclient in a safer XDG environment not connecting to an Emacs server running in a less-safe enviroment outside XDG. The patch fixes a longstanding issue with emacsclient permission checking. It’s ineffective to look at the permission of the socket file itself; on some platforms, these permissions are ignored anyway. What matters are the permissions on the parent directory of the socket file, as these are what make symlink attacks possible. Change the permissions check accordingly, and also refuse to follow symlinks to that parent directory. These changes make it OK for emacsclient to fall back from XDG_RUNTIME_DIR to the traditionally less-safe /tmp/emacsNNNN directories, since /tmp is universally sticky nowadays.
* Merge branch 'feature/rcirc-update'Philip Kaludercic2021-07-231-453/+997
|\
| * Add query command removed in 4ff1f66b12Philip Kaludercic2021-07-061-0/+11
| | | | | | | | * rcirc.el (query): Readd accidentally removed command
| * Fix issues with argument parsing in rcirc-define-commandPhilip Kaludercic2021-07-061-2/+2
| | | | | | | | * rcirc.el (rcirc-define-command): Fix issues
| * * rcirc.el (rcirc-define-command): Mention name of malformed commandPhilip Kaludercic2021-07-021-1/+1
| | | | | | | | Author:
| * Fix SASL joining channels after authAlex McGrath2021-06-291-1/+2
| |
| * Send CAP END after authentication has been successfulAlex McGrath2021-06-291-5/+10
| |
| * Fix SASL on rcirc-updateAlex McGrath2021-06-281-2/+13
| |
| * Add SASL authentication to rcircAlex McGrath2021-06-242-2/+46
| | | | | | | | | | | | | | | | | | * lisp/net/rcirc.el (rcirc-handler-AUTHENTICATE): New function (bug#48601). (rcirc-authenticate): (rcirc-connect): Support sasl. (rcirc-get-server-password, rcirc-get-server-method): New functions. (rcirc-authinfo): Document it.
| * Query encryption using yes-or-no-pPhilip Kaludercic2021-06-211-6/+3
| | | | | | | | | | * rcirc.el (rcirc-prompt-for-encryption): Replace completing-read prompt with yes-or-no-p
| * Use add-to-list instead of manually modifying minor-mode-alistPhilip Kaludercic2021-06-191-6/+2
| |
| * Force mode line update after modifying activity stringPhilip Kaludercic2021-06-161-1/+2
| | | | | | | | * rcirc.el (rcirc-update-activity-string): Call force-mode-line-update
| * Fix edge case with single argument for rcirc-define-commandPhilip Kaludercic2021-06-151-5/+5
| | | | | | | | * rcirc.el (rcirc-define-command): Update regular expression generator
| * Fix argument parser for rcirc-define-command with string inputPhilip Kaludercic2021-06-151-2/+2
| | | | | | | | | | * rcirc.el (rcirc-define-command): Require at least one space between arguments
| * Check if server buffer is livePhilip Kaludercic2021-06-151-6/+6
| | | | | | | | | | | | * rcirc.el (with-rcirc-server-buffer): Use live-buffer-p (rcirc-buffer-nick): Use with-rcirc-server-buffer (rcirc-switch-to-server-buffer): Use with-rcirc-server-buffer
| * Improve message markupPhilip Kaludercic2021-06-151-13/+69
| | | | | | | | | | | | | | | | | | | | * rcirc.el (rcirc-markup-text-functions): Add rcirc-color-attributes, rcirc-remove-markup-codes (rcirc-markup-attributes): Recognize strike-through and monospace, don't remove control codes (rcirc-color-attributes): Recognize mIRC color codes (rcirc-remove-markup-codes): Add function (rcirc-monospace-text): Add face
| * Fix construction of interactive specification in rcirc-define-commandPhilip Kaludercic2021-06-141-1/+1
| | | | | | | | * rcirc.el (rcirc-define-command): Ensure that only one argument is passed.
| * Rename set-rcirc-{encode,decode}-coding-systemPhilip Kaludercic2021-06-141-2/+12
| | | | | | | | | | | | | | * rcirc.el (set-rcirc-decode-coding-system): Deprecate command (rcirc-set-decode-coding-system): New command (set-rcirc-encode-coding-system): Deprecate command (rcirc-set-encode-coding-system): New command
| * Preserve order of completion during cyclingPhilip Kaludercic2021-06-141-1/+5
| | | | | | | | * rcirc.el (rcirc-completion-at-point): Specify cycle-sort-function