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

174205 Commits

Author SHA1 Message Date
Andrea Corallo
9a04b99b3d ; * src/data.c (Fsubrp): Improve docstring. 2024-08-15 10:54:26 +02:00
Eli Zaretskii
4f3e8c3b4e Improve documentation of ERT
* doc/misc/ert.texi (Running Tests Interactively)
(Test Selectors):
* lisp/emacs-lisp/ert.el (ert-select-tests)
(ert-run-tests-interactively, ert-run-tests-batch): Improve and
clarify the documentation of the main ERT functions.
2024-08-15 11:30:48 +03:00
Visuwesh
ed8904937e Disambiguate minor-mode variable in its function docstring
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring)
(easy-mmode--mode-docstring): Add "the variable" before the
GETTER if it is a symbol to properly link to minor-mode variable
in the *Help* buffer in the common case.  (bug#72405)
2024-08-15 10:37:36 +03:00
Arash Esbati
505139e0ba Fix project-dired keybinding in manual
* doc/emacs/maintaining.texi (Project File Commands): Fix the
keybinding for `project-dired'.  (Bug#72581)
2024-08-14 19:16:37 +02:00
Eli Zaretskii
9bedb957be Improve documentation of time-parsing functions
* doc/lispref/os.texi (Time Parsing):
* lisp/calendar/iso8601.el (iso8601-parse):
* lisp/calendar/parse-time.el (parse-time-string): Document that
these functions don't care about the distinction between local
time and UTC.  (Bug#72570)
2024-08-14 11:35:48 +03:00
Michael Albinus
7c588a0065 ; Backport gitlab-ci.yml from master (don't merge)
* test/infra/gitlab-ci.yml (.job-template): Remove cache:policy.
(.build-template, .test-template): Add job specific cache:policy.
(.tree-sitter-template): Adapt changes.
2024-08-14 09:47:59 +02:00
Dmitry Gutov
4589f51c21 (project-find-regexp): Fix the temporary value of DEFAULT-DIRECTORY
* lisp/progmodes/project.el (project-find-regexp): Make sure the
assigned value of DEFAULT-DIRECTORY ends with a slash.
read-directory-name returns the name without it in certain cases.
2024-08-13 15:14:18 +03:00
Michael Albinus
616a93d185 Tag test in typescript-ts-mode-tests.el as unstable
* test/lisp/progmodes/typescript-ts-mode-tests.el
(typescript-ts-mode-test-indentation): Tag it as :unstable on emba.
2024-08-13 09:19:00 +02:00
Eli Zaretskii
e9e7e3908a ; * lisp/files.el (require-with-check): Fix last change. 2024-08-13 05:27:08 +03:00
Eli Zaretskii
b585826a65 ; * lisp/files.el (require-with-check): Fix doc string and error text. 2024-08-12 21:38:46 +03:00
Gerd Möllmann
6d55e94996 macOS: Wrong frame rectangle after wake (bug#71912)
* src/nsterm.m ([EmacsView windowDidBecomeKey]):
Call adjustEmacsFrameRect.
2024-08-12 05:11:00 +02:00
Po Lu
c49724b964 ; Grammar fixes
* doc/misc/erc.texi (Connecting):

* lisp/erc/erc.el (erc-compute-server, erc-compute-nick)
(erc-compute-full-name, erc-compute-port): Replace "a number of
increasingly more" with an alternative more grammatical.
2024-08-12 08:10:36 +08:00
Pip Cet
5c3d340e00 Fix format 2 cmap handling in sfnt.c
This code is untested as no font with a format 2 cmap could be found.

* src/sfnt.c (sfnt_lookup_glyph_2): Fix typos.  Assume single-byte
encodings use character codes 0, 1, ..., 255 rather than 0, 256, ...,
65280.
2024-08-11 10:22:46 +00:00
Pip Cet
8e925d582a Fix coordinate transformations in sfnt.c
Backport.

* src/sfnt.c (sfnt_transform_coordinates):
(sfnt_transform_f26dot6): Fix calculation of transformed coordinates in
the very rare case of arbitrary transformation matrices.
2024-08-11 10:22:19 +00:00
Kazuhiro Ito
4dd953d3cc * lisp/epg.el (epg--start): Don't convert EOL on encoding (bug#72542). 2024-08-10 10:54:18 +03:00
Thomas Fitzsimmons
5cace09ed0 Add PROBLEMS entry for bug#72517
* etc/PROBLEMS (X runtime problems): Document ssh -X session
hang-on-exit after deletion of remote emacsclient -c frame.
(bug#72517)

(cherry picked from commit 9f03300c5c)
2024-08-09 09:03:01 +03:00
Eli Zaretskii
a0406f7c12 ; Improve documentation of 'add-to-list'
* doc/lispref/lists.texi (List Variables):
* lisp/subr.el (add-to-list): Add/clarify caveats of using
'add-to-list'.
2024-08-09 08:45:30 +03:00
Gerd Möllmann
bd6dfb97ff NS: Fix scroll-bar setting code (bug#72331)
* src/nsterm.m (ns_set_vertical_scroll_bar): Use
WINDOW_SCROLL_AREA_WIDTH instead of NS_SCROLL_BAR_WIDTH.
(ns_set_horizontal_scroll_bar): Use WINDOW_SCROLL_AREA_HEIGHT
instead of NS_SCROLL_BAR_HEIGHT. Clear area differently if vertical
scroll bars are present.
* src/nsterm.h (NS_SCROLL_BAR_WIDTH, NS_SCROLL_BAR_HEIGHT): Remove.
2024-08-09 07:21:28 +02:00
Po Lu
16462b1a62 Register for more Intents actions on Android
* java/AndroidManifest.xml.in <EmacsOpenActivity>: Register
for SEND Intents with mailto URIs.

* java/org/gnu/emacs/EmacsOpenActivity.java (onCreate): Use
Intent constants rather than string literals.
2024-08-09 10:11:51 +08:00
Paul W. Rankin
a1b8c2610a * lisp/help-macro.el: Add 'help-for-help-use-variable-pitch' option.
This makes 'variable-pitch-mode' optional, by default ON (to
preserve previous behavior), in Help buffers.  (Bug#72521)
2024-08-08 13:30:55 +03:00
Eli Zaretskii
a577eccdbb ; * doc/lispref/strings.texi (String Conversion): Fix last change. 2024-08-08 11:41:52 +03:00
Ulrich Müller
d22e52375a Remove manual entry for string-to-int
* doc/lispref/strings.texi (String Conversion): Remove mention of
'string-to-int' which was dropped in Emacs 26.  (Bug#72520)
2024-08-08 08:07:31 +02:00
Spencer Baugh
341e5795d5 Support minibuffer-visible-completions in completing-read-multiple
All that's required is to add minibuffer-visible-completions-map on
top of the completing-read-multiple map; this is the same thing that
minibuffer-visible-completions does in completing-read-default.

* lisp/emacs-lisp/crm.el (completing-read-multiple): Add
minibuffer-visible-completions-map (bug#69189)
2024-08-07 19:52:36 +03:00
Juri Linkov
3e30c779a7 * lisp/imenu.el (imenu-flatten): Fix doc about annotation/group limitations. 2024-08-07 19:44:43 +03:00
Randy Taylor
09d2125a7f Fix cmake-ts-mode number fontification (Bug#72228)
* lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--constants):
Remove "1" and "0".
(cmake-ts-mode--font-lock-settings): Match negative numbers.
2024-08-07 17:35:39 +02:00
Yuan Fu
cd9a215ef0
; Minor fix in c-ts-common--fill-block-comment
* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Checking for end-mask done is
equivalent to checking end-marker, so the original code doesn't have a
bug.
2024-08-06 22:00:01 -07:00
Po Lu
679f7ccc49 Prevent accesses to /content files without a GUI connection
* src/androidvfs.c (android_content_name): Hide all
subdirectories when `android_init_gui' is not set.
2024-08-07 09:17:57 +08:00
Michael Albinus
f0a7eec5a7 * lisp/net/tramp-integration.el (shortdoc): Use `tramp--with-startup'. 2024-08-06 20:25:20 +02:00
Eli Zaretskii
fb642d9cf5 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-08-06 21:20:52 +03:00
Eli Zaretskii
f1e37ae423 Avoid crashes in very large buffers with long lines
* src/xdisp.c (get_large_narrowing_begv, get_large_narrowing_zv)
(get_medium_narrowing_begv, get_medium_narrowing_zv): Use
'ptrdiff_t' instead of 'int', to prevent integer overflow in
large buffers.  (Bug#72497)
2024-08-06 21:19:49 +03:00
Ulrich Müller
4dc9e99349 Update description of string comparison functions
* doc/lispref/strings.texi (Text Comparison): Swap descriptions	of
'string-equal' (the function) and 'string=' (its alias).  Same for
'string-lessp' and 'string<'.  Document 'string>'.  (Bug#72486)
* doc/lispref/sequences.texi (Sequence Functions): Update cross
reference to 'string-lessp'.
2024-08-06 18:04:46 +02:00
Michael Albinus
3817355aed Add sanity check when adding Tramp functions to shortdoc
* lisp/net/tramp-integration.el (shortdoc): Check, that Tramp
isn't disabled.
2024-08-05 20:19:30 +02:00
F. Jason Park
1bbb322017 ; * lisp/erc/erc-fill.el (erc-fill-wrap-mode): Doc fix. 2024-08-04 22:27:40 -07:00
Damien Cassou
3f6e7e1da6
js-ts-mode: Make jsdoc's "description" block a comment (bug#72461)
* lisp/progmodes/js.el (js-ts-mode): Add "description" to
`c-ts-common--comment-regexp'.
2024-08-04 20:18:48 -07:00
Po Lu
1c7e00f4f6 Also condition cjk-misc font-spec on Android
* lisp/international/fontset.el (setup-default-fontset)
<cjk-misc>: Don't search for matching scripts elsewhere than on
Android.
2024-08-05 09:34:17 +08:00
Björn Bidar
b89d65df5f ; * etc/PROBLEMS: How to install sources on SUSE Linux (bug#72465). 2024-08-04 19:23:40 +03:00
Eli Zaretskii
729b17c202 ; * src/lread.c (Fload): Add comment. (Bug#72433) 2024-08-04 11:58:00 +03:00
Eli Zaretskii
bfb1aee998 Fix ':defer nil' in 'use-package'
* lisp/use-package/use-package-core.el
(use-package-normalize-keywords): Use 'plist-get' instead of
'plist-member'.  (Bug#72414)
2024-08-04 11:52:12 +03:00
Manuel Giraud
d787817076 Document unsupported color Emoji on OpenBSD
Bug#72268

* etc/PROBLEMS (Runtime problems related to font handling):
Document unsupported color Emoji on OpenBSD.
2024-08-04 11:18:30 +03:00
Stephen Berman
db1f749db5 Fix regressions in Customize caused by 'widget-unselected' face
* lisp/wid-edit.el (widget-checklist-add-item): Don't call
'widget-specify-selected'.  (Bug#72404)  (Bug#72156)
2024-08-04 10:47:46 +03:00
David Ponce
f94d58008e Avoid inserting extra space in SVG data
* lisp/svg.el (svg-print): Remove useless extra space from
the XML representation of child node.  (Bug#72198)
2024-08-04 10:47:16 +03:00
Damien Cassou
292fcd2009
Fix c-ts-common filling function (bug#71760)
* lisp/progmodes/c-ts-common.el (c-ts-common--fill-block-comment): If
masking hasn't been done, don't unmask.
2024-08-03 20:03:32 -07:00
Mattias Engdegård
e50d597f45 Fix missing type checks before specbind
This fixes bugs that crashed Emacs when the Lisp interpreter was fed
bad code.

* src/eval.c (FletX, Flet, internal_lisp_condition_case)
(funcall_lambda): Hoist symbol-with-pos elimination and type checks to a
dominating position for efficiency.  This also plugs at least two typing
holes. (Mea culpa.)
* test/src/eval-tests.el (eval-bad-specbind): New regression test.
2024-08-03 19:32:23 +02:00
Po Lu
8d073823c6 Revert "Remove redundant byte-swapping boundary"
This reverts commit daefd6771a.

* src/sfnt.c (sfnt_read_OS_2_table): Restore realignment after
s_family_class, as it occupies byte 32, not 34.  Reported by Pip
Cet <pipcet@protonmail.com>.
2024-08-03 17:34:32 +08:00
Po Lu
c25687e860 Fix various typos reported by Pip Cet
* src/ftfont.c (get_adstyle_property):

* src/sfntfont.c (sfntfont_list_1): Correct typos.  Reported by
Pip Cet <pipcet@protonmail.com>.
2024-08-03 17:09:49 +08:00
Gerd Möllmann
e539a5c7d7 NS: Fix placement of candidate window (bug#72422)
* src/nsterm.m ([EmacsView firstRectForCharacterRange:actualRange:]):
Call method of NSTextInput.
2024-08-03 10:29:24 +02:00
Po Lu
94fe5894d9 ; * lisp/touch-screen.el: Correct commentary. 2024-08-03 08:14:59 +08:00
Eli Zaretskii
c64d653836 ; * lisp/treesit.el (treesit-ready-p): Fix typo (bug#72411). 2024-08-01 18:25:15 +03:00
Eli Zaretskii
ef5466c267 Avoid aborts when buffer is modified during its redisplay
* src/xdisp.c (redisplay_window): Restore point from saved byte
position only if the buffer was not changed meanwhile.
(Bug#72165)
2024-08-01 14:01:17 +03:00
Yuan Fu
cb421286d2
Fix c++-ts-mode indentation for templace (bug#72263)
* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Add rule for template.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: Add test.
2024-07-31 23:46:28 -07:00