summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Extend directory-append to take an arbitrary number of componentsLars Ingebrigtsen2021-07-241-0/+1
| | | | | | | | * 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.
* 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.
* 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-241-1/+8
| | | | | | | | | * 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-241-4/+11
| | | | | * lisp/files.el (set-auto-mode--dir-local-valid-p): New function. (set-auto-mode--apply-alist): Use it as a stricter test.
* ; * 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
|
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2021-07-233-31/+55
|\
| * 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-232-30/+54
| | | | | | | | | | | | | | | | | | | | | | | | * 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-231-65/+104
| | | | | | | | | | | | | | | | | * 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-231-21/+171
| | | | | | | | | | | * 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-231-5/+8
| | | | | | | | * 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-232-11/+31
| | | | | | | | | | | | | | | 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-232-2/+11
| | | | | | | | | * 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.
* 'global-mode-string' elements should have a space at the endLars Ingebrigtsen2021-07-233-4/+5
| | | | | | | | | * 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.
* 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-241-2/+40
| | | | | | | | | | | | | | | | | | * 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
| * Add mouse properties to activity stringPhilip Kaludercic2021-06-141-6/+10
| | | | | | | | * rcirc.el (rcirc-activity-string): Allow clicking on string
| * Update activity string after switching to next active bufferPhilip Kaludercic2021-06-131-1/+2
| | | | | | | | * rcirc.el (rcirc-next-active-buffer): Call rcirc-update-activity-string
| * Preserve incoming order of messages with same timestampPhilip Kaludercic2021-06-101-1/+1
| | | | | | | | * rcirc.el (rcirc-print): Emulate time-less-or-equal-p
| * Allow hiding certain message types after reconnectingPhilip Kaludercic2021-06-101-1/+18
| | | | | | | | | | | | | | * rcirc.el (rcirc-omit-after-reconnect): Add new user option (rcirc-reconncting): Add new variable (rcirc-print): Check if message should be omitted (reconnect): Mark buffers as freshly reconnected
| * Use defvar-local instead of setq-local where applicablePhilip Kaludercic2021-06-101-59/+48
| |
| * Allow for optional arguments using rcirc-define-commandPhilip Kaludercic2021-06-101-41/+38
| | | | | | | | * rcirc.el (rcirc-define-command): Handle &optional arguments
| * Fix prompt doubling when reconnectingPhilip Kaludercic2021-06-101-3/+7
| | | | | | | | | | * rcirc.el (rcirc-connect): Check if rcirc-mode is already active (rcirc-get-buffer-create): Check if rcirc-mode is already active
| * Allow filtering how nicks are presentedPhilip Kaludercic2021-06-101-6/+13
| | | | | | | | | | | | | | * rcirc.el (rcirc-nick-filter): Add new option (rcirc-completion-at-point): Use rcirc-nick-filter (rcirc-format-response-string): Use rcirc-nick-filter (rcirc-sort-nicknames-join): Use rcirc-nick-filter