1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00
Commit Graph

165675 Commits

Author SHA1 Message Date
Stefan Kangas
9aab258b80 Add missing builtin package declarations
* lisp/finder.el (finder--builtins-alist): Add new package
directories 'leim' and 'obsolete' as part of the 'emacs' package.
Add new package directory 'use-package' as part of the
'use-package' package.
* lisp/net/eudc-capf.el:
* lisp/net/eudcb-ecomplete.el:
* lisp/net/eudcb-macos-contacts.el:
* lisp/net/eudcb-mailabbrev.el: Declare library as part of the
'eudc' package.
* lisp/mail/ietf-drums-date.el: Declare library as part of the
'ietf-drums' package.
* lisp/image/image-dired-dired.el:
* lisp/image/image-dired-external.el:
* lisp/image/image-dired-tags.el:
* lisp/image/image-dired-util.el: Declare library as part of the
'image-dired' package.
* lisp/emacs-lisp/oclosure.el:
* lisp/keymap.el:
* lisp/progmodes/c-ts-common.el: Declare library as part of the
'emacs' package.  (Bug#62751)

(cherry picked from commit 94b1de2774)
2023-09-18 01:55:28 +02:00
Stefan Kangas
71a1f0fdc9 Add more missing builtin package declarations
* lisp/emacs-lisp/shorthands.el: Declare library as part of the
'emacs' package.
* lisp/epa-ks.el: Declare library as part of the 'epa'
package.  (Bug#55388)
2023-09-18 01:14:01 +02:00
Stefan Kangas
94705f8300 ; Fix last change in shell-command-to-string
* lisp/simple.el (shell-command-to-string): Fix typo and improve
wording.  Problem reported by Eli Zaretskii <eliz@gnu.org>.
2023-09-17 20:43:37 +02:00
Eli Zaretskii
c3a7084573 ; * lisp/progmodes/flymake.el (flymake-mode): Fix 'cond'.
(cherry picked from commit 16453ed611)
2023-09-17 19:38:33 +03:00
Stefan Kangas
94bef169e2 Document shell-command-to-string security considerations
* lisp/simple.el (shell-command-to-string): Document security
considerations in docstring.
2023-09-17 17:06:43 +02:00
Mauro Aranda
b74d9e8bad Fix shell-indirect-setup-hook :type (Bug#66051)
* lisp/shell.el (shell-indirect-setup-hook): It's a hook, not a
boolean.
2023-09-17 15:08:15 +02:00
Thomas Hilke
f549d4330f Remove column quoting from sqlite-mode
* lisp/sqlite-mode.el (sqlite-mode--column-names): Unquote column
name.  (Bug#65998)

Copyright-paperwork-exempt: yes
2023-09-17 13:02:50 +03:00
Theodor Thornhill
cf7efabe3f Add indentation rules for type_arguments
* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): Indent
as opening braces.
2023-09-17 08:19:05 +02:00
Dmitry Gutov
bcf287bd11 typescript-ts-mode.el: Minor touches
* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--indent-compatibility-b893426)
(tsx-ts-mode--font-lock-compatibility-bb1f97b):
Catch specific error.
(typescript-ts-base-mode): Improve docstring (bug#65470).
2023-09-16 23:03:44 +03:00
Dmitry Gutov
67c8271076 Improve namespacing situation WRT to recent change in typescript-ts-mode.el
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts--syntax-propertize):
Rename from ts-ts--syntax-propertize.
(tsx-ts--syntax-propertize-captures):
Rename from ts-ts--syntax-propertize-captures.
(typescript-ts--s-p-query):
Rename from ts-ts--s-p-query.
Update all references (bug#65470).
2023-09-16 23:03:44 +03:00
Stephen Berman
33ff4fed03 Make move-end-of-line in minibuffer consistent (bug#65980)
* lisp/simple.el (move-end-of-line): Always move to eol when
invoking `C-e' from within the minibuffer's prompt string.
2023-09-16 14:00:24 +02:00
Eli Zaretskii
755ae813a6 ; Declare some treesit.c functions in typescript-ts-mode.el. 2023-09-16 14:26:46 +03:00
Jens Schmidt
89fa204b70 Fix loss of encrypted data in plstore.el
* lisp/plstore.el (plstore--insert-buffer): Fix loss of encrypted
data when a plstore gets opened and saved without being decrypted
between these steps.  (Bug#63627)
2023-09-16 14:05:36 +03:00
Thomas Hilke
d9a1175a61 Close SQL database when corresponding 'sqlite-mode' buffer is killed
* lisp/sqlite-mode.el (sqlite-mode-open-file): Close DB when the
buffer is killed.  (Bug#65998)

Copyright-paperwork-exempt: yes
2023-09-16 13:20:45 +03:00
Eli Zaretskii
cbd8fac283 Fix Unicode normalization of characters
* lisp/international/ucs-normalize.el
(ucs-normalize-composition-exclusions, check-range): Update from
Unicode 15.0 data.  (Bug#65996)

* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-tests--failing-lines-part1)
(ucs-normalize-tests--failing-lines-part2): Update to reflect
changes in ucs-normalize.el.

* admin/notes/unicode: Mention the updates in ucs-normalize.el.
2023-09-16 12:17:23 +03:00
Michael Albinus
825be05b37 Support one-time passwords in Tramp
* doc/misc/tramp.texi (Remote shell setup):
Describe tramp-otp-password-prompt-regexp.

* lisp/net/tramp-sh.el (tramp-actions-before-shell)
(tramp-actions-copy-out-of-band):
Use `tramp-otp-password-prompt-regexp'.

* lisp/net/tramp.el (tramp-otp-password-prompt-regexp): New defcustom.
(tramp-action-otp-password): New defun.
2023-09-16 09:59:31 +02:00
Eli Zaretskii
f880b94e64 Fix the 'C' and 'c' categories of characters
* lisp/international/characters.el: Fix categories of Chinese
characters.  (Bug65995)
2023-09-16 10:53:05 +03:00
Eli Zaretskii
58fd212d8a Fix Emoji zooming commands
* lisp/international/emoji.el (emoji-zoom-increase): Handle the
case where face property at point is a list of faces.  (Bug#65994)
2023-09-16 10:33:10 +03:00
Eli Zaretskii
8970cdd009 ; Fix last change. 2023-09-16 09:26:30 +03:00
Eli Zaretskii
ba924be452 ; * etc/DEBUG: Improve the redisplay section. 2023-09-16 09:25:08 +03:00
Eli Zaretskii
e110312ad9 ; * doc/lispref/minibuf.texi (Text from Minibuffer): Mention alias. 2023-09-16 08:55:17 +03:00
Dmitry Gutov
65f4810003 tsx-ts-mode--font-lock-compatibility-bb1f97b: Improve
* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-bb1f97b):
Test the more complex query, because the current one leads to
false positives (mentioned in bug#65470).
2023-09-15 16:30:58 +03:00
Davide Masserut
6fe11b88ed Avoid using --display in emacsclient to reuse frames on PGTK
Using hard-coded display values can cause PGTK graphical frames to
open using the wrong backend or not open at all.
* Makefile.in (install-etc): Use --reuse-frame instead of
--display=$DISPLAY.  (Bug#65509)
2023-09-15 14:31:10 +03:00
Eli Zaretskii
2fc7463c0e ; * INSTALL: Don't advertise -O3. (Bug#65988) 2023-09-15 14:28:09 +03:00
Eli Zaretskii
29055412f2 ; Fix doc string of 'lsh'
* lisp/subr.el (lsh): Doc fix.  Suggested by Richard Stallman
<rms@gnu.org>.
2023-09-15 10:17:30 +03:00
Eli Zaretskii
738d854333 Support emacsclient on Windows with server on GNU or Unix systems
* lisp/server.el (server-process-filter): If 'tty-name' is literally
"CONOUT$", assume the client runs on MS-Windows and force the
frame type to GUI.  This allows to run emacsclient on MS-Windows
when the server runs on a Posix host.  (Bug#65812)
2023-09-15 10:02:00 +03:00
Eli Zaretskii
f0a89fa1d0 ; * lisp/saveplace.el (save-place-ignore-files-regexp): Fix last change. 2023-09-14 16:18:03 +03:00
Mauro Aranda
c9cb8ee0fc Fix defcustom in saveplace.el (Bug#65977)
* lisp/saveplace.el (save-place-ignore-files-regexp): Allow nil.
2023-09-14 16:14:51 +03:00
Eli Zaretskii
5ec8be1d58 ; * lisp/subr.el (string-suffix-p, string-prefix-p): Doc fix. 2023-09-14 16:08:54 +03:00
Eli Zaretskii
809305e6d8 Fix 'window-text-pixel-size' when there are several images at START
* src/xdisp.c (window_text_pixel_size): Remove unnecessary call to
'move_it_to'.  (Bug#65899)  (Bug#54862)
2023-09-14 12:52:14 +03:00
Eli Zaretskii
ea14b0dcc2 : Doc fix.
* lisp/progmodes/prog-mode.el
(prettify-symbols-unprettify-at-point): Doc fix.
2023-09-14 09:21:28 +03:00
Stefan Kangas
01e8a0c6cb Doc fix for prettify-symbols-unprettify-at-point
* lisp/progmodes/prog-mode.el
(prettify-symbols-unprettify-at-point): Document that it has to be
set before enabling 'prettify-symbols-mode'.  (Bug#65884)
2023-09-14 08:03:13 +02:00
Stefan Monnier
0065621d0d (report_overlay_modification): Fix bug#65929
Somehow the new overlay code in Emacs-29 changed slightly
the test to decide when to run the `modification-hooks` of overlays,
with the consequence that these hook functions end up being executed
also when text is deleted right after an empty overlay, which is
contrary to Emacs-28 behavior as well as contrary to the Texinfo doc.

* src/buffer.c (report_overlay_modification): Better reproduce the
Emacs-28 code.

* test/src/buffer-tests.el (overlay-modification-hooks):
Add corresponding test.
2023-09-13 18:49:55 -04:00
Alan Third
6cc6455e93 Fix SVG colors (bug#56182)
* src/image.c (svg_load_image): Reverse the R and B bytes in the
Windows colors before using them to generate the SVG.
2023-09-13 20:19:44 +01:00
Juri Linkov
9396d73942 * doc/emacs/text.texi (Outline Minor Mode): Add a note about value 'insert'.
* lisp/outline.el (outline-minor-mode-use-buttons): Add a note and
a comment about the value 'insert' (bug#65874).
2023-09-13 19:49:29 +03:00
Eli Zaretskii
a65d1a5a16 Improve documentation of 'list-abbrevs'
* doc/emacs/abbrevs.texi (Editing Abbrevs): Describe how system
abbrevs are shown by 'list-abbrevs'.  Suggested by Shynur Xie
<one.last.kiss@outlook.com>.  (Bug#65907)
2023-09-13 17:23:03 +03:00
Dmitry Gutov
5dcc4b7eab Tweak s-p-f for js-ts-mode
* lisp/progmodes/js.el (js-ts--s-p-query):
Consider two more contexts (bug#65470).
2023-09-13 02:21:04 +03:00
Jostein Kjønigsen
1fb2fb501f typescript-ts-mode, tsx-ts-mode: Fix syntax properties for regexp and jsx
Propertize regexps as strings and JSX elements as generic strings.

* lisp/progmodes/typescript-ts-mode.el (ts-ts--s-p-query)
(tsx-ts--s-p-query): New variables.
(ts-ts--syntax-propertize, tsx-ts--syntax-propertize)
(ts-ts--syntax-propertize-captures): New functions.
(typescript-ts-mode, tsx-ts-mode): Use them (bug#65470).
2023-09-13 01:54:45 +03:00
Eli Zaretskii
946b395e7e * lisp/progmodes/c-ts-mode.el (c++-ts-mode): Provide (bug#65895). 2023-09-12 21:45:19 +03:00
Yuan Fu
33ee3e588f
Fix regression of treesit_cursor_helper_1
* src/treesit.c (treesit_cursor_helper_1)
(treesit_cursor_first_child_for_byte): Use
ts_tree_cursor_goto_first_child_for_byte first, and
ts_tree_cursor_goto_first_child second.
2023-09-11 12:50:31 -07:00
shynur
d11d81dfcc ; Fix doc typos (Bug#65868) 2023-09-11 17:16:23 +02:00
Stefan Kangas
6554ec2246 Update docs for passing of Thien-Thi Nguyen
* doc/emacs/ack.texi (Acknowledgments): Add Thien-Thi Nguyen.
* lisp/play/zone.el: Set maintainer to emacs-devel.
2023-09-11 02:37:54 +02:00
Stefan Kangas
5ab2792d5c Update defvar usage tips example in manual
* doc/lispref/variables.texi (Tips for Defining): Change example
to be about syntax tables instead of old way of defining keymaps
using 'defvar' and 'make-sparse-keymap'.  (Bug#59224)
2023-09-11 01:49:36 +02:00
Stefan Kangas
35d88c657e Document using Flymake together with Eglot
* doc/misc/flymake.texi (Top, Using Flymake): Document using
Flymake together with Eglot.  (Bug#60040)
2023-09-10 21:07:36 +02:00
Eli Zaretskii
3f04efe9e7 ; * src/font.h (struct font): Comment about use of average_width. 2023-09-10 18:31:06 +03:00
Stefan Kangas
459b5f6b6d ; * admin/authors.el (authors-aliases): Update. 2023-09-10 11:40:09 +02:00
João Távora
0c029ae8bc ; tweak etc/TODO item
* etc/TODO (Support external rules for indentation): Add reference
to discussion.
2023-09-09 12:01:51 -05:00
Vincent Lefevre
b8a8106fa1 ; Add missing space in the manual
* doc/lispref/compile.texi (Native-Compilation Variables): Add missing
space.  (Bug#65782)

Copyright-paperwork-exempt: yes
2023-09-08 18:49:23 +02:00
Mauro Aranda
5b906b6215 Fix defcustom :type of ielm-indirect-setup-hook
* lisp/ielm.el (ielm-indirect-setup-hook): Fix :type and remove :safe
property, since it was probably a copy-pasta.  (Bug#65821)
2023-09-08 18:44:34 +02:00
Eli Zaretskii
82af484ec1 ; Two updates of etc/TODO
* etc/TODO: Remove the redesign-overlays item (already done in
Emacs 29.1).  Add an item about supporting external indentation
rules.
2023-09-08 16:31:14 +03:00