1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-19 12:20:17 -08:00
Commit graph

87020 commits

Author SHA1 Message Date
Lars Ingebrigtsen
b51a06f24d Fix the `dictionary' parent defgroup
* lisp/net/dictionary.el (dictionary): The `hypermedia' group
doesn't exist, so put it in the same parent group that `ispell'
uses (bug#58178).
2022-09-30 15:12:21 +02:00
Jose A. Ortega Ruiz
b23e062d74 docview: fixes for imenu generation
* lisp/doc-view.el: (doc-view--pdf-outline):
(doc-view-imenu-index):
(doc-view-imenu-setup): Fix multiple empty index generation for
documents without an outline, caching the result (see discussion in
bug#58103).
(doc-view--imenu-subtree): Fix for nested imenus (bug introduced in
commit fe002cc8ce) (bug#58180).
2022-09-30 15:08:40 +02:00
Lars Ingebrigtsen
0332142e8e Fix rename-visited-file when renaming to a directory name
* lisp/files.el (rename-visited-file): Allow renaming to a
directory file name (bug#58182).
2022-09-30 15:07:31 +02:00
Lars Ingebrigtsen
a42dd0c87d Improve message-sendmail-f-is-evil documentation
* lisp/gnus/message.el (message-sendmail-f-is-evil): Move some of
the explanation here.

* lisp/mail/feedmail.el (feedmail-sendmail-f-doesnt-sell-me-out):
Refer to message-sendmail-f-is-evil (bug#58185).
2022-09-30 14:49:17 +02:00
Eli Zaretskii
b7a3770ecc ; Fix documentation of Toto language environment
* lisp/leim/quail/indian.el ("toto"):
* lisp/language/indian.el ("Toto"): Clarify doc strings.
2022-09-30 09:21:43 +03:00
समीर सिंह Sameer Singh
681cf21ddc Add support for the Toto script (bug#58181)
* lisp/language/indian.el ("Toto"): New language environment.
Add input method.
* lisp/international/fontset.el (script-representative-chars):
Support Toto.
* lisp/leim/quail/indian.el ("toto"): New input method.

* etc/NEWS: Announce the new language environment.
2022-09-30 09:15:56 +03:00
Stefan Kangas
d5cccca945 Merge from origin/emacs-28
64e8cc14b5 ; * lisp/image.el (create-image): Fix last change in doc s...
f3e3632394 Update some Gnus documentation in the Emacs manual
2022-09-30 06:30:41 +02:00
Eli Zaretskii
a577b12d64 ; * lisp/image/wallpaper.el (wallpaper--x-monitor-name): Doc fix. 2022-09-29 20:03:51 +03:00
Stefan Kangas
696c528379 Fix loading wallpaper.el on MS-Windows
* lisp/image/wallpaper.el (wallpaper--find-command)
(wallpaper--find-command-args): Avoid backtrace when
'wallpaper--find-setter' returns nil, e.g. on MS-Windows.
(Bug#58167)
2022-09-29 18:44:03 +02:00
Alan Mackenzie
a18918df0b CC Mode: Refactor c-forward-delarator and callers
c-forward-declarator now moves over a complete declarator, including any
arglist expression, but possibly not including certain C++20 constructs.

* lisp/progmodes/cc-engine.el (c-forward-decl-arglist): New function,
extracted from c-do-declarators.
(c-forward-declarator): Extend the result list by one element, denoting
whether the function parsed an argument list.  Insert special handling for a
C++ operator<op> construct.  If there is a parenthesis expression, and it is
an argument list, move forward over it.
(c-do-declarators): Append an optional parameter, cdd-anon-accepted
instructing the function to handle declarators without identifiers.  Extract
c-forward-decl-arglist.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): New &optional
parameter accept-anon, as above.  Analyze and use the identifier location
returned by c-do-declarators, rather than using c-last-identifier-range.
(c-font-lock-single-decl): Determine accept-anon from the context, passing it
as argument to c-font-lock-declarators.

* lisp/progmodes/cc-langs.el (c-opt-identifier-prefix-key): Make a
c-lang-defvar out of this existing c-lang-defconst.

* lisp/progmodes/cc-mode.el (c-fl-decl-end): Adapt for the new
c-forward-declarator which now moves over arglists.  Amend better to handle
certain syntactically invalid constructs in C++.
2022-09-29 15:22:42 +00:00
Peter Münster
21fc2b04e9 New command image-dired-do-flagged-delete
* lisp/image/image-dired.el (image-dired-delete-marked): Remove command,
because it was too buggy.
(image-dired-do-flagged-delete): New command that does almost the same
as the above removed command but with flagged images.
(image-dired-thumbnail-mode-map): Bind "x" to
'image-dired-do-flagged-delete'.
2022-09-29 16:32:49 +02:00
Peter Münster
1457c231b5 image-dired-delete-char: Don't disturb formatting
* lisp/image/image-dired.el (image-dired-delete-char): Don't disturb
the expected formatting of the thumbnail buffer (always one
space/newline after a thumbnail).
2022-09-29 16:31:03 +02:00
Stefan Kangas
2c331dbb4e wallpaper-set: Get monitor name on non-graphical display
* lisp/image/wallpaper.el
(wallpaper--format-arg): Break out function from here...
(wallpaper--x-monitor-name): ...to here.  Try to get the monitor name
non-graphical displays, and prompt if that doesn't work.
(wallpaper-default-set-function): Improve debugging output.
Ref. https://lists.gnu.org/r/emacs-devel/2022-09/msg01910.html
2022-09-29 16:10:27 +02:00
Stefan Kangas
b71241742c Prompt for wallpaper width/height only when needed
* lisp/image/wallpaper.el (wallpaper--format-arg): Don't prompt for
width and height unless the values are actually used.
2022-09-29 15:39:58 +02:00
Stefan Kangas
5281946fbf Make format-spec accept function substitutions
* lisp/format-spec.el (format-spec): Accept a function producing the
substitution for a character.
* doc/lispref/strings.texi (Custom Format Strings): Document the
above change.
* test/lisp/format-spec-tests.el (format-spec/function): New test.
Ref. https://lists.gnu.org/r/emacs-devel/2022-09/msg01875.html
2022-09-29 15:39:27 +02:00
Eli Zaretskii
64e8cc14b5 ; * lisp/image.el (create-image): Fix last change in doc string. 2022-09-29 16:27:59 +03:00
Stefan Kangas
423bdd5f7f ; Fix typos (prefer American spelling) 2022-09-29 15:20:07 +02:00
समीर सिंह Sameer Singh
0f94e62d7e Add support for the Wancho script (bug#58159)
* lisp/language/indian.el ("Wancho"): New language environment.
Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Wancho.
* lisp/leim/quail/indian.el ("wancho"): New input method.

* etc/HELLO: Add a Wancho greeting.
* etc/NEWS: Announce the new language environment.
2022-09-29 16:12:13 +03:00
Stefan Kangas
4577542eea Remove Emacs 21 compat code for gnus-user-agent
* lisp/gnus/gnus.el (gnus-user-agent): No longer convert old
(< 2005-01-10) symbol type values.
2022-09-29 15:02:32 +02:00
Lars Ingebrigtsen
0e72d4793c Tweak while-let definition
* lisp/subr.el (while-let): Use if-let* since we don't need/want
the backwards compat of if-let.
2022-09-29 12:29:36 +02:00
समीर सिंह Sameer Singh
4cb9342a3b Add support for the Mende Kikakui script (bug#58151)
* lisp/language/misc-lang.el ("Mende Kikakui"): New language environment.
Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Mende Kikakui, Indic Siyaq Numbers,
Ottoman Siyaq Numbers.
* lisp/leim/quail/misc-lang.el ("mende-kikakui"): New input method.

* etc/HELLO: Add Mende Kikakui greeting.
* etc/NEWS: Announce the new language environment.
2022-09-29 11:24:46 +03:00
Stefan Kangas
339945c05a Merge from origin/emacs-28
cf38e1c393 Clarify image file search
fc212364ce ; Fix typo.
2022-09-29 06:30:58 +02:00
Eli Zaretskii
cf38e1c393 Clarify image file search
* doc/lispref/display.texi (Defining Images, Image Descriptors):
* lisp/image.el (create-image): Clarify that non-absolute image
files are searched along 'image-load-path'.  (Bug#52931)
2022-09-28 22:03:27 +03:00
Eli Zaretskii
ab5b1cf88e ; Improve doc strings in doc-view.el
* lisp/doc-view.el (doc-view-imenu-title-format)
(doc-view-imenu-flatten): Doc fixes.  (Bug#58131)
2022-09-28 19:00:57 +03:00
Stefan Kangas
7280f3f073 ; Fix typos 2022-09-28 17:34:59 +02:00
समीर सिंह Sameer Singh
2286fbceab Add support for the Adlam script (bug#58111)
* lisp/language/misc-lang.el ("Adlam"): New language environment.
Add composition rules for Adlam. Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars):
Support Adlam.
* lisp/leim/quail/misc-lang.el ("adlam"): New input method.

* etc/HELLO: Add Adlam greeting.
* etc/NEWS: Announce the new language environment.
2022-09-28 15:40:16 +03:00
समीर सिंह Sameer Singh
64c07c01c1 Improve Gurmukhi composition rules (Bug#58098)
* lisp/language/indian.el: Improve composition rules for Gurmukhi.

* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Chess Symbols.
2022-09-28 15:36:26 +03:00
Stefan Kangas
9f32e6dea1 * lisp/files.el (auto-mode-alist): Add entry for ".mailmap". 2022-09-28 14:31:05 +02:00
Stefan Kangas
26ef0f1221 ; image-dired: Fix last change
* test/lisp/image/image-dired-util-tests.el
(image-dired-thumb-name/per-directory):
* lisp/image/image-dired-util.el (image-dired-thumb-name): Fix
last change.
2022-09-28 14:29:11 +02:00
Lars Ingebrigtsen
eac4e34a2c Simplify eww--rescale-images code
* lisp/net/eww.el (eww--rescale-images): Simplify code.
2022-09-28 13:27:05 +02:00
Lars Ingebrigtsen
12f63c18f6 Add new macro 'while-let'
* doc/lispref/control.texi (Conditionals): Document
when-let/if-let/while-let.
* lisp/subr.el (while-let): New macro.
2022-09-28 13:19:08 +02:00
Jose A. Ortega Ruiz
fe002cc8ce docview: new customization options for imenu
* doc/emacs/misc.texi (DocView Navigation):
* lisp/doc-view.el (doc-view-imenu-title-format, doc-view-imenu-flatten):
(doc-view--imenu-subtree): customizable format for imenu entry titles,
and flag to disable nested submenus.
* lisp/doc-view.el (doc-view--pdf-outline): clean up whitespace
markers '\r' and '\t' in imenu item titles (bug#58131).
2022-09-28 13:06:38 +02:00
Lin Sun
ec121e035b package-update would always re-install package
* lisp/emacs-lisp/package.el (package--updateable-packages): fix
version comparison between available packages and archived
packages (bug#58129).
2022-09-28 13:05:26 +02:00
Visuwesh
c2b9e74686 Follow #target links in eww without re-rendering
* lisp/net/eww.el (eww-follow-link): Do a text property search instead
of re-rendering to follow #target links in the same page.  (bug#58118)
(eww-link-keymap): Bind <mouse-2> to eww-follow-link as well.
2022-09-28 12:59:30 +02:00
Stefan Kangas
ca043773db ; Fix debugging image-dired-dired-toggle-marked-thumbs
* lisp/image/image-dired-dired.el
(image-dired-dired-toggle-marked-thumbs): Fix debugging.
2022-09-28 12:36:42 +02:00
Stefan Kangas
6cffaa3b6d image-dired: End thumbnail file names with ".jpg"
* lisp/image/image-dired-util.el (image-dired-thumb-name): Always
end thumbnail name in ".jpg" and simplify naming to just use the
SHA-1 hash.  (Bug#57961)
* test/lisp/image/image-dired-util-tests.el
(image-dired-thumb-name/image-dired): Adjust test for the above
change.
* etc/NEWS: Announce the above change.
2022-09-28 12:36:42 +02:00
Stefan Kangas
adaa2fc90e ; * lisp/image/image-dired.el: Fix typo. 2022-09-27 23:28:28 +02:00
Stefan Kangas
9e0c21ea73 Make image-dired-dired-toggle-marked-thumbs faster
* lisp/image/image-dired-dired.el
(image-dired-dired-toggle-marked-thumbs): Don't show progress, since
it makes things slower.
2022-09-27 23:26:07 +02:00
Lin Sun
a438e95c10 Load compiled "calc-loaddefs", if any
* lisp/calc/calc.el ("calc-loaddefs"): Load the .elc file (if it
exists) (bug#58127).
2022-09-27 23:15:24 +02:00
Stefan Kangas
42290bf823 image-dired: Fix header line when file is missing
* lisp/image/image-dired.el
(image-dired-format-properties-string): Don't error when file has
been deleted.
2022-09-27 22:59:42 +02:00
Stefan Monnier
e638aaf6e8 * lisp/files.el (file-backup-file-names): Don't burp if dir doesn't exist 2022-09-27 15:10:47 -04:00
Stefan Kangas
d322adabf2 Add back useful information from gnus-coding.texi
* lisp/international/rfc1843.el:
* lisp/net/pop3.el: Improve Commentary by adding back text from
deleted file gnus-coding.texi.
2022-09-27 20:04:34 +02:00
Michael Albinus
c273e26af5 Some tramp-docker.el adaptions
* lisp/net/tramp-docker.el (tramp-docker--completion-function):
Add ;;;###tramp-autoload cookie.  Make implementation more robust.
(tramp-methods) Use `tramp-default-remote-shell'.
2022-09-27 18:46:28 +02:00
Stefan Kangas
49d40cd953 ; Simplify wallpaper--format-arg with let-alist
* lisp/image/wallpaper.el (wallpaper--format-arg): Use let-alist.
2022-09-27 16:12:40 +02:00
Stefan Kangas
1e4f40db3a ; * lisp/image/wallpaper.el (wallpaper--format-arg): Fix typo. 2022-09-27 15:33:09 +02:00
Stefan Kangas
327890dd6c Document the new "XRandR 1.5" value
* src/xfns.c (Fx_display_monitor_attributes_list):
* lisp/frame.el (display-monitor-attributes-list):
* doc/lispref/frames.texi (Multiple Terminals): Document the new
"XRandR 1.5" value.
2022-09-27 15:29:33 +02:00
Eli Zaretskii
37fe62a3bd ; Fix documentation of imenu access in DocView
* lisp/doc-view.el (doc-view-imenu-enabled)
(doc-view--pdf-outline, doc-view-imenu-index): Doc fixes.

* doc/emacs/misc.texi (DocView Navigation): Fix typo and wording.
2022-09-27 16:01:50 +03:00
Jose A. Ortega Ruiz
b1c1ff9ee1 docview: imenu access to table of contents
* lisp/doc-view.el (doc-view-imenu-enabled): user option to disable
imenu generation.
* lisp/doc-view.el (doc-view--outline-rx):
(doc-view--pdf-outline, doc-view--imenu-subtree, doc-view-imenu-index):
functions implementing the imenu index generation via mutool.
* lisp/doc-view.el (doc-view-imenu-setup, doc-view-mode): setup of the
new functionality in doc-view mode.
* lisp/imenu.el (imenu-submenus-on-top):
(imenu--split-menu): new local variable to optionally inhibit
grouping of entries with children at the top of imenu menus.
* doc/emacs/misc.texi: documentation for the new functionality
(bug#58103).
2022-09-27 13:53:24 +02:00
Richard Hansen
29b7d74000 ert-x: Improve realism of `ert-with-test-buffer-selected'
* lisp/emacs-lisp/ert-x.el (ert-with-test-buffer-selected): Set
`inhibit-read-only' and `buffer-read-only' to nil when executing the
body to provide a more realistic test environment.
2022-09-27 13:43:53 +02:00
Alan Mackenzie
0b1e3713fe * lisp/progmodes/cc-defs.el (c-let*-maybe-max-specpdl-size): Fix glitches 2022-09-27 10:02:27 +00:00