Po Lu [Sat, 3 Sep 2022 13:39:30 +0000 (21:39 +0800)]
Work around another X server bug in crossing event dispatch
* src/xterm.c (xi_focus_handle_for_device): Clear implicit focus
along with FocusOut. (bug#57468)
(x_mouse_leave): Avoid invalid reads of
dpyinfo->x_focus_event_frame on input extension builds.
Lars Ingebrigtsen [Sat, 3 Sep 2022 13:12:16 +0000 (15:12 +0200)]
Add a Mice node in the Emacs manual
* doc/emacs/commands.texi (User Input): Don't claim to not
document mouse buttons.
(Mice): New node (bug#50948).
Philip Kaludercic [Sat, 3 Sep 2022 12:15:29 +0000 (14:15 +0200)]
* subr.el (buffer-match-p): Use 'pcase' (bug#57502)
Lars Ingebrigtsen [Sat, 3 Sep 2022 12:46:21 +0000 (14:46 +0200)]
Mention M-x list-packages in the Help node in the Emacs manual
* doc/emacs/help.texi (Help): Mention listing packages
(bug#50936).
Lars Ingebrigtsen [Sat, 3 Sep 2022 12:23:26 +0000 (14:23 +0200)]
Inhibit nativecomp of loaddefs files
* lisp/emacs-lisp/generate-lisp-file.el
(generate-lisp-file-trailer): Allow inhibiting nativecomp.
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--rubric):
Inhibit native-comp, because it's not very useful for loaddefs files.
Po Lu [Sat, 3 Sep 2022 11:55:31 +0000 (19:55 +0800)]
Work around potential X server bug
* src/xterm.c (handle_one_xevent): Ignore core crossing events
on input extension builds. The X server is not actually
supposed to deliver them to us, and it messes up MPX focus
tracking. (bug#57468)
Eli Zaretskii [Sat, 3 Sep 2022 10:45:53 +0000 (13:45 +0300)]
Teach 'max-char' about the Unicode code range
* src/character.c (Fmax_char): Accept an optional argument
UNICODE, and, if non-nil, return the maximum codepoint defined by
Unicode.
* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Update the
signature of 'max-char'.
* etc/NEWS:
* doc/lispref/nonascii.texi (Character Codes): Update the
documentation of 'max-char'.
Stefan Kangas [Sat, 3 Sep 2022 09:04:07 +0000 (11:04 +0200)]
Increase image-dired-show-all-from-dir-max-files to 1000
* lisp/image/image-dired.el
(image-dired-show-all-from-dir-max-files): Increase to 1000.
Lars Ingebrigtsen [Sat, 3 Sep 2022 09:07:12 +0000 (11:07 +0200)]
Fix image-dired-util.el compile warning
* lisp/image/image-dired-util.el (require): Require for cl-case.
Stefan Kangas [Wed, 31 Aug 2022 03:59:35 +0000 (05:59 +0200)]
Add new defgroup image-dired-dired
* lisp/image/image-dired-dired.el
(image-dired-dired-append-when-browsing): Rename from
'image-dired-append-when-browsing'. Update all uses.
(image-dired-dired): New defgroup.
(image-dired-dired-append-when-browsing)
(image-dired-dired-disp-props): Use above new defgroup.
Stefan Kangas [Wed, 31 Aug 2022 03:52:11 +0000 (05:52 +0200)]
image-dired: Minor cleanups
* lisp/image/image-dired-dired.el
(image-dired-dired-after-readin-hook, image-dired-minor-mode):
Minor doc fixes.
(image-dired-dired-display-image): Don't accept ineffectual prefix
argument.
* lisp/image/image-dired-util.el
(image-dired-file-name-at-point): Use when-let.
(image-dired-display-thumb-properties): Redefine as obsolete function
alias for 'image-dired-update-header-line'.
* lisp/image/image-dired-util.el
(image-dired-window-width-pixels): Make obsolete in favor of
window-body-width.
* lisp/image/image-dired.el (image-dired-line-up-dynamic)
(image-dired-display-window-width): Don't use above obsolete function.
Stefan Kangas [Tue, 30 Aug 2022 17:05:29 +0000 (19:05 +0200)]
image-dired: Prefer defvar-keymap
* lisp/image/image-dired-dired.el (image-dired-minor-mode-map):
* lisp/image/image-dired.el
(image-dired-thumbnail-mode-line-up-map)
(image-dired-thumbnail-mode-tag-map)
(image-dired-thumbnail-mode-map)
(image-dired-display-image-mode-map): Prefer defvar-keymap.
Stefan Kangas [Mon, 29 Aug 2022 17:52:48 +0000 (19:52 +0200)]
Add new defgroup image-dired-external
* lisp/image/image-dired-external.el (image-dired-external): New
defgroup.
(image-dired-cmd-create-thumbnail-program)
(image-dired-cmd-create-thumbnail-options)
(image-dired-cmd-pngnq-program, image-dired-cmd-pngnq-options)
(image-dired-cmd-pngcrush-program)
(image-dired-cmd-pngcrush-options)
(image-dired-cmd-optipng-program)
(image-dired-cmd-optipng-options)
(image-dired-cmd-create-standard-thumbnail-options)
(image-dired-cmd-rotate-original-program)
(image-dired-cmd-rotate-original-options)
(image-dired-temp-rotate-image-file)
(image-dired-rotate-original-ask-before-overwrite)
(image-dired-cmd-write-exif-data-program)
(image-dired-cmd-write-exif-data-options): Use above new defgroup.
Stefan Kangas [Tue, 23 Aug 2022 12:59:47 +0000 (14:59 +0200)]
; image-dired: Indentation fixes
* lisp/image/image-dired-dired.el:
* lisp/image/image-dired-external.el:
* lisp/image/image-dired-tags.el:
* lisp/image/image-dired-util.el:
* lisp/image/image-dired.el: Fix indentation.
Stefan Kangas [Tue, 23 Aug 2022 12:46:03 +0000 (14:46 +0200)]
image-dired: Make HTML gallery generation obsolete
* lisp/image/image-dired.el (image-dired-gallery): Delete
defgroup again.
(image-dired-gallery-dir, image-dired-gallery-image-root-url)
(image-dired-gallery-thumb-image-root-url)
(image-dired-gallery-hidden-tags, image-dired-tag-file-list)
(image-dired-file-tag-list, image-dired--add-to-tag-file-lists)
(image-dired--add-to-file-comment-list)
(image-dired--create-gallery-lists, image-dired--hidden-p)
(image-dired-gallery-generate): Make obsolete.
Stefan Kangas [Sat, 20 Aug 2022 20:44:14 +0000 (22:44 +0200)]
image-dired: Do more interactive mode tagging
* lisp/image/image-dired-dired.el
(image-dired-dired-toggle-marked-thumbs)
(image-dired-next-line-and-display)
(image-dired-previous-line-and-display)
(image-dired-toggle-append-browsing)
(image-dired-mark-and-display-next)
(image-dired-toggle-dired-display-properties)
(image-dired-dired-next-line, image-dired-dired-previous-line)
(image-dired-create-thumbs, image-dired-display-thumbs-append)
(image-dired-display-thumb, image-dired-dired-display-external)
(image-dired-dired-display-image)
(image-dired-copy-with-exif-file-name, image-dired-mark-tagged-files)
(image-dired-dired-display-properties):
* lisp/image/image-dired-external.el
(image-dired-thumbnail-set-image-description):
* lisp/image/image-dired-tags.el (image-dired-tag-files)
(image-dired-tag-thumbnail, image-dired-delete-tag)
(image-dired-tag-thumbnail-remove)
(image-dired-dired-comment-files)
(image-dired-dired-edit-comment-and-tags):
* lisp/image/image-dired.el (image-dired-display-thumbs)
(image-dired-track-original-file)
(image-dired-toggle-movement-tracking)
(image-dired-forward-image, image-dired-backward-image)
(image-dired-line-up, image-dired-line-up-dynamic)
(image-dired-line-up-interactive)
(image-dired-thumbnail-display-external)
(image-dired-display-thumbnail-original-image)
(image-dired-rotate-original-left)
(image-dired-rotate-original-right)
(image-dired-comment-thumbnail, image-dired-delete-marked)
(image-dired-rotate-thumbnail-left)
(image-dired-rotate-thumbnail-right): Do interactive mode tagging.
* lisp/image/image-dired.el (image-dired-delete-marked): Signal error
if not in image-dired-thumbnail-mode.
Stefan Kangas [Fri, 19 Aug 2022 19:14:13 +0000 (21:14 +0200)]
Split image-dired.el into several files (part 2/2)
Use a git trick to split a file while preserving line history (for
"git blame", "git log --follow", etc.):
1) Make exact copies of the original file, in the same commit as
moving it.
2) Next, trim down the extra copies to contain only the relevant
parts. [this commit]
* lisp/image-dired.el:
* lisp/image/image-dired-dired.el:
* lisp/image/image-dired-external.el:
* lisp/image/image-dired-tags.el:
* lisp/image/image-dired-util.el:
* lisp/image/image-dired.el: Trim files down to keep only one copy of
each definition.
Stefan Kangas [Fri, 19 Aug 2022 18:41:11 +0000 (20:41 +0200)]
Split image-dired.el into several files (part 1/2)
Use a git trick to split a file while preserving line history (for
"git blame", "git log --follow", etc.):
1) Make exact copies of the original file, in the same commit as
moving it. [this commit]
2) Next, trim down the extra copies to contain only the relevant
parts.
* lisp/image-dired.el: Move from here...
* lisp/image/image-dired-dired.el:
* lisp/image/image-dired-external.el:
* lisp/image/image-dired-tags.el:
* lisp/image/image-dired-util.el:
* lisp/image/image-dired.el: ...to here.
* test/lisp/image-dired-tests.el: Move from here...
* test/lisp/image/image-dired-tests.el: ...to here.
Stefan Kangas [Sat, 3 Sep 2022 05:23:08 +0000 (07:23 +0200)]
Make "rlogin" method obsolete in url*.el
* lisp/url/url-about.el (url-probe-protocols): Remove "rlogin".
* lisp/url/url-gw.el (url-gateway-rlogin-host)
(url-gateway-rlogin-user-name, url-gateway-rlogin-parameters)
(url-open-rlogin): Make obsolete. (Bug#56891)
(url-open-stream):
* lisp/url/url-misc.el (url-do-terminal-emulator): Warn when using
"rlogin".
(url-rlogin): Make obsolete.
* lisp/url/url-vars.el (url-gateway-method): Remove "rlogin"
choice.
* lisp/url/url-gw.el (url-gw-rlogin-obsolete-warned-once)
* lisp/url/url-misc.el (url-misc-rlogin-obsolete-warned-once): New
variables, immediately marked obsolete.
* doc/misc/url.texi (telnet/tn3270): Rename section from
"rlogin/telnet/tn3270".
(Gateways in general, Customization): Don't mention "rlogin"
method.
Stefan Kangas [Sat, 3 Sep 2022 04:30:27 +0000 (06:30 +0200)]
; Merge from origin/emacs-28
The following commit was skipped:
f9f92772dc ; Normalize email
Stefan Kangas [Sat, 3 Sep 2022 04:30:26 +0000 (06:30 +0200)]
Merge from origin/emacs-28
d89e65c638 Update acknowledgments
Stefan Kangas [Fri, 2 Sep 2022 23:39:55 +0000 (01:39 +0200)]
; Normalize email
Don't merge to master.
Stefan Kangas [Fri, 2 Sep 2022 23:37:09 +0000 (01:37 +0200)]
Update acknowledgments
* doc/emacs/ack.texi (Acknowledgments): Update.
* doc/emacs/emacs.texi (Acknowledgments): Add several names from
Author: headers.
Stefan Kangas [Thu, 1 Sep 2022 09:04:21 +0000 (11:04 +0200)]
Make some versions in docs match package version
* doc/emacs/misc.texi (Interactive Shell): Bump Emacs version.
* doc/misc/ediff.texi:
* doc/misc/flymake.texi:
* doc/misc/viper.texi: Fix version to match package.
* lisp/emulation/viper.el: Make version match variable.
Stefan Kangas [Fri, 2 Sep 2022 21:57:18 +0000 (23:57 +0200)]
; Merge from origin/emacs-28
The following commit was skipped:
80c5327195 Make some versions in docs match package version
Stefan Kangas [Fri, 2 Sep 2022 21:57:18 +0000 (23:57 +0200)]
Merge from origin/emacs-28
917da2641e Minor doc fix; improve sorting of VC backends
89695bce3e Clarify the doc string of 'set-face-attribute'
Gregory Heytings [Fri, 2 Sep 2022 20:27:59 +0000 (20:27 +0000)]
Display a warning for some uses of nil in face attributes.
* src/xfaces.c (HANDLE_INVALID_NIL_VALUE): New macro, which displays
a warning for invalid uses of nil as a face attribute value.
(Finternal_set_lisp_face_attribute): Use the macro for the attributes
:foreground, :distant-foreground and :background.
Stefan Monnier [Fri, 2 Sep 2022 13:54:13 +0000 (09:54 -0400)]
* lisp/help-fns.el: Minor fixes
(describe-mode--minor-modes): Don't burp on minor modes that lack a docstring.
(describe-mode--minor-modes): Simplify eta-redex.
(find-lisp-object-file-name): Use `autoload-file`.
(help-fns--describe-function-or-command-prompt): Allow the user to
insist on choosing a function even if it appears not to exist.
Robert Pluim [Fri, 2 Sep 2022 13:09:48 +0000 (15:09 +0200)]
Use `format-prompt' in `describe-char-fold-equivalences'
* lisp/char-fold.el (describe-char-fold-equivalences): Use `format-prompt'.
Lars Ingebrigtsen [Fri, 2 Sep 2022 12:58:30 +0000 (14:58 +0200)]
Fix define-minor-mode :keymap obsoletion warning
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix some
warning.
Stefan Kangas [Fri, 2 Sep 2022 12:51:27 +0000 (14:51 +0200)]
Make minibuffer-eldef-shorten-default obsolete
* lisp/minibuf-eldef.el (minibuffer-eldef-shorten-default): Make
variable obsolete in favor of 'minibuffer-default-prompt-format'.
* doc/emacs/mini.texi (Basic Minibuffer): Delete above obsolete
variable (bug#50935).
Lars Ingebrigtsen [Fri, 2 Sep 2022 12:23:15 +0000 (14:23 +0200)]
Default show-paren-mode to off in special-mode buffers
* doc/emacs/programs.texi (Matching): Mention the new user option.
* doc/misc/efaq.texi (Matching parentheses): Adjust text to the
current state of affairs.
* lisp/paren.el (show-paren-function): New user option (bug#50894).
(show-paren-mode): Mention it.
(show-paren-function): Use it.
Lars Ingebrigtsen [Fri, 2 Sep 2022 11:34:55 +0000 (13:34 +0200)]
Clean up ispell "look"-related variables
* lisp/textmodes/ispell.el (ispell-look-p): Make obsolete.
(ispell-lookup-words): Look up the look command at run time
instead (bug#50852).
(ispell-have-new-look): Make obsolete.
(ispell-look-options): Adjust. Apparently the version of "look"
that had a "-r" (regexp interface) never took off -- it's not
present in GNU/Linux or Macos, at least, as far as we can tell.
Lars Ingebrigtsen [Fri, 2 Sep 2022 10:09:18 +0000 (12:09 +0200)]
Fix quotes in mailcap-add-mailcap-entry doc string
* lisp/net/mailcap.el (mailcap-add-mailcap-entry): Fix usage of
quotes.
Felix Dietrich [Sun, 6 Mar 2022 19:41:41 +0000 (20:41 +0100)]
Restructure ‘mailcap-add-mailcap-entry’
* lisp/net/mailcap.el (mailcap-add-mailcap-entry):
Restructure mailcap-add-mailcap-entry to improve readability.
Felix Dietrich [Mon, 14 Mar 2022 13:01:26 +0000 (14:01 +0100)]
Add tests for ‘mailcap-add-mailcap-entry’
* test/lisp/net/mailcap-tests.el:
Add tests for ‘mailcap-add-mailcap-entry’
Robert Pluim [Fri, 2 Sep 2022 09:15:43 +0000 (11:15 +0200)]
Use frame-monitor-attributes in gamegrid
* lisp/play/gamegrid.el (gamegrid-calculate-glyph-size): Use
`frame-monitor-attributes' to get the frame attributes directly
instead of iterating over `display-monitor-attributes-list'.
Po Lu [Fri, 2 Sep 2022 09:19:29 +0000 (17:19 +0800)]
Prevent crashes when embedding Emacs in a nonexistent parent
* src/xfns.c (x_window, Fx_create_frame): Handle X errors while
trying to reparent the frame onto an explicitly specified
parent.
* src/xterm.c (handle_one_xevent): Handle unparenting embedded
windows correctly. This only works if the embedder is aware of
the fixes extension and has put the window into the right save
set.
(x_embed_frame): New function.
* src/xterm.h (FRAME_X_EMBEDDED_P): Fix coding style.
Robert Pluim [Thu, 1 Sep 2022 16:10:58 +0000 (18:10 +0200)]
Make single char entry easier for `describe-char-fold-equivalences'
* lisp/char-fold.el (describe-char-fold-equivalences): Improve
docstring. Pass t for 'allow-single' arg in call to
`read-char-by-name' so that single characters can be entered directly.
Robert Pluim [Thu, 1 Sep 2022 15:59:10 +0000 (17:59 +0200)]
Allow easy entry of single chars in `read-char-by-name'
* lisp/international/mule-cmds.el (read-char-by-name): Add optional
'allow-single' argument, meaning to accept single chars as themselves.
Fabrice Bauzac-Stehly [Fri, 2 Sep 2022 04:23:46 +0000 (00:23 -0400)]
ldap-host-parameters-alist: Add auth-source option
* lisp/net/ldap.el (ldap-host-parameters-alist): Add auth-source
to checklist.
Jim Porter [Thu, 1 Sep 2022 05:52:34 +0000 (22:52 -0700)]
Under no-X builds, allow any value for 'fringe-bitmap' options
* lisp/cus-edit (fringe-bitmap): Always match under no-X.
Po Lu [Thu, 1 Sep 2022 13:22:17 +0000 (21:22 +0800)]
Fix bug#57476 for Xt builds
* src/xterm.c (handle_one_xevent): Add similar event mode check
to code under USE_X_TOOLKIT conditional. (bug#57476)
Lars Ingebrigtsen [Thu, 1 Sep 2022 11:42:19 +0000 (13:42 +0200)]
Make easy-mmode-define-keymap obsolete
* lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-keymap): Make
obsolete.
(define-minor-mode): Add comment.
Lars Ingebrigtsen [Thu, 1 Sep 2022 11:39:14 +0000 (13:39 +0200)]
Make easy-mmode-defmap obsolete and adjust only caller
* lisp/emacs-lisp/easy-mmode.el (easy-mmode-defmap): Make obsolete.
* lisp/progmodes/gud.el (gud-menu-map): Use easy-menu-define.
Lars Ingebrigtsen [Thu, 1 Sep 2022 10:24:17 +0000 (12:24 +0200)]
Fix outline-minor-mode-map
* lisp/outline.el (outline-minor-mode): Avoid using
easy-mmode-define-keymap, since it doesn't handle :inherit
correctly (bug#57512).
Daanturo [Thu, 1 Sep 2022 10:08:05 +0000 (12:08 +0200)]
Make file-parent-directory more efficient
* lisp/files.el (file-parent-directory): Use equal instead of
file-equal-p to compare the found parent and the child
(bug#56355). This is much faster.
Stefan Kangas [Thu, 1 Sep 2022 09:04:21 +0000 (11:04 +0200)]
Make some versions in docs match package version
* doc/emacs/misc.texi (Interactive Shell): Bump Emacs version.
* doc/misc/ediff.texi:
* doc/misc/flymake.texi:
* doc/misc/viper.texi: Fix version to match package.
* lisp/emulation/viper.el: Make version match variable.
Stefan Kangas [Thu, 1 Sep 2022 09:01:14 +0000 (11:01 +0200)]
Minor doc fix; improve sorting of VC backends
* doc/emacs/maintaining.texi (Version Control Systems): Minor doc fix;
rearrange list to put git, cvs and subversion at the top.
Eli Zaretskii [Thu, 1 Sep 2022 08:42:33 +0000 (11:42 +0300)]
Clarify the doc string of 'set-face-attribute'
* lisp/faces.el (set-face-attribute): Clarify the issue with
resetting attribute values to 'unspecified' for future frames.
(Bug#57499)
Mattias Engdegård [Wed, 31 Aug 2022 12:31:31 +0000 (14:31 +0200)]
Better `take` and `ntake` bignum argument handling
* src/fns.c (Ftake, Fntake): Treat positive bignum arguments
as most-positive-fixnum which results in better error checking
of improper lists.
Eli Zaretskii [Thu, 1 Sep 2022 08:04:46 +0000 (11:04 +0300)]
; * etc/NEWS: Fix documentation marking of recently-added entries.
Eli Zaretskii [Thu, 1 Sep 2022 05:56:30 +0000 (08:56 +0300)]
; * src/xdisp.c (lookup_glyphless_char_display): Fix last merge.
Stefan Kangas [Thu, 1 Sep 2022 04:17:37 +0000 (06:17 +0200)]
; Merge from origin/emacs-28
The following commit was skipped:
f44c4e49b7 ; Auto-commit of loaddefs files.
Stefan Kangas [Thu, 1 Sep 2022 04:17:37 +0000 (06:17 +0200)]
Merge from origin/emacs-28
8807a4f532 Enable 256 colors in fbterm.
bbc23ca8ab One more fix for find-file.el
0cbcaf5119 ; Yet another doc fix for 'ff-other-file-alist' (bug#57325)
2d9a391727 Recommend using fbterm in the Linux console.
a5a92e577c ; * src/window.c (syms_of_window) <window-point-insertion-...
4d52fe6b96 * lisp/find-file.el (ff-other-file-alist): Doc fix. (Bug#...
d111b5b651 * lisp/info.el (Info-mode): Support the Linux console better.
cc945ec0ed ; Fix doc strings in latin1-disp.el
195fcc932e Improve the documentation of glyphless-character display
72ae02377e ; * lisp/jit-lock.el (jit-lock-chunk-size): Doc fix.
3fb69fad49 Fix documentation of 'glyphless-char-display'
# Conflicts:
# lisp/international/characters.el
# src/xdisp.c
Stefan Kangas [Thu, 1 Sep 2022 04:01:40 +0000 (06:01 +0200)]
Update publicsuffix.txt from upstream
* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2022-08-25 13:54:14 UTC.
Stefan Kangas [Thu, 1 Sep 2022 03:10:19 +0000 (05:10 +0200)]
; Auto-commit of loaddefs files.
Stefan Kangas [Thu, 1 Sep 2022 03:07:06 +0000 (05:07 +0200)]
; Auto-commit of loaddefs files.
Jim Porter [Wed, 31 Aug 2022 16:47:43 +0000 (09:47 -0700)]
Don't fail Eshell ERT tests when an internal signal gets raised
* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/pipeline-connection-type/middle)
(esh-proc-test/pipeline-connection-type/last): Set 'debug-on-error' to
nil.
Ref: https://lists.gnu.org/archive/html/emacs-devel/2022-08/msg01452.html
Alan Mackenzie [Wed, 31 Aug 2022 18:46:06 +0000 (18:46 +0000)]
C++ Mode: Fontify functions correctly with commas in template expressions
This fixes bug #57318.
Also apply an optimization which marks generic expressions as already
analyzed, thus avoiding repeating this analysis when not needed. This
optimization prevents the fix slowing down scrolling when the C++ source has
lots of template structures.
* lisp/progmodes/cc-engine.el (top-level) Near the beginning of the file, add
a comment describing the new text property c-<>-c-types-set.
(c-update-brace-stack): Bind c-restricted-<>-arglists to nil rather than t
around the call to c-forward-<>-arglist.
(c-forward-<>-arglist-recur): Allow the abbreviated analysis of a generic
expression also when the opening < is marked with a c-<>-c-types-set text
property. Set this property at the same time as the c-type properties are set
on the commas inside the template structure.
* lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare): Clear the
c-<>-c-types-set text property, along with c-type, from the region being
fontified.
Robert Pluim [Wed, 31 Aug 2022 16:08:49 +0000 (18:08 +0200)]
Fix describe-char-fold-equivalences for composed characters
* lisp/char-fold.el (describe-char-fold-equivalences): Map
`get-char-code-property' across all the component codepoints of the
equivalent character rather than just the first one.
Eli Zaretskii [Wed, 31 Aug 2022 16:15:16 +0000 (19:15 +0300)]
; Fix the lispref manual about seq.el
* doc/lispref/sequences.texi (Sequence Functions): seq.el is
preloaded, so no need to load it manually. (Bug#57505)
ookami [Wed, 31 Aug 2022 10:10:42 +0000 (12:10 +0200)]
Fix semantic-find-file-noselect binding of recentf-exclude
* lisp/cedet/semantic/fw.el (semantic-find-file-noselect):
recentf-exclude should be a list (bug#57489).
Copyright-paperwork-exempt: yes
Po Lu [Wed, 31 Aug 2022 02:17:20 +0000 (10:17 +0800)]
Gently nudge Xt into always setting size hints
* src/widget.c (update_wm_hints): Force a resource to change
every time this function is called. (bug#57475)
(EmacsFrameInitialize): Initialize new field.
* src/widgetprv.h (EmacsFramePart): New field `size_switch'.
* src/xterm.c (x_wm_set_size_hint): Don't change flags if flags
is 0.
Po Lu [Wed, 31 Aug 2022 01:44:13 +0000 (09:44 +0800)]
Fix bug#57476
* src/xterm.c (handle_one_xevent): Don't reset valuators on certain
crossing events, for the benefit of xfwm4. (bug#57476)
Stefan Monnier [Tue, 30 Aug 2022 21:55:03 +0000 (17:55 -0400)]
t-mouse.el: Make sure we apply the setting to new terminals
* lisp/t-mouse.el (gpm-mouse-tty-setup): New function.
(gpm-mouse-mode): Use it as well as `tty-setup-hook`.
* lisp/term/linux.el (terminal-init-linux): Remove gpm-specific code,
not neded any more.
Gregory Heytings [Tue, 30 Aug 2022 21:03:01 +0000 (21:03 +0000)]
Enable 256 colors in fbterm.
* lisp/term/fbterm.el: New file.
* doc/misc/efaq.texi (Emacs in a Linux console): Document the TERM
environment variable with which the new file is used.
Stefan Kangas [Tue, 30 Aug 2022 19:31:17 +0000 (21:31 +0200)]
; Minor doc fix in Viper
* lisp/emulation/viper-macs.el (viper-repeat-from-history-key):
Minor doc fix.
Stefan Kangas [Tue, 30 Aug 2022 17:35:14 +0000 (19:35 +0200)]
; * lisp/doc-view.el (doc-view): Fix punctuation.
Eli Zaretskii [Tue, 30 Aug 2022 17:20:40 +0000 (20:20 +0300)]
; Improve doc string of 'describe-char-fold-equivalences'
* lisp/char-fold.el (describe-char-fold-equivalences): Autoload
it. Doc fix.
Juri Linkov [Tue, 30 Aug 2022 17:09:20 +0000 (20:09 +0300)]
Fix
744ed0ceeed7472a160fea7154939cf641205577 from bug#57082 (bug#57176)
* lisp/outline.el (outline-minor-mode-highlight-buffer): Handle 'append'.
(outline-minor-mode): Call outline--fix-up-all-buttons when font-lock is used.
* lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common): Fix regexp.
Eli Zaretskii [Tue, 30 Aug 2022 16:09:00 +0000 (19:09 +0300)]
One more fix for find-file.el
* lisp/find-file.el (ff-get-file-name): Use 'expand-file-name'
instead of 'concat', which doesn't DTRT with absolute file names.
(ff-other-file-alist): Yet another doc fix. (Bug#57325)
Mattias Engdegård [Tue, 30 Aug 2022 14:44:51 +0000 (16:44 +0200)]
Accept bignum arguments in `take` and `ntake`
* src/fns.c (Ftake, Fntake): Accept any integer as first argument, for
completeness.
* test/src/fns-tests.el (fns--take-ntake): Add test cases.
Mattias Engdegård [Tue, 30 Aug 2022 09:57:29 +0000 (11:57 +0200)]
; * src/lread.c (invalid_radix_integer): Use a local buffer.
Eli Zaretskii [Tue, 30 Aug 2022 13:12:37 +0000 (16:12 +0300)]
; * etc/NEWS: Clarify wording of "C-x v v" entry.
Eli Zaretskii [Tue, 30 Aug 2022 12:42:34 +0000 (15:42 +0300)]
; Yet another doc fix for 'ff-other-file-alist' (bug#57325)
Po Lu [Tue, 30 Aug 2022 11:27:39 +0000 (19:27 +0800)]
Fix junk data being returned with incremental selection transfers
* src/xselect.c (receive_incremental_selection): New arg
REAL_BYTES_RET. Set it to the actual size instead of using the
size of the array after it was grown by xpalloc.
(x_get_window_property_as_lisp_data): Adjust call to
receive_incremental_selection.
Gerd Möllmann [Tue, 30 Aug 2022 10:54:29 +0000 (12:54 +0200)]
; Ignore test/gmo.h in .gitignore
Mattias Engdegård [Tue, 30 Aug 2022 09:20:42 +0000 (11:20 +0200)]
; * src/lread.c (read0): Fix specpdl off-by-one bug in last change.
Lars Ingebrigtsen [Tue, 30 Aug 2022 08:53:11 +0000 (10:53 +0200)]
Fix char-fold compilation warning
* lisp/char-fold.el (require): Get string-join definition.
Juri Linkov [Tue, 30 Aug 2022 07:28:34 +0000 (10:28 +0300)]
* lisp/char-fold.el (describe-char-fold-equivalences): New command.
(char-fold--no-regexp): New internal variable.
(char-fold--make-table): Use it to skip translation to regexp.
Suggested by Robert Pluim <rpluim@gmail.com>.
https://lists.gnu.org/archive/html/emacs-devel/2022-07/msg00864.html
Jim Porter [Mon, 22 Aug 2022 16:53:24 +0000 (09:53 -0700)]
Handle 'eshell-pipe-broken' when evaluating Lisp forms in Eshell
* lisp/eshell/esh-cmd.el (eshell-exec-lisp): Handle
'eshell-pipe-broken'.
* lisp/eshell/esh-io.el (eshell-output-object-to-target): Only signal
'eshell-pipe-broken' if the process being written to has finished.
* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/pipeline-connection-type/middle)
(esh-proc-test/pipeline-connection-type/last): Remove ':unstable'.
Ref: https://lists.gnu.org/archive/html/emacs-devel/2022-08/msg00524.html
Gregory Heytings [Mon, 29 Aug 2022 16:06:37 +0000 (16:06 +0000)]
Recommend using fbterm in the Linux console.
* doc/misc/efaq.texi (Emacs in a Linux console): New node.
(Common requests): Entry for the new node.
* etc/PROBLEMS (Linux console problems...): Mention the new FAQ node.
Stefan Kangas [Mon, 29 Aug 2022 17:26:39 +0000 (19:26 +0200)]
Improve point-at-{bol,eol} obsoletion message
* lisp/subr.el (point-at-eol, point-at-bol): Mention 'pos-eol' and
'pos-bol' in obsoletion message.
Mattias Engdegård [Mon, 29 Aug 2022 15:44:31 +0000 (17:44 +0200)]
Fix reader memory leak upon error (bug#56623)
Reported by Tom Gillespie; error found by Greg Hendershott.
* src/lread.c (read_stack_reset): New.
(read0): Reset read stack when unwinding from an error.
Jake Moss [Mon, 29 Aug 2022 15:23:46 +0000 (17:23 +0200)]
Show gdb-mi disassembly over tramp
* lisp/progmodes/gdb-mi.el (gdb-invalidate-disassembly): Show
gdb-mi disassembly over tramp (bug#57464).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Mon, 29 Aug 2022 15:15:17 +0000 (17:15 +0200)]
Work around `&' dired command when using the fish shell
* lisp/dired-aux.el (dired-shell-stuff-it): Add a space before
&wait; this apparently makes the `&' command work with the fish
shell (bug#57472).
Eli Zaretskii [Mon, 29 Aug 2022 14:09:02 +0000 (17:09 +0300)]
; * src/window.c (syms_of_window) <window-point-insertion-type>: Doc fix.
Eli Zaretskii [Mon, 29 Aug 2022 14:02:46 +0000 (17:02 +0300)]
* lisp/find-file.el (ff-other-file-alist): Doc fix. (Bug#57325)
Eli Zaretskii [Mon, 29 Aug 2022 13:52:07 +0000 (16:52 +0300)]
Fix point adjustment in recreated *Messages* buffers
* lisp/startup.el (normal-top-level): Move setting of
'window-point-insertion-type' from here...
* lisp/simple.el (messages-buffer-mode): ...to here. This is so
any *Messages* buffers we create instead of the original one, if
it's killed, will have the same type of the window-point marker.
(Bug#57466)
Stefan Monnier [Mon, 29 Aug 2022 13:03:34 +0000 (09:03 -0400)]
* src/keyboard.c (safe_run_hooks*): Simplify and generalize
(safe_run_hooks_1, safe_run_hook_funcall): Simplify and generalize to
arbitrary `nargs`.
(safe_run_hooks_error): Remove unneeded assertion.
Michael Albinus [Mon, 29 Aug 2022 10:05:02 +0000 (12:05 +0200)]
Do not connect unreachable remote hosts in recentf
* lisp/recentf.el (recentf-expand-file-name): Protect against
stalled remote hosts. (Bug#57336)
Po Lu [Mon, 29 Aug 2022 09:23:18 +0000 (17:23 +0800)]
Unify floating point handling when reading XI motion events
* src/xterm.c (handle_one_xevent): Always round values as
recommended, instead of just truncating them. Also fixes
weird "jitter" during drag-and-drop on some clients.
Juri Linkov [Sun, 28 Aug 2022 19:44:52 +0000 (22:44 +0300)]
'C-c C-d' on vc-log buffer shows the diff from 'vc-log-fileset' (bug#52349)
* lisp/vc/log-edit.el (log-edit-diff-fileset): New function.
* lisp/vc/vc-dispatcher.el (vc-log-edit): Set log-edit-diff-function to
log-edit-diff-fileset instead of vc-diff.
* lisp/vc/vc.el (vc-diff): New optional arg ‘fileset’.
If non-nil, use instead of vc-deduce-fileset.
Juri Linkov [Sun, 28 Aug 2022 19:38:51 +0000 (22:38 +0300)]
'C-x v v' on a diff buffer commits it as a patch (bug#52349)
* lisp/vc/diff-mode.el (diff-vc-deduce-fileset): New function.
* lisp/vc/log-edit.el (log-edit-diff-patch): New function.
* lisp/vc/vc-dispatcher.el (vc-log-edit): Set log-edit-diff-function
to log-edit-diff-patch when vc-patch-string is non-nil.
(vc-start-logentry): New optional arg 'patch-string'.
Set buffer-local 'vc-patch-string' to 'patch-string'.
(vc-dispatcher-browsing): Add (derived-mode-p 'diff-mode).
* lisp/vc/vc-git.el (vc-git-checkin-patch): New function.
(vc-git-checkin): When vc-git-patch-string is non-nil,
use `git apply --cached` to add the patch to the index,
then commit the staged changes.
* lisp/vc/vc.el: New backend function 'checkin-patch'.
(vc-deduce-fileset-1): Call diff-vc-deduce-fileset in diff-mode.
(vc-next-action): For model 'patch' call vc-checkin with the
diff buffer string.
(vc-checkin): New optional arg 'patch-string'.
Call backend function 'checkin-patch' when 'patch-string' is non-nil.
Call vc-start-logentry with 'patch-string'.
(vc-diff-patch-string): New function.
Juri Linkov [Sun, 28 Aug 2022 19:13:45 +0000 (22:13 +0300)]
Revert parts of
3f076a8e44 that caused test failures
* lisp/simple.el (line-move-finish):
* lisp/window.el (scroll-command--goto-goal-column):
Revert back to using truncate-partial-width-windows instead of
truncated-partial-width-window-p. This change caused test failures
in lisp/ls-lisp-tests.log and lisp/emacs-lisp/edebug-tests.log.
Ken Brown [Sat, 27 Aug 2022 21:42:42 +0000 (17:42 -0400)]
Fix data for files-tests-bug-21454 on Cygwin
* test/lisp/files-tests.el (files-tests-bug-21454): Fix test data
to reflect the fact that Cygwin supports UNC paths.
Eli Zaretskii [Sun, 28 Aug 2022 14:40:49 +0000 (17:40 +0300)]
; Fix docs of glyphless-character display
* etc/NEWS: Update "glyphless character" entries.
* doc/lispref/display.texi (Glyphless Chars): The extra slot of
the char-table can now use a cons cell.
Eli Zaretskii [Sun, 28 Aug 2022 11:42:07 +0000 (14:42 +0300)]
* lisp/info.el (Info-mode): Support the Linux console better.
Eli Zaretskii [Sun, 28 Aug 2022 05:57:13 +0000 (08:57 +0300)]
; Autoload 'latin1-display-ucs-per-lynx'
* lisp/international/latin1-disp.el (latin1-display-ucs-per-lynx):
Autoload it, since we autoload 'latin1-display'.