]> git.eshelyaron.com Git - emacs.git/log
emacs.git
16 months agoFix rcirc messages printing in the wrong place
Thuna [Wed, 23 Nov 2022 03:14:36 +0000 (04:14 +0100)]
Fix rcirc messages printing in the wrong place

* lisp/net/rcirc.el (rcirc-send-message): Print the message before
sending it to the server.
(rcirc-print): Get the time with subsecond precision.
* lisp/calendar/parse-time.el (parse-time-string
parse-iso8601-time-string): Accept optional second FORM arguments,
with the same meaning as in `decode-time'.  Mention as such in the
docstring.  (Bug#59501)

Copyright-paperwork-exempt: yes

16 months agoPrevent unnecessary modifications of 'package-vc-selected-packages'
Philip Kaludercic [Sun, 30 Apr 2023 18:21:04 +0000 (20:21 +0200)]
Prevent unnecessary modifications of 'package-vc-selected-packages'

* lisp/emacs-lisp/package-vc.el (package-vc--unpack): Handle the
structure of correctly, not as an alist but a list of alists.
(package-vc--archive-spec-alist, package-vc--archive-spec-alists,
package-vc--desc->spec, package-vc--read-archive-data,
package-vc--download-and-read-archives, package-vc--unpack): Rename
'package-vc--archive-spec-alist' to 'package-vc--archive-spec-alists'.

16 months agoRename eglot-update to eglot-upgrade
Dmitry Gutov [Wed, 3 May 2023 22:39:15 +0000 (01:39 +0300)]
Rename eglot-update to eglot-upgrade

* doc/misc/eglot.texi (Getting the latest version):
Update the reference.

* lisp/progmodes/eglot.el (eglot-upgrade): Rename from
'eglot-update', as discussed on emacs-devel, in line with
'package-upgrade'.

16 months agogo-ts-mode: Use iota query only if supported (Bug#63086)
Randy Taylor [Wed, 26 Apr 2023 15:15:45 +0000 (11:15 -0400)]
go-ts-mode: Use iota query only if supported (Bug#63086)

iota query support was added on January 5, 2022.  To support older
versions of the tree-sitter-go grammar (like the latest tagged version,
v0.19.1, which was released on March 3, 2021), check if the query is
supported before trying to use it.

* lisp/progmodes/go-ts-mode.el (go-ts-mode--iota-query-supported-p): New
function.
(go-ts-mode--font-lock-settings): Use it.

16 months ago(rng-complete-tag): Add the (ignored) argument to the :company-kind function
Dmitry Gutov [Wed, 3 May 2023 20:58:27 +0000 (23:58 +0300)]
(rng-complete-tag): Add the (ignored) argument to the :company-kind function

* lisp/nxml/rng-nxml.el (rng-complete-tag): Add the (ignored)
argument to the :company-kind function.  Fixes the "Wrong number
of arguments" error reported at
https://github.com/company-mode/company-mode/issues/1386.

16 months agoUpdate to Transient v0.3.7-219-g3ded15b
Jonas Bernoulli [Wed, 3 May 2023 13:02:31 +0000 (15:02 +0200)]
Update to Transient v0.3.7-219-g3ded15b

16 months agoFix inserting selection data into Mozilla programs
Po Lu [Wed, 3 May 2023 12:02:01 +0000 (20:02 +0800)]
Fix inserting selection data into Mozilla programs

* lisp/select.el (xselect-convert-to-text-uri-list): Don't
return any value when converting non-DND selections to this
drag-and-drop target.

Reported by Tobias Bading <tbading@web.de>.

16 months agoRecognize defstruct slot names in various eieio functions
Thuna [Wed, 19 Apr 2023 21:43:22 +0000 (23:43 +0200)]
Recognize defstruct slot names in various eieio functions

* lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Set
each slot's name's 'slot-name' property so that
'eieio--known-slot-name-p' can recognize them.  (Bug#62959)

Copyright-paperwork-exempt: yes

16 months agoUse 'calendar-buffer' instead of fixed string
Thuna [Tue, 14 Feb 2023 18:52:37 +0000 (19:52 +0100)]
Use 'calendar-buffer' instead of fixed string

* test/lisp/calendar/cal-julian-tests.el (with-cal-julian-test):
Use 'calendar-buffer' instead of a literal fixed name.
(Bug#61546)

Copyright-paperwork-exempt: yes

16 months agoHandle point not at EOB in minibuffer-choose-completion
Spencer Baugh [Fri, 21 Apr 2023 18:55:00 +0000 (14:55 -0400)]
Handle point not at EOB in minibuffer-choose-completion

Without this change, only the minibuffer contents before point
are cleared when a completion is chosen, which results in stray
text when point is in the middle of the minibuffer.

After this change, we heuristically decide either to clear the
whole buffer or only part of it, taking into account the
location of point.

This is a backport for the Emacs 29 release branch of a simpler
fix in minibuffer-completion-help.

* lisp/minibuffer.el (minibuffer-next-completion):
(minibuffer-choose-completion):
Recalculate completion-base-affixes with point.  (Bug#62700)

16 months agoNote that Emacs pauses when handling sentinel errors
Spencer Baugh [Tue, 2 May 2023 15:37:48 +0000 (11:37 -0400)]
Note that Emacs pauses when handling sentinel errors

Noting this behavior and variable here makes it easier to
understand the behavior of Emacs when a sentinel has an error.

* doc/lispref/processes.texi (Filter Functions): Note that Emacs
pauses when handling sentinel errors.
(Sentinels): Note that Emacs pauses when handling sentinel errors.
(Bug#63096)

16 months agoFix vertical-motion when tab-line is displayed in a window
Eli Zaretskii [Mon, 1 May 2023 12:27:21 +0000 (15:27 +0300)]
Fix vertical-motion when tab-line is displayed in a window

* src/xdisp.c (try_window, try_window_id): Account for tab-line,
if present, when converting scroll-margin at the top of the window
to vertical pixel coordinate.  (Bug#63201)

16 months agoUpdate to Org 9.6.5-3-g2993f4
Kyle Meyer [Sun, 30 Apr 2023 23:36:21 +0000 (19:36 -0400)]
Update to Org 9.6.5-3-g2993f4

16 months agoPrevent generating empty autoload files
Philip Kaludercic [Sun, 30 Apr 2023 11:17:09 +0000 (13:17 +0200)]
Prevent generating empty autoload files

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Remove
optimisation that would mistakenly discard old loaddefs in case a file
was not modified by EXTRA-DATA is non-nil.  (Bug#62734)

16 months ago* lisp/org/org-macs.el (org--inhibit-version-check): Fix docstring
Stefan Monnier [Sun, 30 Apr 2023 13:41:13 +0000 (09:41 -0400)]
* lisp/org/org-macs.el (org--inhibit-version-check): Fix docstring

Also, add an explanation to the docstring for what the version
check is about.

16 months agoFix redisplay of mode line after its format changes from nil
Eli Zaretskii [Sun, 30 Apr 2023 13:24:05 +0000 (16:24 +0300)]
Fix redisplay of mode line after its format changes from nil

* src/dispnew.c (update_window): Make sure a mode-line's row of
the current glyph matrix is disabled when the mode line is not
being displayed.  (Bug#63186)

16 months agoFix c-ts-mode--emacs-c-range-query
Michael Albinus [Sun, 30 Apr 2023 10:11:00 +0000 (12:11 +0200)]
Fix c-ts-mode--emacs-c-range-query

* lisp/progmodes/c-ts-mode.el (c-ts-mode--emacs-c-range-query):
Check for (treesit-available-p).

16 months agoImprove documentation of warnings
Eli Zaretskii [Sun, 30 Apr 2023 08:07:36 +0000 (11:07 +0300)]
Improve documentation of warnings

* doc/lispref/control.texi (Errors):
* doc/lispref/os.texi (Startup Summary):
* doc/lispref/display.texi (Warning Basics, Warning Variables)
(Warning Options, Delayed Warnings): Improve documentation of
warnings.  Document the automatic delaying of warnings during
startup.  (Bug#63181)

16 months ago; Doc fix in c-ts-mode.el
Eli Zaretskii [Sun, 30 Apr 2023 05:21:38 +0000 (08:21 +0300)]
; Doc fix in c-ts-mode.el

* lisp/progmodes/c-ts-mode.el (c-ts-mode--fontify-for-each-tail):
Doc fix.

16 months agoFix FOR_EACH_TAIL fontification (bug#62951)
Yuan Fu [Sat, 29 Apr 2023 22:39:54 +0000 (15:39 -0700)]
Fix FOR_EACH_TAIL fontification (bug#62951)

Fix the fontification inconsistency between different FOR_EACH_TAIL's.
See the comment for more explanation.  Also enable the emacs-devel
feature automatically when c-ts-mode-emacs-sources-support is on.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--for-each-tail-regexp): Move up.
(c-ts-mode--font-lock-settings): New font-lock rule for FOR_EACH_TAIL.
(c-ts-mode--fontify-for-each-tail): New function.
(c-ts-mode): Automatically enable emacs-devel feature.

16 months ago; * etc/EGLOT-NEWS: chsharp-le -> csharp-ls
Theodor Thornhill [Sat, 29 Apr 2023 17:59:49 +0000 (19:59 +0200)]
; * etc/EGLOT-NEWS:  chsharp-le -> csharp-ls

16 months ago; * etc/EGLOT-NEWS (https): Elglot -> Eglot.
Theodor Thornhill [Sat, 29 Apr 2023 17:54:09 +0000 (19:54 +0200)]
; * etc/EGLOT-NEWS (https): Elglot -> Eglot.

16 months agoFix documentation of libxml-parse-* functions
Eli Zaretskii [Sat, 29 Apr 2023 06:39:15 +0000 (09:39 +0300)]
Fix documentation of libxml-parse-* functions

* doc/lispref/text.texi (Parsing HTML/XML):
* src/xml.c (Flibxml_parse_html_region, Flibxml_parse_xml_region):
Update the documentation regarding the use of BASE-URL argument.
(Bug#63125)

16 months ago; * src/treesit.c (syms_of_treesit): Fix error messages.
Eli Zaretskii [Fri, 28 Apr 2023 18:14:32 +0000 (21:14 +0300)]
; * src/treesit.c (syms_of_treesit): Fix error messages.

16 months ago; Remove some leftover text
Dmitry Gutov [Fri, 28 Apr 2023 16:28:25 +0000 (19:28 +0300)]
; Remove some leftover text

16 months ago; Fix byte-compilation warnings in c-ts-mode.el
Eli Zaretskii [Fri, 28 Apr 2023 16:01:19 +0000 (12:01 -0400)]
; Fix byte-compilation warnings in c-ts-mode.el

* lisp/progmodes/c-ts-mode.el (treesit-parser-set-included-ranges)
(treesit-query-compile): Declare treesit.c functions.
(treesit-load-name-override-list): Defvar it.

16 months agoSkip over whitespace in annotation-top-cont check (bug#63141)
Theodor Thornhill [Fri, 28 Apr 2023 12:00:35 +0000 (14:00 +0200)]
Skip over whitespace in annotation-top-cont check (bug#63141)

* lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax): Make sure
we skip over whitespace when looking for the next '['.

16 months agoUpdate zh-CN tutorial translation
Ruijie Yu [Wed, 19 Apr 2023 02:36:22 +0000 (10:36 +0800)]
Update zh-CN tutorial translation

* etc/tutorials/TUTORIAL.cn (INTRO): Additions from English
version; say "interrupt" not "quit" a partially-entered command;
fixed minor inconsistency (English says partially-entered command,
Chinese used to say partially-executed command -- they are
different); converted half-width square brackets containing
translators' notes into full-width ones for consistency.
(BASIC CURSOR CONTROL): mention that a word boundary for Chinese
can also be space; fixed incorrect terminology (keyboard vs
terminal); retain English term "terminal"; retain English term
"prefix argument"; "most commands _interpret_ prefix args as
repeat-count", not "explain"; ensure space is added on both ends
of an English word.
(WINDOWS): Clarify it is the digit 1 in C-x 1.
(INSERTING AND DELETING): Mention the term "continuation line" and
retain its English term, because this term is mentioned again
later in the tutorial; avoid saying the name of "\\"; add
description for "electric" and a rough translation; sync English
for prefix argument for DEL and C-d; ensure that translators'
notes are marked explicitly so; add indentation to the instruction
about continuation lines; additional translations such as
mentioning C--, etc.
(FILES): Re-pluralize the heading; space around English words;
describe what C-g cancels (the command) when entering file name;
replace "search for" with "find"; minor rephrasing; explicit
translator notes; fixed the write-file message to no longer
contain ellipses (see src/fileio.c:5541).
(BUFFERS): Re-pluralize the heading; mention that C-x C-b also
shows buffer name; C-x s only looks for file-visiting buffers.
(EXTENDING THE COMMAND SET): Include C-x s and C-x b in list of
learned commands.
(MODE LINE): Remove the dashes in description on the point
location.
(MULTIPLE WINDOWS): Mention the difference between frame
and window; also add translator notes pointing to end of
tutorial which contains a terminology list.
(MULTIPLE FRAMES): Change the M-x commands to keybinds C-x 5 2 and
C-x 5 0 to sync with English.
(GETTING MORE HELP): Change C-h f to C-h x, to sync with English.
(INSTALLING PACKAGES): Rephrase "available packages", used to say
lit., "existing", now says lit., "installable"; consistently
translate the term "package", and retain its English name.
(TRANSLATION): Add my name as co-maintainer of this file.

* etc/tutorials/TUTORIAL.translators (TUTORIAL.cn): Add my name
as co-maintainer for TUTORIAL.cn.

16 months ago; * lisp/progmodes/c-ts-mode.el: Fix comments and doc strings (bug#62951).
Eli Zaretskii [Fri, 28 Apr 2023 05:40:56 +0000 (08:40 +0300)]
; * lisp/progmodes/c-ts-mode.el: Fix comments and doc strings (bug#62951).

16 months ago; Fix last change.
Eli Zaretskii [Fri, 28 Apr 2023 05:27:20 +0000 (08:27 +0300)]
; Fix last change.

16 months ago; * etc/NEWS: Followup to bug#62720.
Eli Zaretskii [Fri, 28 Apr 2023 05:26:39 +0000 (08:26 +0300)]
; * etc/NEWS: Followup to bug#62720.

16 months ago; Minor improvements in doc strings of package-upgrade commands
Eli Zaretskii [Fri, 28 Apr 2023 05:14:37 +0000 (08:14 +0300)]
; Minor improvements in doc strings of package-upgrade commands

* lisp/emacs-lisp/package.el (package-upgrade)
(package-upgrade-all): Doc fixes.  (Bug#62720)

16 months agoFix eglot.texi
Eli Zaretskii [Fri, 28 Apr 2023 04:54:16 +0000 (07:54 +0300)]
Fix eglot.texi

* doc/misc/eglot.texi (Troubleshooting Eglot): Add missing @menu.
(Performance, Getting the latest version): Improve wording and
indexing, add cross-references.

16 months agoFix two crashes upon startup
Po Lu [Fri, 28 Apr 2023 03:47:46 +0000 (11:47 +0800)]
Fix two crashes upon startup

* src/image.c (image_create_bitmap_from_data)
(image_create_bitmap_from_file): Specify a Window or a Pixmap
describing the screen, not a back buffer drawable which may not exist.
Otherwise, Emacs crashes on startup when a bitmap icon is in use.

16 months agoEglot: explain how to update Eglot in manual (bug#62720)
João Távora [Thu, 27 Apr 2023 20:08:17 +0000 (21:08 +0100)]
Eglot: explain how to update Eglot in manual (bug#62720)

* lisp/progmodes/eglot.el (eglot-update): New command.

* doc/misc/eglot.texi (Troubleshooting): Rework.

16 months agoEglot: fix edge case when deleting inlay hint overlays
João Távora [Thu, 27 Apr 2023 19:51:07 +0000 (20:51 +0100)]
Eglot: fix edge case when deleting inlay hint overlays

When asked to update hints in a region (FROM TO),
eglot--update-hints-1 first deletes the existing hints.  It must
however take care to delete all overlays that logically belong to the
region, even if they don't physically belong to it, e.g. inlay
overlays spanning (FROM-1 FROM) and having a 'after-string' property.

* lisp/progmodes/eglot.el (eglot--update-hints-1): Fix edge case.

16 months agopackage-upgrade[-all]: Expand docstrings to note the current limitation
Dmitry Gutov [Thu, 27 Apr 2023 23:24:10 +0000 (02:24 +0300)]
package-upgrade[-all]: Expand docstrings to note the current limitation

* lisp/emacs-lisp/package.el (package-upgrade, package-upgrade-all):
Expand docstrings to note the current limitation (bug#62720).

16 months agoRename all functions called package-*-update-* to package-*-upgrade-*
Dmitry Gutov [Sun, 23 Apr 2023 23:00:54 +0000 (02:00 +0300)]
Rename all functions called package-*-update-* to package-*-upgrade-*

* lisp/emacs-lisp/package-vc.el (package-vc-upgrade-all):
Rename from 'package-vc-update-all'.
(package-vc-upgrade): Rename from 'package-vc-update'.

* lisp/emacs-lisp/package.el (package-upgrade):
Rename from 'package-update' (bug#62750).
(package--upgradeable-packages):
Rename from 'package--updateable-packages'.
(package-upgrade-all): Rename from 'package-update-all'.

16 months agoFix FOR_EACH_TAIL in c-ts-mode (bug#62951)
Yuan Fu [Thu, 27 Apr 2023 03:09:42 +0000 (20:09 -0700)]
Fix FOR_EACH_TAIL in c-ts-mode (bug#62951)

* lisp/progmodes/c-ts-mode.el
(c-ts-mode--indent-styles): New indent rule.

(c-ts-mode--for-each-tail-regexp)
(c-ts-mode--for-each-tail-body-matcher)
(c-ts-mode--emacs-c-range-query)
(c-ts-mode--for-each-tail-ranges)
(c-ts-mode--reverse-ranges)
(c-ts-mode--emacs-set-ranges): New functions and variables.

(c-ts-mode): Create a emacs-c parser.  More setup for Emacs source
support.

* lisp/treesit.el (treesit-query-range): Ignore underscore-prefixed
capture names.

16 months ago* Makefile.in (distclean): Remove the 'native-lisp' directory.
Eli Zaretskii [Thu, 27 Apr 2023 18:39:33 +0000 (21:39 +0300)]
* Makefile.in (distclean): Remove the 'native-lisp' directory.

16 months agoImprove greek-ibycus4 input method
Eli Zaretskii [Thu, 27 Apr 2023 07:25:20 +0000 (10:25 +0300)]
Improve greek-ibycus4 input method

* lisp/leim/quail/greek.el ("greek-ibycus4"): Add another sequence
for CAPITAL LETTER RHO WITH DASIA.  (Bug#63104)

16 months agoExplain ERC 5.5 regressions in new version 5.5.0.29.1
F. Jason Park [Fri, 21 Apr 2023 14:39:05 +0000 (07:39 -0700)]
Explain ERC 5.5 regressions in new version 5.5.0.29.1

* doc/misc/erc.texi: Bump version to 5.5.0.29.1.
* etc/ERC-NEWS: Don't hype bugged option `erc-reconnect-display'.
* lisp/erc/erc-dcc.el (erc-dcc-do-GET-command): Add comment explaining
parsing bug in ERC 5.5 (bug#62444).
* lisp/erc/erc-networks.el (erc-networks-on-MOTD-end): Mention known
/MOTD bug in error notice so people don't waste energy reporting
it (bug#62151).
* lisp/erc/erc.el: Change Version header to 5.5.0.29.1.  Don't bother
updating the `customize-package-emacs-version-alist' entry
because no option defaults are affected.
(erc-version): Change version to 5.5.0.29.1.
(erc-reconnect-display, erc-query-on-unjoined-chan-privmsg): Add
warning to doc strings and `custom-set' functions.  It's believed that
these bugs degrade the user experience significantly enough to warrant
such mentions (bug#62833).
(erc-query): Fix erroneous redirect string in deprecation spec.
Do not merge to master.

16 months ago* doc/misc/erc.texi: Elaborate on upgrading via ELPA.
F. Jason Park [Fri, 21 Apr 2023 14:39:05 +0000 (07:39 -0700)]
* doc/misc/erc.texi: Elaborate on upgrading via ELPA.

16 months agoImprove outline-default-state docstring
Robert Pluim [Wed, 26 Apr 2023 10:27:30 +0000 (12:27 +0200)]
Improve outline-default-state docstring

* lisp/outline.el (outline-default-state): Explain which functions are
available to affect heading visibility.

16 months agoDocument problems with /bin/sh on Solaris 10
Eli Zaretskii [Wed, 26 Apr 2023 06:39:35 +0000 (09:39 +0300)]
Document problems with /bin/sh on Solaris 10

* etc/PROBLEMS (Solaris): Document problems with '/bin/sh'.
Suggested by Paul Eggert <eggert@cs.ucla.edu>.  (Bug#63067)

16 months ago; Add missing <<inserted by help-with-tutorial>> line to TUTORIAL.fa.
Mohsen Banan [Tue, 25 Apr 2023 21:49:28 +0000 (14:49 -0700)]
; Add missing <<inserted by help-with-tutorial>> line to TUTORIAL.fa.

16 months agoFollowup to addition of TUTORIAL.fa
Eli Zaretskii [Tue, 25 Apr 2023 09:26:20 +0000 (12:26 +0300)]
Followup to addition of TUTORIAL.fa

* etc/NEWS: Announce addition of TUTORIAL.fa.

* etc/tutorials/TUTORIAL.translators (TUTORIAL.fa): New entry.

* lisp/language/misc-lang.el ("Persian"): Add tutorial property.

16 months agoAdd Farsi/Persian translation of the tutorial
Mohsen Banan [Mon, 24 Apr 2023 04:26:06 +0000 (21:26 -0700)]
Add Farsi/Persian translation of the tutorial

* etc/tutorials/TUTORIAL.fa: New file.

* lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Fix
typo in doc string.

16 months agoAdd Mongolian language environments
Eli Zaretskii [Tue, 25 Apr 2023 08:50:59 +0000 (11:50 +0300)]
Add Mongolian language environments

* lisp/language/misc-lang.el ("Mongolian-traditional"):
* lisp/language/cyrillic.el ("Mongolian-cyrillic"): New
language environments.

* etc/HELLO: Add Mongolian Traditional.
* etc/NEWS: Announce the new language environments.

(Bug#63028)

16 months agoDocument the 'end-session' event on MS-Windows
Eli Zaretskii [Tue, 25 Apr 2023 06:35:30 +0000 (09:35 +0300)]
Document the 'end-session' event on MS-Windows

* doc/lispref/commands.texi (Misc Events): Document the
'end-session' event.  (Bug#63058)

16 months agoUpdate to Org 9.6.4-9-g8eb209
Kyle Meyer [Mon, 24 Apr 2023 23:47:12 +0000 (19:47 -0400)]
Update to Org 9.6.4-9-g8eb209

16 months agoDon't support versioned grammar libraries on MS-Windows
Eli Zaretskii [Mon, 24 Apr 2023 18:46:35 +0000 (21:46 +0300)]
Don't support versioned grammar libraries on MS-Windows

* src/treesit.c (treesit_load_language_push_for_each_suffix):
Don't append ".0.0" on WINDOWSNT.

16 months agoAccept versioned tree-sitter language grammar files
Yuan Fu [Mon, 24 Apr 2023 06:55:22 +0000 (23:55 -0700)]
Accept versioned tree-sitter language grammar files

By discussion on emacs-devel, titled "Versioned Tree-sitter parser
libraries".

* src/treesit.c (Vtreesit_str_dot_0): New variable.
(treesit_load_language_push_for_each_suffix): Additionally look for
lib_base_name.0 and lib_base_name.0.0.
(syms_of_treesit): Initialize Vtreesit_str_dot_0.

16 months agotab-bar-new-tab: inhibit side-window checks
Benson Chu [Fri, 24 Mar 2023 20:38:03 +0000 (15:38 -0500)]
tab-bar-new-tab: inhibit side-window checks

Previously, calling 'tab-bar-new-tab-to' only removed the
'window-side' property on the currently selected window,
and then a call to 'delete-other-windows' was made to
ensure that the selected window was the only window.
We can skip this check by shadowing 'window--sides-inhibit-check'
to t.
* lisp/tab-bar.el (tab-bar-new-tab-to): Inhibit side-window checks.
(Bug#62427)

Copyright-paperwork-exempt: yes

16 months ago* etc/NEWS: Fix outline level. (Bug#63042)
Michael Albinus [Mon, 24 Apr 2023 07:40:43 +0000 (09:40 +0200)]
* etc/NEWS: Fix outline level.  (Bug#63042)

Fix typos.

16 months ago; Improve font selection for Traditional Mongolian
Eli Zaretskii [Sun, 23 Apr 2023 16:11:49 +0000 (19:11 +0300)]
; Improve font selection for Traditional Mongolian

* lisp/international/fontset.el (setup-default-fontset): Improve
the font spec for Traditional Mongolian.  (Bug#63028)

16 months agoFix rendering of Traditional Mongolian script
Eli Zaretskii [Sun, 23 Apr 2023 14:04:56 +0000 (17:04 +0300)]
Fix rendering of Traditional Mongolian script

* lisp/international/characters.el: Set punctuation syntax for Po
characters from the Mongolian block
* lisp/international/fontset.el (setup-default-fontset): Add
fontset setting for Traditional Mongolic.
* lisp/language/misc-lang.el (composition-function-table): Add
rules for Traditional Mongolic.  (Bug#63028)

16 months agoFix line-number-at-pos when POSITION is out of narrowing
Eli Zaretskii [Sat, 22 Apr 2023 16:27:16 +0000 (19:27 +0300)]
Fix line-number-at-pos when POSITION is out of narrowing

* src/fns.c (Fline_number_at_pos): Don't signal an error when
ABSOLUTE is nil and POSITION is outside of the narrowing, like the
original Lisp implementation did.  Minor speedup by using the byte
position where it is available from the get-go.  (Bug#62857)

16 months ago; * etc/tutorials/TUTORIAL: Fix punctuation.
Eli Zaretskii [Sat, 22 Apr 2023 10:40:57 +0000 (13:40 +0300)]
; * etc/tutorials/TUTORIAL: Fix punctuation.

16 months agoFix exiting Emacs after saving a tutorial
Eli Zaretskii [Sat, 22 Apr 2023 10:35:36 +0000 (13:35 +0300)]
Fix exiting Emacs after saving a tutorial

* lisp/tutorial.el (tutorial--starting-point): Make it
permanent-local, so that saving the tutorial to some file doesn't
kill this buffer-local variable.  Otherwise, trying to exit Emacs
after saving the tutorial will signal an error, because
'tutorial--starting-point' is void.  (Bug#37326)

16 months agoAdd indentation style setting for c-ts-mode in .dir-locals.el
Eli Zaretskii [Sat, 22 Apr 2023 06:41:50 +0000 (09:41 +0300)]
Add indentation style setting for c-ts-mode in .dir-locals.el

* lisp/progmodes/c-ts-mode.el (c-ts-indent-style-safep): New
predicate.
(c-ts-mode-indent-style): Use it to test the value for being safe.

* .dir-locals.el (c-ts-mode): Set 'c-ts-mode-indent-style' to 'gnu'.

17 months ago; * .dir-locals.el (c-ts-mode): Add settings.
Eli Zaretskii [Fri, 21 Apr 2023 17:54:15 +0000 (20:54 +0300)]
; * .dir-locals.el (c-ts-mode): Add settings.

17 months ago; Minor fix in Emacs Lisp Intro manual
Eli Zaretskii [Fri, 21 Apr 2023 16:16:52 +0000 (19:16 +0300)]
; Minor fix in Emacs Lisp Intro manual

* doc/lispintro/emacs-lisp-intro.texi (what-line): Fix punctuation
and wording.  Reported by Holger Kienle <hkienle@posteo.de>.
(Bug#62998)

17 months ago; * src/fringe.c: Fix description of large circle. (Bug#62961)
Eli Zaretskii [Thu, 20 Apr 2023 10:06:24 +0000 (13:06 +0300)]
; * src/fringe.c: Fix description of large circle.  (Bug#62961)

17 months agosql: add missing postgresql types
Nicolas Martyanoff [Sun, 16 Apr 2023 13:30:47 +0000 (15:30 +0200)]
sql: add missing postgresql types

* lisp/progmodes/sql.el: Add multiple missing PostgreSQL types: bigserial,
smallserial, macaddr8, jsonb, jsonpath, built-in range types, object
identifier types (oid & co).

17 months agoFix display of menu-bar bindings of commands in *Help* buffers
Eli Zaretskii [Wed, 19 Apr 2023 17:46:40 +0000 (20:46 +0300)]
Fix display of menu-bar bindings of commands in *Help* buffers

* lisp/help-fns.el (help-fns--insert-menu-bindings): Propertize
with 'help-key-binding' face only the menu items, not the arrows
between successive items.  This is because 'char-displayable-p' is
unreliable when we propertize the character with an arbitrary
face: that face could specify a font which doesn't support the
character after all, while 'char-displayable-p' assumes there are
no restrictions on fonts that can be used for displaying the
character.  Also, make the code more efficient by avoiding the
call to 'char-displayable-p' inside the loop.

17 months agoImprove Completion Example section in the Emacs manual
Spencer Baugh [Tue, 18 Apr 2023 22:03:36 +0000 (18:03 -0400)]
Improve Completion Example section in the Emacs manual

This can be a useful substitute for full-on fuzzy completion, as
provided by other completion styles and completion packages.
* doc/emacs/mini.texi (Completion Example): Give an example of
completion with point not at end of minibuffer.  Also, use
@kbd{@key{TAB}} when telling the user to hit TAB.  (Bug#62836)

17 months agoImprove 'message-server-alist' docstring
Robert Pluim [Wed, 19 Apr 2023 10:33:18 +0000 (12:33 +0200)]
Improve 'message-server-alist' docstring

* lisp/gnus/message.el (message-server-alist): Fix typo and clarify
what happens if there is already an X-Message-SMTP-Method header.

17 months agoAdd index entry for fallback modes
Robert Pluim [Wed, 19 Apr 2023 10:29:57 +0000 (12:29 +0200)]
Add index entry for fallback modes

* doc/emacs/custom.texi (Specifying File Variables): Add index for
'fallback modes'.

17 months ago; * etc/NEWS: Copyedits and grammar fixes.
Robert Pluim [Tue, 18 Apr 2023 14:10:10 +0000 (16:10 +0200)]
; * etc/NEWS: Copyedits and grammar fixes.

17 months agoxref-search-program-alist: Fix searching larger file lists on MS Windows
Dmitry Gutov [Tue, 18 Apr 2023 22:29:20 +0000 (01:29 +0300)]
xref-search-program-alist: Fix searching larger file lists on MS Windows

* lisp/progmodes/xref.el (xref-search-program-alist):
Add '-s 10000' to xargs' options when on Windows or DOS.
Apparently the xargs port doesn't currently know how to obey the
system-wide limits (https://debbugs.gnu.org/bug=61667#521).

17 months agoFix typo and inaccuracy in the ELisp Reference manual
Shynur [Sun, 16 Apr 2023 18:13:32 +0000 (02:13 +0800)]
Fix typo and inaccuracy in the ELisp Reference manual

* doc/lispref/loading.texi (Dynamic Modules): Fix a typo.
* doc/lispref/customize.texi (Group Definitions): Faces are also
in the 'custom-group' property of a customization group.
(Bug#62887)

Copyright-paperwork-exempt: yes

17 months ago; Support 'dart-ts-mode' in Eglot
Eli Zaretskii [Tue, 18 Apr 2023 11:49:18 +0000 (14:49 +0300)]
; Support 'dart-ts-mode' in Eglot

* lisp/progmodes/eglot.el (eglot-server-programs): Add
'dart-ts-mode'.  Patch by Mou Tong <mou.tong@outlook.com>.
(Bug#62879)

17 months ago; Fix typos in gdb-mi.el
Eli Zaretskii [Tue, 18 Apr 2023 11:36:28 +0000 (14:36 +0300)]
; Fix typos in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdbmi-bnf-result-state-configs): Fix
typos introduced while fixing bug#10580.  (Bug#62858)

17 months agoFix description of lexical environment's internals
Eli Zaretskii [Tue, 18 Apr 2023 11:30:28 +0000 (14:30 +0300)]
Fix description of lexical environment's internals

* doc/lispref/variables.texi (Lexical Binding): Update the
description of how the lexical environment is represented
internally.  (Bug#62840)

17 months ago; Eglot: fix a typo in a customization type
Idir Lankri [Fri, 14 Apr 2023 13:52:24 +0000 (15:52 +0200)]
; Eglot: fix a typo in a customization type

* lisp/progmodes/eglot.el (eglot-ignored-server-capabilities): Fix the
value associated with the tag "Go to declaration".  (Bug#62849)

Copyright-paperwork-exempt: yes

17 months ago; * etc/NEWS: Grammar fixes.
Robert Pluim [Mon, 17 Apr 2023 10:24:30 +0000 (12:24 +0200)]
; * etc/NEWS: Grammar fixes.

17 months agoUpdate to Org 9.6.4-2-g0f6ae7
Kyle Meyer [Mon, 17 Apr 2023 01:13:08 +0000 (21:13 -0400)]
Update to Org 9.6.4-2-g0f6ae7

17 months agoDocumentation copyedits for 'package-install-upgrade-built-in' etc
Eli Zaretskii [Sun, 16 Apr 2023 15:11:07 +0000 (18:11 +0300)]
Documentation copyedits for 'package-install-upgrade-built-in' etc

* etc/NEWS: More details about the new option
'package-install-upgrade-built-in'.

* lisp/emacs-lisp/package.el (package-install-upgrade-built-in)
(package--active-built-in-p, package-install): Doc fixes.
(Bug#62720)

17 months agoAllow upgrading built-in packages with 'package-install'
Philip Kaludercic [Thu, 13 Apr 2023 18:13:59 +0000 (20:13 +0200)]
Allow upgrading built-in packages with 'package-install'

* etc/NEWS: Mention the change
* lisp/emacs-lisp/package.el (package--upgradable-built-in-p): Add new
predicate.
(package-install-upgrade-built-in): Add new user option to enable
feature.
(package-install): Respect new user option.

17 months ago; * src/term.c (init_tty): Fix last change. (Bug#62877)
Eli Zaretskii [Sun, 16 Apr 2023 08:16:45 +0000 (11:16 +0300)]
; * src/term.c (init_tty): Fix last change.  (Bug#62877)

17 months agoMinor changes in c-ts-mode.el's support of DEFUNs
Eli Zaretskii [Sun, 16 Apr 2023 08:12:39 +0000 (11:12 +0300)]
Minor changes in c-ts-mode.el's support of DEFUNs

* lisp/progmodes/c-ts-mode.el (c-ts-mode--fontify-DEFUN): Renamed
from 'c-ts-mode--fontify-defun'; all callers changed.
(c-ts-mode-emacs-sources-support): Renamed from
'c-ts-mode-emacs-devel' and made into a defcustom; all users
changed.
(c-ts-mode--emacs-defun-p, c-ts-mode--emacs-defun-at-point)
(c-ts-mode--emacs-current-defun-name): Doc fixes.  (Bug#62825)

17 months agoFix strike-through attribute support on TTY frames
Eli Zaretskii [Sun, 16 Apr 2023 06:19:15 +0000 (09:19 +0300)]
Fix strike-through attribute support on TTY frames

* src/term.c (init_tty): Fix setting the strike-through capability
with "smxx".  (Bug#62265)

17 months agoAvoid crashes in 'describe-keymap' due to shadowing
Eli Zaretskii [Sun, 16 Apr 2023 05:51:22 +0000 (08:51 +0300)]
Avoid crashes in 'describe-keymap' due to shadowing

* src/keymap.c (describe_vector): Handle shadowing by something
other than a symbol.  (Bug#62867)

17 months agoMake image-map bindings available on image links
Andreas Schwab [Sat, 15 Apr 2023 10:35:24 +0000 (12:35 +0200)]
Make image-map bindings available on image links

* lisp/net/shr.el (shr-map): Move shr-browse-image to "M-i".
* lisp/net/eww.el (eww-image-link-keymap): Use shr-image-map.

17 months ago* CONTRIBUTE: Fix a typo
Alan Mackenzie [Sat, 15 Apr 2023 11:00:38 +0000 (11:00 +0000)]
* CONTRIBUTE: Fix a typo

17 months ago; * lisp/progmodes/c-ts-mode.el (treesit-node-next-sibling): Declare.
Eli Zaretskii [Sat, 15 Apr 2023 10:12:20 +0000 (13:12 +0300)]
; * lisp/progmodes/c-ts-mode.el (treesit-node-next-sibling): Declare.

17 months agoAdd to Eglot support for additional language-servers.
Jostein Kjønigsen [Fri, 14 Apr 2023 21:11:02 +0000 (23:11 +0200)]
Add to Eglot support for additional language-servers.

* lisp/progmodes/eglot.el (eglot-server-programs): Add
'vscode-markdown-language-server' for Markdown and
'dot-language-server' for GraphViz.  (Bug#62844)

17 months agoPartial support for DEFUN in c-ts-mode (bug#62825)
Yuan Fu [Fri, 14 Apr 2023 19:52:46 +0000 (12:52 -0700)]
Partial support for DEFUN in c-ts-mode (bug#62825)

The DEFUN is hard to incorporate because it's made of two nodes rather
than one, and most tree-sitter functionalities assume a defun is one
node.  I fixed the indent-defun and add-log functionality, but
beginning/end-of-defun and imenu still don't recognize DEFUN.

* lisp/progmodes/c-ts-mode.el (c-ts-mode-emacs-devel): New variable.
(c-ts-mode--defun-name): Support DEFUN.
(c-ts-mode--defun-valid-p): Support DEFUN.
(c-ts-mode--emacs-defun-p)
(c-ts-mode--emacs-defun-at-point): New functions.
(c-ts-mode-indent-defun): Use c-ts-mode--emacs-defun-at-point.
(c-ts-mode--emacs-current-defun-name): New function.
(c-ts-mode, c++-ts-mode): Optionally setup custom defun-name function.

17 months agoFix style and unwinding code in treesit.c
Eli Zaretskii [Fri, 14 Apr 2023 06:21:05 +0000 (09:21 +0300)]
Fix style and unwinding code in treesit.c

This was supposed to be a cherry-pick from master, but
isn't, due to the unnecessary rush to fix master without
cleaning up the mess first and without separating changes
that can and cannot be backported.
* src/treesit.c (treesit_traverse_cleanup_cursor): Fix indentation
style.
(Ftreesit_search_subtree, Ftreesit_search_forward)
(Ftreesit_induce_sparse_tree): Fix specpdl unwinding.  (Bug#62823)
Do not merge to master.

17 months agoCatch signals produced by PRED in tree-sitter search functions
Yuan Fu [Thu, 13 Apr 2023 21:36:46 +0000 (14:36 -0700)]
Catch signals produced by PRED in tree-sitter search functions

Earlier we switched to using cursors rather than nodes to traverse the
parse tree.  Because cursors need cleanup, we have to catch signals
thrown by the predicate functions and free the cursor. Failing to do
this will result in leaking the cursor whenever the predicate function
signals in a search function.  This change fixes the leak.
* src/treesit.c (treesit_traverse_cleanup_cursor): New function.
(Ftreesit_search_subtree)
(Ftreesit_search_forward)
(Ftreesit_induce_sparse_tree): Catch signals.  (Bug#62823)

(cherry picked from commit a5eb9f6ad4e6f5a2819b540a477f1e889f6ef355)

17 months agoFix compilation of w32.c with old MinGW system headers
Eli Zaretskii [Thu, 13 Apr 2023 05:18:33 +0000 (08:18 +0300)]
Fix compilation of w32.c with old MinGW system headers

* src/w32.c (CONSOLE_FONT_INFO): Make sure the definition is not
visible for MinGW versions whose w32api's version is before 5.2.0.
(Bug#52792)

17 months agoruby-add-log-current-method: Reduce the use of 'nreverse'
Dmitry Gutov [Wed, 12 Apr 2023 21:45:54 +0000 (00:45 +0300)]
ruby-add-log-current-method: Reduce the use of 'nreverse'

* lisp/progmodes/ruby-mode.el (ruby-add-log-current-method):
Reduce the use of 'nreverse' (bug#62761).

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-add-log-current-method-singleton-referencing-outer):
New test.

17 months agoFix detection of WebP images by their signature
Visuwesh [Wed, 12 Apr 2023 13:47:23 +0000 (19:17 +0530)]
Fix detection of WebP images by their signature

* lisp/image.el (image-type-header-regexps): The 4 characters
between "RIFF" and "WEBP" in WebP images can also be newlines.
(Bug#62790)

17 months ago; Eglot: make version parseable by version-to-list
João Távora [Wed, 12 Apr 2023 12:08:14 +0000 (13:08 +0100)]
; Eglot: make version parseable by version-to-list

* lisp/progmodes/eglot.el (Version): Correct version.

17 months agoAdd more documentation for the keys of `package-vc-selected-packages`.
Earl Hyatt [Tue, 28 Mar 2023 00:57:31 +0000 (20:57 -0400)]
Add more documentation for the keys of `package-vc-selected-packages`.

* doc/emacs/package.texi (Specifying Package Sources): List the
accepted keys in a new subsection of Fetching Package Sources.

* lisp/emacs-lisp/package-vc.el (package-vc-selected-packages):
Mention the `:doc` key.  Add the `:doc` key to the Customize form,
mention the new Info node, correct "TexInfo" to "Texinfo", avoid
Git-specific terms for the description of `:branch`, mention guessing
`:vc-backend` based on the URL.

17 months ago; vc-checkout: Wrap var lookup in 'bound-and-true-p'
Dmitry Gutov [Tue, 11 Apr 2023 23:03:14 +0000 (02:03 +0300)]
; vc-checkout: Wrap var lookup in 'bound-and-true-p'

17 months agovc-checkout: Try to use the vc-dir's backend first
Dmitry Gutov [Tue, 11 Apr 2023 19:59:45 +0000 (22:59 +0300)]
vc-checkout: Try to use the vc-dir's backend first

* lisp/vc/vc.el (vc-checkout): Try to use the vc-dir's backend
before looking for the file's one.  The latter doesn't work when
the file doesn't exist on disk yet (bug#62674).

17 months ago; Fix wallpaper-tests on XFCE
Eli Zaretskii [Tue, 11 Apr 2023 14:47:48 +0000 (17:47 +0300)]
; Fix wallpaper-tests on XFCE

* test/lisp/image/wallpaper-tests.el
(wallpaper--find-command-args/return-list): Account for
command-args being a function.  (Bug#62673)

17 months agoImprove documentation related to 'ispell-complete-word'
Eli Zaretskii [Tue, 11 Apr 2023 13:24:13 +0000 (16:24 +0300)]
Improve documentation related to 'ispell-complete-word'

* lisp/textmodes/ispell.el (ispell-alternate-dictionary)
(ispell-complete-word-dict, ispell-complete-word): Doc fixes.
(Bug#62775)