1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-09 15:50:40 -08:00
Commit graph

95295 commits

Author SHA1 Message Date
Eshel Yaron
850fc68481
; (grep-read-files): Fix completion table
* lisp/progmodes/grep.el (grep-read-files): Cease returning
some completion candidates unconditionally.  Use
'completion-file-name-table' over 'read-file-name-internal'
because the latter uses 'completion-table-with-quoting', and
that doesn't blend well with other tables in
'completion-table-merge'.

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01194.html
2024-07-02 14:12:40 +02:00
Alan Mackenzie
921d40759e Remove a reference to a non-existant variable from a doc-string
* lisp/progmodes/cc-langs.el (c-opt-extra-label-key): Remove
reference to c-nonlabel-decl-prefix-re from the doc string.
2024-07-01 20:37:28 +00:00
Stefan Kangas
b2d99c0d0a Improve sentence-end-double-space docstring
* lisp/textmodes/paragraphs.el (sentence-end-double-space):
Improve and expand docstring.
2024-07-01 02:41:52 +02:00
Stefan Kangas
57880f597c Delete redundant mention of `with-eval-after-load'
* lisp/progmodes/dcl-mode.el (dcl-mode): Delete redundant mention of
`with-eval-after-load'.
2024-06-29 21:16:58 +02:00
Stefan Kangas
45a20d781a ; Fix typos in symbols 2024-06-29 17:29:38 +02:00
Eli Zaretskii
179800f36b ; * lisp/epg.el (epg--start): Add commentary about encoding. 2024-06-29 15:53:11 +03:00
Kazuhiro Ito
73898f0214 Fix non-ASCII filename operatiion on EasyPG (bug#71500)
* lisp/epg.el (epg--start): Don't encode command-line arguments for
gpg2 program in raw-text.
2024-06-29 15:50:38 +03:00
Stefan Kangas
a65b6aac6b Silence warning with global minor mode :predicate
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Silence byte-compiler warning when :predicate is used.
2024-06-29 14:39:35 +02:00
Eli Zaretskii
31124abdef ; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777). 2024-06-29 15:22:38 +03:00
George Huebner
44f269d6e6 Fix: make 'xwidget-webkit-scroll-backward' scroll backwards
* lisp/xwidget.el (xwidget-webkit-scroll-backward): Move
hyphen out of %-formatter, changing semantics from a padding
specifier to a negative sign.  (Bug#71792)

Copyright-paperwork-exempt: yes
2024-06-29 15:15:01 +03:00
Eli Zaretskii
358085997c Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-06-29 15:08:23 +03:00
Vincenzo Pupillo
736b7cad40 Add jsdoc support to php-ts-mode in <script> element
In the <script> element, enable jsdoc embedding in JavaScript.
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Add jsdoc to parser recipe.
(php-ts-mode): Add jsdoc parser check and a new rule for
'treesit-range-settings'.  Update the commentary section.
(Bug#71771)
2024-06-29 15:06:59 +03:00
Jonas Bernoulli
5f3d964e39
Update to Transient v0.7.2-4-gf75bc48d 2024-06-29 14:06:12 +02:00
Michael Albinus
f0a4879975 Sync with Tramp 2.7.1
* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.
(customize-package-emacs-version-alist): Add Tramp version
integrated in Emacs 30.1.

* lisp/net/tramp-compat.el:
* lisp/net/tramp-message.el (tramp-warning): Use `lwarn'.

* test/lisp/net/tramp-tests.el
(tramp--test-deftest-without-file-attributes): New defmacro.
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test19-directory-files-and-attributes-without-file-attributes)
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test42-utf8-without-file-attributes): New tests.
2024-06-29 10:13:32 +02:00
Stefan Kangas
7372b2eb30 Expand docstring of which-key-mode
* lisp/which-key.el (which-key-mode): Expand docstring.
2024-06-29 00:57:10 +02:00
Stefan Kangas
73c1252bb6 Fix link to major mode variable in docstring
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Fix link to
major mode variable in docstring.  (Bug#71815)
2024-06-28 12:18:04 +02:00
Michael Albinus
c4ad54812a Make `shell-mode' more robust
* lisp/shell.el (shell-mode): Ensure that
`comint-input-ring-file-name' is non-nil when calling `file-truename'.
2024-06-28 11:28:33 +02:00
Po Lu
c4ec905c9a Correct ommissions in rmc.el
* lisp/emacs-lisp/rmc.el (touch-screen-scroll)
(touch-screen-pinch): Declare functions.
(read-multiple-choice--short-answers): Call the same functions
directly and prevent the on-screen keyboard from being
deactivated immedately before it is reopened.
2024-06-28 14:44:28 +08:00
Juri Linkov
bf862fc277 * lisp/hi-lock.el: More fixes related to revert-buffer.
(hi-lock-set-pattern): Use the same propertized string
for 'overlay-put' property to allow 'remove-overlays'
to remove it while using 'eq' on the property value.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01001.html
2024-06-28 09:42:43 +03:00
Kyle Meyer
6cc8ffae9a Update to Org 9.7.5-9-ga091ca 2024-06-27 23:55:35 -04:00
john muhl
c477443ab8 ; Fix typo in lua-ts-mode.el
* lisp/progmodes/lua-ts-mode.el: Fix typo.  (Bug#71736)
2024-06-28 01:01:38 +02:00
john muhl
6e5e4d6193 ; Add 'eglot-ensure' option to 'lua-ts-mode-hook'
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode-hook): Add an option to
enable Eglot from the lua-ts-mode-hook.  (Bug#71736)
2024-06-28 00:59:36 +02:00
Stefan Monnier
bf8c9f702b (eval-last-sexp): Fix bug#71774
* lisp/progmodes/elisp-mode.el (eval-last-sexp): Set `values` only
when `eval-expression-debug-on-error` is nil.
2024-06-27 14:43:32 -04:00
Juri Linkov
6d94090cad * lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)
(hi-lock-set-pattern): Put the text property 'regexp' on the lighter string.
(hi-lock-revert-buffer-rehighlight): Get the real regexp from the
text property 'regexp'.  This fixes the case when the original
regexp gets lost after e.g. 'M-s . M-s h r'.
2024-06-27 21:08:28 +03:00
Juri Linkov
280c91782a * lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).
Instead of detecting invalidated overlays, use the same condition
as in 'hi-lock-set-pattern', and always re-highlight overlays,
because even when overlays stays on their original positions,
there is a need to highlight more matches possibly added after revert.
2024-06-27 20:05:58 +03:00
Juri Linkov
339310d020 * lisp/tab-bar.el (tab-bar-select-restore-windows): Improve the docstring.
Suggested by Kévin Le Gouguec <kevin.legouguec@gmail.com> in bug#71779.
2024-06-27 19:58:27 +03:00
F. Jason Park
233f683da8 ; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Doc (bug#71756). 2024-06-27 06:43:18 -07:00
F. Jason Park
20a672b3b2 Change ERC version for Emacs 30 to 5.6.0.30.1
* doc/misc/erc.texi: Change ERCVER to 5.6.0.30.1.
* lisp/erc/erc.el: Change Version package header to 5.6.0.30.1.  Don't
bother updating the `customize-package-emacs-version-alist' entry
because no user options are yet affected.
(erc-version): Change version to 5.6.0.30.1.
Do not merge to master.
2024-06-27 06:43:17 -07:00
Eli Zaretskii
ced33bc239 Fix handling of non-nil 'dired-movement-style'
* lisp/dired.el (dired--move-to-next-line): Treat any non-nil
value of 'dired-movement-style' except 'cycle' as 'bounded'.
(dired-movement-style): Mention this in the doc string.
(Bug#71770)
2024-06-27 12:42:43 +03:00
Eli Zaretskii
b1e9b6fd67 ; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc fix (bug#71757). 2024-06-27 12:33:47 +03:00
James Thomas
6ec77f580d Do not prematurely truncate python eldoc string
'eldoc-echo-area-use-multiline-p' is there for that.
* lisp/progmodes/python.el (python-eldoc-setup-code):
Make the change.  (Bug#71720)

* etc/NEWS: Announce the change in behavior.
2024-06-27 11:53:29 +03:00
Sebastian Miele
058bb4ca25 kill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)
* lisp/simple.el (kill-whole-line): Use visibility state before
performing any edits as reference instead of expecting that visibility
cannot change.  First of the two calls to `kill-region' may trigger
`after-change-functions' that might alter the visibility state.
Make sure that we populate the `kill-ring' with the contents of the
whole line when buffer is in `read-only-mode'.
2024-06-27 10:48:18 +03:00
Juri Linkov
e45173d114 * lisp/hi-lock.el (hi-lock-file-patterns-policy): Add value 'always'.
(hi-lock-mode): Update docstring.
(hi-lock-find-patterns): Return t for value 'always'.
(hi-lock-revert-buffer-rehighlight): Rewrite to correctly handle
all possible cases (bug#57534).
2024-06-27 09:52:06 +03:00
Juri Linkov
d6afb017de * lisp/progmodes/xref.el (xref-revert-buffer-restore-point): New function.
(xref--xref-buffer-mode): Add xref-revert-buffer-restore-point
to revert-buffer-restore-functions (bug#71466).
2024-06-27 09:42:34 +03:00
Eshel Yaron
82125b1a66
Use 'revert-function' in *xref* buffer
* lisp/progmodes/xref.el (xref--xref-buffer-mode-map): Cease
binding 'g' to 'xref-revert-buffer'.
(xref--xref-buffer-mode): Set 'revert-buffer-function' to...
(xref--revert-buffer): ...this.  New function, renamed from...
(xref-revert-buffer): ...this.  Make it an alias of
'revert-buffer'.
* etc/NEWS: Announce it.
* doc/emacs/maintaining.texi (Xref Commands): Update docs.
2024-06-26 22:59:42 +02:00
Vincenzo Pupillo
d5c6eb1f96 Doc fix in 'php-ts-mode'
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--custom-html-font-lock-settings): Doc fix.  (Bug#71759)
2024-06-27 01:47:27 +02:00
Stephen Berman
8d354925dd Add new face 'widget-unselected' to wid-edit.el
* doc/misc/widget.texi (Customization): Document it.

* etc/NEWS: Announce 'widget-unselected' face.

* lisp/wid-edit.el (widget-unselected): New face.
(widget-specify-unselected, widget-specify-selected): New functions.
(widget-checkbox-action, widget-checklist-add-item)
(widget-radio-add-item, widget-radio-value-set)
(widget-radio-action): Use them.
2024-06-26 08:42:19 +02:00
Jim Porter
1809f6a93e Always perform Eshell process cleanup runs in the Eshell buffer
Previously, some code executed in a timer, which could execute in the
wrong buffer, leading to a hang.

* lisp/eshell/esh-proc.el (eshell-sentinel): Use 'with-current-buffer'
in the timer function.

* test/lisp/eshell/esh-proc-tests.el (eshell-test-value): New variable.
(esh-proc-test/sentinel/change-buffer): New test.

(cherry picked from commit da4bc5c927)
2024-06-25 21:42:28 -07:00
Yuan Fu
fe0d9dfb3b ; * lisp/treesit.el (treesit--syntax-propertize-start): Fix doc.
(cherry picked from commit 2ba39a30bf)
(Bug#71753)
2024-06-25 15:33:04 +03:00
Stephen Berman
2f18929319 Fix tabbing between widgets (bug#70594)
* lisp/wid-edit.el (widget-move): Don't error when tabbing in a
buffer with only one active widget and 'widget-skip-inactive'
enabled.  Improve code by handling forward and backward movement
in a single loop.
2024-06-25 12:38:03 +02:00
Philip Kaludercic
6ad6507532
; * lisp/which-key.el (which-key-dont-use-unicode): Add :initialize
This fixes the change from 768e92b9, which accidentally would call
'custom-reevaluate-setting' on user options before they were registered,
initialising their default value to nil.  When the 'defcustom'
expressions were evaluated later on, they were not properly initialised
as their variables were already bound to some value (nil).

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00825.html
2024-06-25 08:36:37 +02:00
Po Lu
60b38c317b * lisp/touch-screen.el (touch-screen-inhibit-drag): Another typo. 2024-06-25 12:52:56 +08:00
Jim Porter
a4ca30ac2e Fix rescaling of images via 'text-scale-mode' in EWW
* lisp/net/eww.el (eww--rescale-images): Handle a :scale of 'default'
(bug#71741).

(cherry picked from commit 3abcfe013d)
2024-06-24 21:38:02 -07:00
Po Lu
0e43606b20 * lisp/touch-screen.el (touch-screen-inhibit-drag): Fix typo. 2024-06-25 12:27:08 +08:00
Eli Zaretskii
e4046f33ab ; * lisp/simple.el (undo-auto--boundaries): Doc fix (bug#71755). 2024-06-24 22:21:26 +03:00
Eli Zaretskii
008eeb21fd ; * lisp/language/cyrillic.el: Delete obsolete commentary (bug#71754). 2024-06-24 22:17:05 +03:00
Jonas Bernoulli
680155d3f0
Add missing builtin package declarations
* lisp/editorconfig-conf-mode.el:
* lisp/editorconfig-core-handle.el:
* lisp/editorconfig-core.el:
* lisp/editorconfig-fnmatch.el:
* lisp/editorconfig-tools.el: Declare library as part of the
'editorconfig' package.
2024-06-24 20:34:53 +02:00
Robert Pluim
7e8a97ac78 Show entries from key-translation-map in which-key mode
* lisp/which-key.el (which-key-extra-keymaps): New user option.
(which-key--get-current-bindings): Consult it.

(Bug#71648)
2024-06-24 19:17:38 +02:00
Juri Linkov
4a0958642d * lisp/tab-bar.el (tab-bar-tab-group-face-function): Improve doc (bug#71733). 2024-06-24 19:57:57 +03:00
Robert Pluim
96e27c2ecf Don't show char name for multi-char translations
I forgot about shift-translation when implementing this originally, so
this code was being triggered for things like 'C-S-<up>'.

* lisp/help.el (help-key-description): Check if the translation result
is a single char.

(Bug#71411)
2024-06-24 14:39:03 +02:00