summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Add eshell-shell-command and eshell-expand-to-eshell-shell-commandseries/unexpanded-input-v2Sean Whitton2021-12-24
| | | | | | | | | * lisp/eshell/esh-mode.el (eshell-shell-command, eshell-expand-to-eshell-shell-command): Define new functions. Register eshell-expand-to-eshell-shell-command as a customization option for eshell-expand-input-functions, and add it by default. * etc/NEWS: * doc/misc/eshell.texi: Document the new syntax.
* Add eshell-restore-unexpanded-inputSean Whitton2021-12-24
| | | | | | | | * lisp/eshell/esh-mode.el (eshell-send-input): Store the original input before running eshell-expand-input-functions. * lisp/eshell/esh-mode.el (eshell-restore-unexpanded-input): Define new function and register as a customization option for eshell-input-filter-functions.
* Update from gnulibPaul Eggert2021-12-21
|
* Delete completion window on quittingPhilip Kaludercic2021-12-21
| | | | | * lisp/simple.el (completion-list-mode-map): Rebind delete-completion-window over keyboard-quit.
* Allow for next-completion to wrap around the completion bufferPhilip Kaludercic2021-12-21
| | | | | | | | | | | * lisp/simple.el (completion-wrap-movement): Add new option. (previous-completion): Update docstring. (next-completion): Respect completion-wrap-movement. (switch-to-completions): Handle backwards completion by jumping to the end of the buffer. * lisp/minibuffer.el: (minibuffer-local-completion-map): Bind minibuffer-complete to backtab (completion--in-region-1): Handle backtab to scroll backwards
* Allow for the completion buffer to be automatically selectedPhilip Kaludercic2021-12-21
| | | | | * lisp/simple.el (completion-auto-select): Add new option. (completion-setup-function): Respect completion-auto-select.
* ; * src/xdisp.c (display_string): Fix a typo in a comment.Eli Zaretskii2021-12-21
|
* Declare functions to silence byte-compilerStefan Kangas2021-12-21
| | | | | | | | | | | | | | | | | | | * lisp/auth-source.el (gnutls-symmetric-decrypt, gnutls-ciphers): * lisp/net/dbus.el (libxml-parse-xml-region): * lisp/simple.el (thread-name): * lisp/thread.el (thread-name, thread-signal, thread--blocker) (current-thread, thread-live-p, all-threads): * test/lisp/emacs-lisp/multisession-tests.el (sqlite-close): * test/lisp/net/gnutls-tests.el (gnutls-symmetric-decrypt) (gnutls-symmetric-encrypt, gnutls-hash-mac, gnutls-hash-digest) (gnutls-ciphers, gnutls-digests, gnutls-macs): * test/lisp/net/network-stream-tests.el (gnutls-peer-status): * test/lisp/net/shr-tests.el (libxml-parse-html-region): * test/src/decompress-tests.el (zlib-decompress-region): * test/src/process-tests.el (thread-last-error, thread-join) (make-thread): * test/src/xml-tests.el (libxml-parse-xml-region): Declare functions to silence byte-compiler in --without-all builds.
* Fix some tests in --without-all buildsStefan Kangas2021-12-21
| | | | | | | * test/lisp/image-tests.el (image-type/from-filename): * test/src/image-tests.el (image-tests-init-image-library): * test/src/thread-tests.el (threads-test-bug33073): Fix tests in --without-all builds.
* Silence additional byte-compiler warning in testStefan Kangas2021-12-21
| | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el: Silence byte-compiler.
* Add `permission-denied' error to TrampMichael Albinus2021-12-21
| | | | | | | | * lisp/net/tramp-compat.el (tramp-permission-denied): New defconst. (tramp-compat-permission-denied): New defsubst. * lisp/net/tramp.el (tramp-handle-access-file): * lisp/net/tramp-archive.el (tramp-archive-handle-copy-file): Use it.
* Fix xg_event_is_scrollbar for grab-related events on XI2Po Lu2021-12-21
| | | | | * src/gtkutil.c (xg_event_is_for_scrollbar): Don't return true if event coordinates are outside the frame on XInput 2.
* ; Fix spelling; be consistent with "key binding" (Bug#52674)Stefan Kangas2021-12-21
|
* Don't produce multibyte strings by accident in sasl-scram-rfcMattias Engdegård2021-12-21
| | | | | | | * lisp/net/sasl-scram-rfc.el (sasl-scram--client-final-message): The XOR of two unibyte strings should be a unibyte string. This code previously worked by accident because of an overly tolerant base64 encoder (bug#52670), but now causes a test failure.
* ; * src/xterm.c (handle_one_xevent): Fix typo in last change.Po Lu2021-12-21
|
* Ignore XI_TouchBegin events on the GTK tool barPo Lu2021-12-21
| | | | | * src/xterm.c (handle_one_xevent): Ignore TouchBegin events that target the tool bar.
* Fix gnus subject matching when subject is emptyAndrew G Cohen2021-12-21
| | | | | * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Don't try to limit to a matching subject when the simplified subject is empty.
* Revert "Speed up find_field when called from outside a field"Lars Ingebrigtsen2021-12-21
| | | | | | This reverts commit 4d8af56c76ee20bc8e1ebdeef5c4100cea005974. This leads to lisp-mode-tests failures
* Remove the `mode-line-percent-position' min width hackLars Ingebrigtsen2021-12-21
| | | | | | | * lisp/bindings.el (mode-line-position): Remove hack to get min-width to work on the `mode-line-percent-position' bit. * src/xdisp.c (display_string): Respect min-width in the non-Lisp string case (bug#52332).
* Allow @ characters in heredoc in shell-script-modeLars Ingebrigtsen2021-12-21
| | | | | * lisp/progmodes/sh-script.el (defconst): Also allow @ in heredoc (bug#52496).
* Use the new `permission-denied' error to catch multisession errorsLars Ingebrigtsen2021-12-21
| | | | | * lisp/emacs-lisp/multisession.el (multisession--read-file-value): Use the new `permission-denied' error to catch file errors on Windows.
* Speed up find_field when called from outside a fieldLars Ingebrigtsen2021-12-21
| | | | | | * src/editfns.c (find_field): Speed up the field functions when called from outside a field (bug#52593). (In some cursory tests, this makes the called-from-outside-a-field case about 3x faster.)
* Fix bug#28557Stefan Monnier2021-12-20
| | | | | | | | | | | | | | | * test/lisp/emacs-lisp/cconv-tests.el: Remove `:expected-result :failed` from the bug#28557 tests. (cconv-tests-cl-function-:documentation): Account for the presence of the arglist (aka "usage") in the docstring. * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Handle non-constant `:documentation`. * lisp/emacs-lisp/generator.el (iter-lambda): * lisp/emacs-lisp/cconv.el (cconv--convert-funcbody): Use `macroexp-parse-body`.
* Don't drop touch events we're not interested in on GTK3Po Lu2021-12-21
| | | | | * src/xterm.c (handle_one_xevent): Allow GTK to handle unwanted TouchBegin events.
* Fix touch event menu bar detectionPo Lu2021-12-21
| | | | | * src/xterm.c (handle_one_event): Don't drop menu bar touch events.
* Fix xg_event_is_for_menubar for XI2 eventsPo Lu2021-12-21
| | | | | | | * src/gtkutil.c (xg_event_is_for_menubar): Use correct fields for XI2 events. * src/xterm.c (handle_one_event): Drop TouchBegin events we know about.
* eieio-tests.el: Silence last warningsStefan Monnier2021-12-20
| | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-tests--dummy): New class. (eieio-test-22-init-forms-dont-match-runnable): Tweak to silence warning.
* * src/xterm.c (handle_one_xevent): Set user time on touch events.Po Lu2021-12-21
|
* Ignore all emulated button events (i.e. those from touchscreens)Po Lu2021-12-21
| | | | | * src/xterm.c (handle_one_xevent): Ignore all XIPointerEmulated events if the display supports XI 2.2 or later.
* Put AM_V_GEN etc. firstPaul Eggert2021-12-20
| | | | | | | | | | | | | | | | | With the recent changes to src/verbose.mk.in, it’s more important to be consistent about putting AM_V_GEN and similar macros at the start of a rule’s recipe, since ‘make’ now outputs the diagnostic before it executes the recipe rather than the shell outputting it. Most of the uses were already this way, but there were a few outliers. Problem reported by Pip Cet. * Makefile.in (${srcdir}/info/dir): * admin/unidata/Makefile.in (${unidir}/charprop.el, ${unifiles}) (${unidir}/emoji-labels.el): * lib/Makefile.in (libgnu.a, libegnu.a): * lisp/Makefile.in (TAGS): * src/Makefile.in (lisp.mk, Emacs): * test/Makefile.in (%.log, $(test_module)): Put AM_V_GEN and similar macros first.
* ; Minor license statement fixesStefan Kangas2021-12-20
|
* Make some variable aliases obsoleteStefan Kangas2021-12-20
| | | | | | | | | | | | * lisp/progmodes/make-mode.el (makefile-query-one-target-method): * lisp/skeleton.el (skeleton-transformation, skeleton-filter): * lisp/textmodes/artist.el (artist-text-renderer): * lisp/textmodes/bibtex.el (bibtex-autokey-name-case-convert): (bibtex-autokey-titleword-case-convert): * lisp/textmodes/ispell.el (ispell-format-word): * lisp/textmodes/sgml-mode.el (sgml-transformation): * lisp/vc/add-log.el (change-log-time-zone-rule): Make variable aliases obsolete.
* Prefer $(info) to @echoPaul Eggert2021-12-20
| | | | | | | | | | | | | | | | | | Have GNU Make output some diagnostics directly, instead of forking and execing a shell to do it. * GNUmakefile (help): * doc/lispref/two-volume.make (vol2.pdf, elisp2med-init) (elisp2-init): * doc/misc/Makefile.in (echo-info, echo-sources): * lib-src/Makefile.in (archlibdir, install, check): * src/verbose.mk.in (AM_V_AR, AM_V_CC, AM_V_CXX, AM_V_CCLD) (AM_V_CXXLD, AM_V_ELC, AM_V_ELN, AM_V_GEN, AM_V_GLOBALS) (AM_V_RC): * test/Makefile.in (subdirs, subdir-targets): Prefer $(info) to @echo. * GNUmakefile (MAKECMDGOALS, configure, Makefile): Prefer $(warning) to @echo >&2. * src/verbose.mk.in (AM_V_ELN): Output target, like the others.
* Fix sloppy base64 acceptance of some multibyte charactersMattias Engdegård2021-12-20
| | | | | | | | | | | | The base64 encoding functions incorrectly accepted some multibyte characters; stop doing that (bug#52670). * src/fns.c (base64_encode_1): Reject all multibyte characters. * test/src/fns-tests.el (fns-tests-base64-encode-string) (fns-test-base64url-encode-region) (fns-test-base64url-encode-string): Add tests. * doc/lispref/text.texi (Base 64): Rephrase outdated manual text. * etc/NEWS: Add a notice.
* Fix build in a separate directory (bug#52669)Sam Steingold2021-12-20
| | | | * src/lisp.h: Include <globals.h> instead of "globals.h"
* Use defvar-keymap in wdired.elStefan Kangas2021-12-20
| | | | | * lisp/wdired.el (wdired-mode-map, wdired-perm-mode-map): Use defvar-keymap.
* Use declare-function instead of defun in eieio-tests.elStefan Kangas2021-12-20
| | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Prefer declare-function to defun.
* ; * lisp/emacs-lisp/cl-macs.el (cl--self-tco): fix bootstrappingMattias Engdegård2021-12-20
|
* Silence byte-compiler warnings from absent optional featuresMattias Engdegård2021-12-20
| | | | | | | | * test/src/inotify-tests.el (inotify-rm-watch): * test/src/lcms-tests.el (lcms-xyz->jch): * test/src/sqlite-tests.el (sqlite-open): Add declarations to prevent byte-compilation warnings when features are absent.
* Body of dynamic let-bindings is not in tail positionMattias Engdegård2021-12-20
| | | | | | | | This fixes a known bug in `named-let`. * lisp/emacs-lisp/cl-macs.el (cl--self-tco): Prevent TCO from inside dynamic variable bindings. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels): Add test.
* Add `macroexp--dynamic-variable-p`Mattias Engdegård2021-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | This predicate can be used for discriminating between lexically and dynamically bound variables during macro-expansion (only). It is restricted to internal use for the time being. * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): Use macroexpand--all-toplevel. * lisp/emacs-lisp/macroexp.el (macroexp-dynamic-variable-p): New. (macroexp--expand-all): Maintain macroexp--dynvars. (macroexpand-all): Rebind macroexp--dynvars. (macroexpand--all-toplevel): New. (internal-macroexpand-for-load): Use macroexpand--all-toplevel. * src/eval.c (eval_sub): Transfer defvar declarations from Vinternal_interpreter_environment into macroexp--dynvars during lazy macro-expansion. * src/lread.c (readevalloop): Rebind macroexp--dynvars around read-and-evaluate operations. (syms_of_lread): Define macroexp--dynvars. * test/lisp/emacs-lisp/macroexp-resources/vk.el: New file. * test/lisp/emacs-lisp/macroexp-tests.el (macroexp-tests--run-emacs) (macroexp-tests--eval-in-subprocess) (macroexp-tests--byte-compile-in-subprocess) (macroexp--tests-dynamic-variable-p): Add tests.
* Treat base64 string encode/decode as pure functionsMattias Engdegård2021-12-20
| | | | | | * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns, pure-fns): Mark base64-decode-string, base64-encode-string and base64url-encode-string as pure and side-effect-free.
* Silence byte-compiler using with-no-warnings in testsStefan Kangas2021-12-20
| | | | | | | | | | | | | We could silence the specific warnings by adding support for them to with-suppressed-warnings, but it is almost not worth the complexity for warnings that only show up in one file. In any case, it is not urgent, so leave behind FIXMEs for now. * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-37-obsolete-name-in-constructor, class-c) (eieio-test-01-mix-alloc-initarg, slotattr-class-base): * test/lisp/progmodes/elisp-mode-tests.el (xref-elisp-generic-co-located-default): Silence byte-compiler.
* Silence undefined function warnings in eieio-tests.elStefan Kangas2021-12-20
| | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Silence byte-compiler with some function definitions. These are overridden by class definitions further down.
* Prefer skip-unless in one eieio testStefan Kangas2021-12-20
| | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-01-mix-alloc-initarg): Use skip-unless to correctly mark the test as skipped.
* Silence byte-compiler in cconv-tests.elStefan Kangas2021-12-20
| | | | | | * test/lisp/emacs-lisp/cconv-tests.el (cconv-tests-iter-lambda-:documentation) (cconv-tests-cl-function-:documentation): Silence byte-compiler.
* Merge from origin/emacs-28Stefan Kangas2021-12-20
|\ | | | | | | | | 16ed9fad2c ; * doc/lispref/frames.texi (Child Frames): Improve wording. f11b996a3c Clarify description of two mouse dragging parameters (Bug#...
| * ; * doc/lispref/frames.texi (Child Frames): Improve wording.Eli Zaretskii2021-12-19
| |
| * Clarify description of two mouse dragging parameters (Bug#52537)Martin Rudalics2021-12-19
| | | | | | | | | | * doc/lispref/frames.texi (Child Frames): Clarify description of 'top-visible' and 'bottom-visible' parameters (Bug#52537).
* | * lisp/progmodes/sh-script.el (sh-mode-map): Use defvar-keymap.Stefan Kangas2021-12-19
| |