Manuel Giraud
210b98bc99
bug#72241: 31.0.50; [PATCH] Use a dedicated buffer for `doc-view-open-text'
...
Here is an updated version of this patch. WDYT?
From 6e32534012cafeda1d7e67aab23a8206bc887c9f Mon Sep 17 00:00:00 2001
From: Manuel Giraud <manuel@ledu-giraud.fr>
Date: Sun, 21 Jul 2024 18:52:52 +0200
Subject: [PATCH] Use a dedicated buffer for `doc-view-open-text'
* lisp/doc-view.el (doc-view-open-text): Create a new "text
contents" buffer and switch to it.
(doc-view-toggle-display): Switch back to the document buffer
and kill the "text contents" one.
* etc/NEWS: Mention the change.
2024-07-25 08:14:00 +02:00
Stefan Kangas
2f5af5cab3
; * etc/NEWS: Fix header level.
2024-07-24 23:57:52 +02:00
Stefan Kangas
0ae70433ea
Delete defgroup "wp" obsolete since Emacs 26
...
* lisp/cus-edit.el (wp): Delete defgroup obsolete since Emacs 26.
(text): Don't inherit obsolete customization group 'wp'.
* lisp/finder.el (finder-known-keywords): Delete 'wp' keyword.
2024-07-24 23:53:13 +02:00
Stefan Kangas
a6a4ad13e4
(error): Remove support for old calling convention
...
* lisp/subr.el (error): Remove support for the Emacs 22 calling
convention '(error &rest args)'.
2024-07-24 23:41:39 +02:00
Andrea Corallo
baf9f1210a
Add some basic checking for function type declarations
...
* lisp/emacs-lisp/byte-run.el (byte-run--anonymize-arg-list): New function.
(byte-run--set-function-type): Add some basic checking for
the function type being declared.
2024-07-24 19:20:11 +02:00
Andrea Corallo
df25bd12fc
Merge from savannah/emacs-30
...
976416bebe Fix some function type declaration
23549d7175 * src/image.c (gui_put_x_image): Avoid memory leak.
cb633820c1 ; * doc/misc/use-package.texi (Getting Started): Fix word...
2024-07-24 15:49:23 +02:00
Michael Albinus
d458664e89
Adapt Tramp tests
...
* test/lisp/net/tramp-archive-tests.el (ert-resource-directory-format)
(ert-resource-directory-trim-left-regexp)
(ert-resource-directory-trim-right-regexp, ert-resource-directory)
(ert-resource-file): Don't define.
(tramp-archive--test-emacs28-p): Remove.
(top): Remove unneeded skips. Use original objects instead of
their `tramp-compat-' counterparts when possible.
* test/lisp/net/tramp-tests.el (seq): Don't require.
(lock-file-name-transforms, process-file-return-signal-string)
(remote-file-name-inhibit-locks, dired-copy-dereference): Don't declare.
(ert-resource-directory-format)
(ert-resource-directory-trim-left-regexp)
(ert-resource-directory-trim-right-regexp, ert-resource-directory)
(ert-resource-file): Don't define.
(tramp--test-emacs28-p): Remove.
(top): Remove unneeded skips. Use original objects instead of
their `tramp-compat-' counterparts when possible.
2024-07-24 15:27:58 +02:00
Michael Albinus
c4e8112f98
Remove Emacs 27 compatibility from Tramp
...
* doc/misc/tramp.texi (Frequently Asked Questions):
Adapt supported Emacs versions.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.8.0-pre".
* lisp/net/tramp-compat.el (tramp-compat-file-modes)
(tramp-compat-set-file-modes, tramp-compat-set-file-times)
(tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes)
(tramp-compat-directory-empty-p, tramp-compat-null-device)
(tramp-compat-string-replace, tramp-compat-string-search)
(tramp-compat-make-lock-file-name)
(tramp-compat-file-name-concat)
(tramp-compat-replace-regexp-in-region, tramp-compat-length<)
(tramp-compat-length>, tramp-compat-length=)
(tramp-compat-always): Remove.
* lisp/net/tramp-adb.el:
* lisp/net/tramp-androidsu.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-cache.el:
* lisp/net/tramp-cmds.el:
* lisp/net/tramp-compat.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-message.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sshfs.el:
* lisp/net/tramp-sudoedit.el:
* lisp/net/tramp.el: Use original objects instead of their
`tramp-compat-' counterparts when possible.
2024-07-24 15:25:55 +02:00
Andrea Corallo
976416bebe
Fix some function type declaration
...
* lisp/window.el (get-lru-window, get-largest-window): Fix
function type declaration.
* lisp/subr.el (error): Likewise.
2024-07-24 15:19:13 +02:00
Po Lu
23549d7175
* src/image.c (gui_put_x_image): Avoid memory leak.
2024-07-24 20:13:01 +08:00
Eli Zaretskii
cb633820c1
; * doc/misc/use-package.texi (Getting Started): Fix wording.
2024-07-24 14:01:01 +03:00
Po Lu
135ce96f1e
Merge from savannah/emacs-30
...
3a76354e09 Adapt last change to non-NS systems
2024-07-24 12:01:02 +08:00
Po Lu
3a76354e09
Adapt last change to non-NS systems
...
* src/image.c (xpm_load_image): Also check whether mask_img is
NULL.
2024-07-24 11:59:53 +08:00
Po Lu
e673492f74
Merge from savannah/emacs-30
...
b5543c54bf Fix NULL pointer dereferences in xpm_load_image
2024-07-24 11:58:29 +08:00
Po Lu
b5543c54bf
Fix NULL pointer dereferences in xpm_load_image
...
* src/image.c (x_destroy_x_image): Correct test condition.
(xpm_load_image): Do not release image data if it is still to be
created.
2024-07-24 11:57:28 +08:00
Po Lu
db40b65825
Merge from savannah/emacs-30
...
1ee8579eb7 Fix bug#72255
05629d3af0 Delete redundant "a.k.a." in use-package.texi
c7609464f7 Document (use-package 'emacs) declarations
de9f9add13 Improve 'emacs-news-view-mode' menus and bindings
7588e1f8a9 ; * src/xdisp.c (Fformat_mode_line): Doc fix.
2074e94c3b Fix disappearing bar cursor on Hebrew text (bug#72230)
1aaadc8aec Fix DocView with DVI files
c1382257aa ; Fix typo in use-package.texi
caf7426f0c FIx spurious fontification of variable in Java Mode
9b426e15ab Correctly typeset nil and t in texinfo
f050b9c503 Fix Tramp IPv6 handling in tests
46b192c04b Update to Org 9.7.8-5-gfdf0e0
87f41b937b Fix Ftreesit_parser_create
2024-07-24 11:41:58 +08:00
Po Lu
a793305d16
; Merge from savannah/emacs-30
...
The following commit was skipped:
ed38fcc017 Fix segfault when deleting tree-sitter query (bug#72238)
2024-07-24 11:41:58 +08:00
Po Lu
6d22bd4d3a
Merge from savannah/emacs-30
...
c66bda1a19 Improve treesit-node-child-by-field-name docstring
85773ab977 Minor copyedits in tree-sitter starting guide
2dacec1609 Update tag for prebuilt tree-sitter grammars
68615a3866 Fix punctuation and doc style in treesit.c
00adee897a ; Fix punctuation in docs
ab29b28d4b Fix DocView with PostScript files
2024-07-24 11:41:58 +08:00
Po Lu
1ee8579eb7
Fix bug#72255
...
* src/image.c (struct image_type): Minor grammatical
corrections.
(image_destroy_x_image): [HAVE_NS]: Do not release
Emacs_Pix_Containers, which are identical to Emacs_Pixmaps and
consequently always released with the `struct image'.
(bug#72255)
2024-07-24 11:39:07 +08:00
Stefan Kangas
05629d3af0
Delete redundant "a.k.a." in use-package.texi
...
* doc/misc/use-package.texi (Getting Started): Delete redundant
acronym "a.k.a.". (Bug#66350)
2024-07-23 23:32:56 +02:00
Juri Linkov
19a18e487b
* lisp/isearch.el: Exit Isearch after deleting the frame (bug#41338).
...
(isearch-mode): Add 'isearch-done' to 'delete-frame-functions'.
(isearch-done): Remove 'isearch-done' from 'delete-frame-functions'.
2024-07-23 21:00:23 +03:00
Juri Linkov
6760cedc5e
* lisp/isearch.el: Preserve original value of overriding-terminal-local-map.
...
(isearch--saved-local-map): New variable (bug#72229).
(isearch-mode): Set isearch--saved-local-map to
overriding-terminal-local-map.
(isearch-done): Set overriding-terminal-local-map back to
isearch--saved-local-map.
(isearch-mouse-2): Let-bind overriding-terminal-local-map to
isearch--saved-local-map.
(isearch-done): Move comment intended to be docstring to docstring.
2024-07-23 20:51:43 +03:00
Stefan Kangas
c7609464f7
Document (use-package 'emacs) declarations
...
* doc/misc/use-package.texi (The @code{emacs} package): New
node. (Bug#66350)
2024-07-23 15:16:27 +02:00
Po Lu
f521235656
Better reproduce mouse event coalescence during touch event translation
...
* lisp/touch-screen.el (touch-screen-handle-touch): Save the
confines of the current mouse glyph before initiating simple
translation.
2024-07-23 20:44:06 +08:00
Robert Pluim
de9f9add13
Improve 'emacs-news-view-mode' menus and bindings
...
* lisp/textmodes/emacs-news-mode.el (emacs-news-mode-map): Move
non-editing commands from here...
(emacs-news-common-map): ... to here.
(emacs-news-view-mode): Remove hard-coded 'special-mode' bindings.
(emacs-news-view-mode-map): Inherit from 'special-mode-map' and
'emacs-news-common-map' here instead.
(emacs-news-mode--menu-common-1): New defconst for menu items common to
'news-mode' and 'news-view-mode'.
(emacs-news-mode--menu-common-2): Second new defconst for common items.
(emacs-news-mode-menu): Use them.
(emacs-news-view-mode-menu): New menu, which omits the buffer editing
commands.
This builds on the fix for Bug#72080.
2024-07-23 13:49:40 +02:00
Eli Zaretskii
7588e1f8a9
; * src/xdisp.c (Fformat_mode_line): Doc fix.
2024-07-23 14:07:30 +03:00
Visuwesh
cc6324d9dc
Don't highlight matches in dired query-replace commands
...
* lisp/dired-aux.el (dired-do-query-replace-regexp)
(dired-do-replace-regexp-as-diff)
(dired-do-find-regexp-and-replace): Turn off lazy highlighting
when reading the regexp from the user to avoid highlighting
regexp matches in the dired buffer. (bug#72147)
2024-07-23 09:37:39 +03:00
Gerd Möllmann
2074e94c3b
Fix disappearing bar cursor on Hebrew text (bug#72230)
...
* src/nsterm.m (ns_draw_window_cursor): Compute the correct bar cursor
rectangle for R2L before setting the clipping.
2024-07-23 08:15:09 +02:00
Stefan Kangas
1519c758a5
* src/comp.c (obj_to_reloc): Use eassume.
2024-07-23 04:07:39 +02:00
Manuel Giraud
1aaadc8aec
Fix DocView with DVI files
...
* lisp/doc-view.el (doc-view-pdf/ps->png): Use
`doc-view-pdf->png-converter-function' for DVI files, too, since they
are converted to PDF earlier.
2024-07-22 20:44:46 +02:00
Stefan Kangas
c1382257aa
; Fix typo in use-package.texi
...
* doc/misc/use-package.texi (Getting Started): Fix typo.
Problem reported by GitHub user Paul Jensen (psnj) in:
https://github.com/jwiegley/use-package/pull/1070/
2024-07-22 18:07:29 +02:00
Alan Mackenzie
caf7426f0c
FIx spurious fontification of variable in Java Mode
...
This fixes bug#72126.
* lisp/progmodes/cc-engine.el (c-forward-<>-arglist): Remove
tentative type identifier from c-record-type-identifiers should
it turn out not to be a type.
2024-07-22 12:24:43 +00:00
Stefan Kangas
d995429e7b
Use SBYTES instead of strlen in treesit.c
...
* src/treesit.c (treesit_ensure_query_compiled)
(Ftreesit_node_child_by_field_name, treesit_initialize_query):
Use SBYTES instead of strlen.
2024-07-22 12:21:25 +02:00
Stefan Kangas
9b426e15ab
Correctly typeset nil and t in texinfo
...
* doc/emacs/package.texi (Fetching Package Sources):
* doc/lispref/display.texi (Image Descriptors):
* doc/lispref/windows.texi (Buffer Display Action Alists):
* doc/misc/gnus-faq.texi (FAQ 5-4): Correctly typeset nil and t.
2024-07-22 10:14:51 +02:00
Michael Albinus
f050b9c503
Fix Tramp IPv6 handling in tests
...
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Improve message.
* lisp/net/tramp-integration.el (shortdoc): Add further examples of
`file-remote-p'.
* lisp/net/tramp.el (tramp-handle-file-remote-p): Extend docstring.
* test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test02-file-name-dissect-simplified)
(tramp-test02-file-name-dissect-separate): Extend tests.
(tramp-test06-directory-file-name)
(tramp-test26-file-name-completion)
(tramp-test26-interactive-file-name-completion): Better handling
of IPv6 hosts.
2024-07-22 09:56:52 +02:00
Kyle Meyer
46b192c04b
Update to Org 9.7.8-5-gfdf0e0
2024-07-21 23:01:45 -04:00
Po Lu
da0165a01e
Prohibit unbinding of built-in variables
...
* src/data.c (set_internal): Signal error if a BLV with a
redirect or a forwarded symbol is being unbound.
* test/src/data-tests.el (binding-test-makunbound-built-in): New
test.
2024-07-22 09:56:08 +08:00
Yuan Fu
87f41b937b
Fix Ftreesit_parser_create
...
* src/treesit.c (Ftreesit_parser_create): Use the buffer given by the
caller rather than the current buffer.
2024-07-21 17:21:58 -07:00
Yuan Fu
ed38fcc017
Fix segfault when deleting tree-sitter query (bug#72238)
...
* src/treesit.c (treesit_delete_query): Only delete query and cursor
when they are non-NULL.
2024-07-21 17:14:08 -07:00
Yuan Fu
4868a17396
Fix segfault when deleting tree-sitter query (bug#72238)
...
* src/treesit.c (treesit_delete_query): Only delete query and cursor
when they are non-NULL.
2024-07-21 16:51:59 -07:00
Stefan Kangas
c66bda1a19
Improve treesit-node-child-by-field-name docstring
...
* src/treesit.c (Ftreesit_node_child_by_field_name): Improve docstring.
2024-07-21 22:21:11 +02:00
Stefan Kangas
85773ab977
Minor copyedits in tree-sitter starting guide
...
* admin/notes/tree-sitter/starter-guide: Minor copyedits.
Reflow some paragraphs.
2024-07-21 22:21:11 +02:00
Stefan Kangas
2dacec1609
Update tag for prebuilt tree-sitter grammars
...
* admin/notes/tree-sitter/starter-guide: Update tag for prebuilt
tree-sitter grammars to point to 2.4.
2024-07-21 21:07:19 +02:00
Stefan Kangas
68615a3866
Fix punctuation and doc style in treesit.c
...
* src/treesit.c (Ftreesit_parser_included_ranges)
(Ftreesit_query_capture, treesit_traverse_sibling_helper)
(treesit_traverse_match_predicate): Fix punctiation and documentation
style in comments and docstrings.
2024-07-21 17:47:41 +02:00
Stefan Kangas
00adee897a
; Fix punctuation in docs
2024-07-21 17:35:13 +02:00
Theodor Thornhill
ccb856189f
Add link to commit compatibility function handles
...
* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--indent-compatibility-b893426): Add link to GitHub.
2024-07-21 14:56:52 +02:00
Theodor Thornhill
bb0f0c04a3
Improve one test (bug#71998)
...
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts (Name):
Add pre-indent state.
2024-07-21 14:55:06 +02:00
Theodor Thornhill
810be9cf86
; Minor whitespace fix
...
*
lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings):
Tabs to spaces.
2024-07-21 14:54:12 +02:00
Theodor Thornhill
7a059ed88a
Signal error on wrong typescript dialect
...
*
lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode-wrong-dialect-error):
New error.
*
lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--check-dialect):
Helper function.
*
lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--indent-rules,
tsx-ts-mode--font-lock-compatibility-bb1f97b,
tsx-ts-mode--font-lock-compatibility-function-expression,
tsx-ts-mode--font-lock-compatibility-function-expression,
typescript-ts-mode--font-lock-settings): Use the new helper.
2024-07-21 13:55:49 +02:00
Theodor Thornhill
cdca1ba2e9
; Fix typo
...
* lisp/treesit.el (treesit-ready-p): Minor typo fix.
2024-07-21 12:51:42 +02:00