]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years ago; Silence byte-compiler in two tests
Stefan Kangas [Sat, 30 Jul 2022 23:50:38 +0000 (01:50 +0200)]
; Silence byte-compiler in two tests

* test/lisp/subr-tests.el (test-print-unreadable-function):
* test/src/print-tests.el (test-print-unreadable-function-buffer):
Pacify byte-compiler.

2 years agoDelete redisplay-end-trigger-functions and related defuns
Stefan Kangas [Sat, 30 Jul 2022 23:44:22 +0000 (01:44 +0200)]
Delete redisplay-end-trigger-functions and related defuns

This variable and related functions have been obsolete since 23.1.
The last things to depend on this (fast-lock.el and lazy-lock.el) were
recently removed.

* src/dispextern.h (struct it): Delete field
'redisplay_end_trigger_charpos'.
* src/window.c (Fwindow_redisplay_end_trigger)
(Fset_window_redisplay_end_trigger): Delete defuns and corresponding
defsubrs for functions obsolete since 23.1.
* src/window.h (wset_redisplay_end_trigger): Delete function.
(GCALIGNED_STRUCT): Delete 'redisplay_end_trigger'.
* src/xdisp.c (run_redisplay_end_trigger_hook): Delete function.
(syms_of_xdisp) <redisplay_end_trigger_functions>: Delete
variable obsolete since 23.1.
(init_iterator, next_element_from_buffer): Don't run or set above
deleted hook variable.

* lisp/subr.el: Delete obsoletion definitions for above deleted
defuns and variable.
* doc/lispref/hooks.texi (Standard Hooks):
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns):
* lisp/loadhist.el (unload-feature-special-hooks): Don't mention
above deleted variable.
* admin/coccinelle/window.cocci: Adjust for above changes.

2 years ago; * etc/NEWS: Minor edits.
Stefan Kangas [Sat, 30 Jul 2022 10:52:15 +0000 (12:52 +0200)]
; * etc/NEWS: Minor edits.

2 years ago; Fix warnings from #pragma GCC iagnostic pop on macOS
Gerd Möllmann [Sat, 30 Jul 2022 15:36:27 +0000 (17:36 +0200)]
; Fix warnings from #pragma GCC iagnostic pop on macOS

* src/comp.c: Add #pragma GCC diagnostic push in some places.

2 years agoFix native compiler handling of narrow-to-region
Gerd Möllmann [Sat, 30 Jul 2022 15:32:04 +0000 (17:32 +0200)]
Fix native compiler handling of narrow-to-region

* lisp/emacs-lisp/comp.el (comp-limplify-lap-inst): Use auto for
byte-narrow-to-region.

2 years agoTweak icons.el emoji detection
Lars Ingebrigtsen [Sat, 30 Jul 2022 13:56:49 +0000 (15:56 +0200)]
Tweak icons.el emoji detection

* lisp/emacs-lisp/icons.el (icons--create): Choose another
character that's unlikely to appear in non-Emoji fonts.  (Comment
left in place since this should be fixed in a less breakable way.)

2 years agoMake the symbol icons in outline.el more logical
Lars Ingebrigtsen [Sat, 30 Jul 2022 13:36:16 +0000 (15:36 +0200)]
Make the symbol icons in outline.el more logical

* lisp/outline.el (outline-open, outline-close): Use symbols from
the same series so that it's more likely that they match up (bug#56823).

2 years agoMake sure to preserve point across locked narrowing
Eli Zaretskii [Sat, 30 Jul 2022 13:11:43 +0000 (16:11 +0300)]
Make sure to preserve point across locked narrowing

* src/editfns.c (Fnarrow_to_region): Save the position of point
when locking the restriction, since this function can move point.

2 years ago; * lisp/emacs-lisp/icons.el (icon-preference): repair type
Mattias Engdegård [Sat, 30 Jul 2022 13:06:43 +0000 (15:06 +0200)]
; * lisp/emacs-lisp/icons.el (icon-preference): repair type

2 years agoHandle the optional argument of 'narrow-to-region' in byte-compiled code.
Gregory Heytings [Sat, 30 Jul 2022 12:02:28 +0000 (12:02 +0000)]
Handle the optional argument of 'narrow-to-region' in byte-compiled code.

* lisp/emacs-lisp/bytecomp.el: Adapt the specifications.

* src/bytecode.c (exec_byte_code): Get the optional argument.

2 years agoClarify mail-header address parsing doc strings
Lars Ingebrigtsen [Sat, 30 Jul 2022 11:40:59 +0000 (13:40 +0200)]
Clarify mail-header address parsing doc strings

* lisp/mail/mail-parse.el (mail-header-parse-address-lax):
* lisp/mail/ietf-drums.el (ietf-drums-parse-address): Clarify what
these functions do (bug#56824).

2 years agoFix outline-minor-mode-use-buttons defcustom type
Lars Ingebrigtsen [Sat, 30 Jul 2022 11:18:44 +0000 (13:18 +0200)]
Fix outline-minor-mode-use-buttons defcustom type

* lisp/outline.el (outline-minor-mode-use-buttons): Fix wrong type.

2 years agobuffer-match-p doc string clarification
Lars Ingebrigtsen [Sat, 30 Jul 2022 11:16:12 +0000 (13:16 +0200)]
buffer-match-p doc string clarification

* lisp/subr.el (buffer-match-p): Actually say that nil is a valid
value.

2 years agoAdjust outline--use-buttons-p to buffer-match-p change
Lars Ingebrigtsen [Sat, 30 Jul 2022 10:50:47 +0000 (12:50 +0200)]
Adjust outline--use-buttons-p to buffer-match-p change

* lisp/outline.el (outline-minor-mode-use-buttons): Adjust doc string.
(outline--use-buttons-p): No longer any need to special-case t/nil.

2 years agoMove a test from subr-tests to print-tests
Lars Ingebrigtsen [Sat, 30 Jul 2022 10:45:36 +0000 (12:45 +0200)]
Move a test from subr-tests to print-tests

2 years ago* lisp/apropos.el (apropos-documentation): Simplify.
Stefan Kangas [Sat, 30 Jul 2022 10:06:25 +0000 (12:06 +0200)]
* lisp/apropos.el (apropos-documentation): Simplify.

2 years agoAvoid leaving temp buffers in bib-mode and refbib
Stefan Kangas [Sat, 30 Jul 2022 09:52:05 +0000 (11:52 +0200)]
Avoid leaving temp buffers in bib-mode and refbib

* lisp/textmodes/bib-mode.el (bib-capitalize-title):
* lisp/textmodes/refbib.el (r2b-capitalize-title): Use
with-temp-buffer.

2 years agoPrefer defvar-keymap in dns-mode-map
Stefan Kangas [Sat, 30 Jul 2022 09:22:19 +0000 (11:22 +0200)]
Prefer defvar-keymap in dns-mode-map

* lisp/textmodes/dns-mode.el (dns-mode-map): Prefer defvar-keymap.

2 years agoPrefer defvar-keymap in nroff-mode-map
Stefan Kangas [Sat, 30 Jul 2022 07:46:20 +0000 (09:46 +0200)]
Prefer defvar-keymap in nroff-mode-map

* lisp/textmodes/nroff-mode.el (nroff-mode-map): Prefer defvar-keymap.

2 years agoFix namespace use in bib-mode.el
Stefan Kangas [Fri, 29 Jul 2022 16:31:19 +0000 (18:31 +0200)]
Fix namespace use in bib-mode.el

* lisp/textmodes/bib-mode.el (bib-unread-file, bib-add)
(bib-return-key, bib-mark, bib-unread): Rename from
'unread-bib-file', 'addbib', 'return-key-bib', 'mark-bib', and
'unread-bib' respectively.  Maintain old names as obsolete aliases and
update uses.
(bib-mode-map): Prefer defvar-keymap.

2 years ago; * lisp/emacs-lisp/regi.el: Delete incorrect "last modified" comment.
Stefan Kangas [Fri, 29 Jul 2022 15:56:55 +0000 (17:56 +0200)]
; * lisp/emacs-lisp/regi.el: Delete incorrect "last modified" comment.

2 years ago; * lisp/ffap.el: Comment cleanup.
Stefan Kangas [Fri, 29 Jul 2022 12:52:01 +0000 (14:52 +0200)]
; * lisp/ffap.el: Comment cleanup.

2 years agoMake ffap-newfile-prompt obsolete
Stefan Kangas [Fri, 29 Jul 2022 11:02:48 +0000 (13:02 +0200)]
Make ffap-newfile-prompt obsolete

* lisp/ffap.el (ffap-newfile-prompt): Obsolete in favor of
'find-file-not-found-functions'.

2 years ago* lisp/ffap.el (ffap-url-regexp): Add gemini.
Stefan Kangas [Fri, 29 Jul 2022 08:45:40 +0000 (10:45 +0200)]
* lisp/ffap.el (ffap-url-regexp): Add gemini.

2 years agoMake outline-view-change-hook obsolete
Stefan Kangas [Fri, 15 Jul 2022 16:08:34 +0000 (18:08 +0200)]
Make outline-view-change-hook obsolete

According to a comment, this hook "Seems only used by lazy-lock.
I.e. obsolete."  But lazy-lock has been deleted.
* lisp/outline.el (outline-view-change-hook): Make obsolete.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 30 Jul 2022 04:30:23 +0000 (06:30 +0200)]
Merge from origin/emacs-28

e0f54c62ec CC Mode: fontify variables/functions after line comments e...
2c6a94c5b8 ; Correct the meaning of "cf." in tips.texi

2 years agoMinor improvements to precision scroll interpolation
Po Lu [Sat, 30 Jul 2022 03:26:46 +0000 (11:26 +0800)]
Minor improvements to precision scroll interpolation

* lisp/pixel-scroll.el (pixel-scroll-start-momentum): Bump GC
cons threshold temporarily.  This leads to a very noticable
improvement to animation speed.

2 years agoFix failure caused by misreading the frame synchronization spec
Po Lu [Sat, 30 Jul 2022 02:04:26 +0000 (10:04 +0800)]
Fix failure caused by misreading the frame synchronization spec

* src/xterm.c (x_sync_update_begin): Ensure value % 4 is 1.
(x_sync_update_finish): Then, add 3.

2 years agoDon't freeze if the compositing manager crashes
Po Lu [Sat, 30 Jul 2022 01:40:00 +0000 (09:40 +0800)]
Don't freeze if the compositing manager crashes

* src/xterm.c (x_if_event): New function, like XIfEvent but with
a timeout.
(x_sync_wait_for_frame_drawn_event): Disable frame
synchronization if x_if_event times out after 1 second.

2 years agoCC Mode: fontify variables/functions after line comments ending in spaces
Alan Mackenzie [Fri, 29 Jul 2022 20:18:58 +0000 (20:18 +0000)]
CC Mode: fontify variables/functions after line comments ending in spaces

* lisp/progmodes/cc-engine.el (c-forward-comment-minus-1): Take account of
spaces preceding a linefeed when scanning a putative line comment end.

2 years ago; * src/xdisp.c (handle_fontified_prop): Fix BOB case.
Gregory Heytings [Fri, 29 Jul 2022 17:21:20 +0000 (19:21 +0200)]
; * src/xdisp.c (handle_fontified_prop): Fix BOB case.

2 years agoImprove narrowing when iterator has moved outside of narrowing bounds.
Gregory Heytings [Fri, 29 Jul 2022 16:23:16 +0000 (16:23 +0000)]
Improve narrowing when iterator has moved outside of narrowing bounds.

* src/xdisp.c (get_narrowed_begv, get_narrowed_zv): Add 'pos'
parameter.
(init_iterator): Add arguments to 'get_narrowed_begv' and
'get_narrowed_zv'.
(handle_fontified_prop): Recompute the narrowing when iterator
has moved outside of narrowing bounds.

* src/dispextern.h (get_narrowed_begv, get_narrowed_zv): Adapt
prototypes.

* src/composite.c (find_automatic_composition): Add argument
to 'get_narrowed_begv'.

2 years ago; * buffers.texi (Buffer List): Mention t
Philip Kaludercic [Fri, 29 Jul 2022 16:21:54 +0000 (18:21 +0200)]
; * buffers.texi (Buffer List): Mention t

2 years ago* subr.el (buffer-match-p): Add t as trivial a condition
Philip Kaludercic [Fri, 29 Jul 2022 11:54:47 +0000 (13:54 +0200)]
* subr.el (buffer-match-p): Add t as trivial a condition

2 years agoImprovement for long line optimizations.
Gregory Heytings [Fri, 29 Jul 2022 15:26:49 +0000 (15:26 +0000)]
Improvement for long line optimizations.

* src/xdisp.c (handle_fontified_prop): Also apply the forced
narrowing at BOB.

2 years agoAdapt native compiler to change in narrow-to-region
Gerd Möllmann [Fri, 29 Jul 2022 15:28:25 +0000 (17:28 +0200)]
Adapt native compiler to change in narrow-to-region

* lisp/emacs-lisp/comp.el (comp-limplify-lap-inst): Add third
argument nil for narrow-to-region.

2 years agoFix handling of extended frame resize synchronization
Po Lu [Fri, 29 Jul 2022 12:54:30 +0000 (20:54 +0800)]
Fix handling of extended frame resize synchronization

* src/xterm.c (x_sync_wait_for_frame_drawn_event): Don't wait if
the frame is invisible.  If it is mapped again the compositing
manager is obliged to send us another event, so we can wait in
that case.
(x_sync_update_begin, x_sync_update_finish): Handle extended
resize synchronization here.
(XTframe_up_to_date, handle_one_xevent): Save stuff here.

* src/xterm.h (struct x_output): New field
`resize_counter_value'.

2 years agoFix outline byte compilation warning from previous change
Lars Ingebrigtsen [Fri, 29 Jul 2022 11:21:45 +0000 (13:21 +0200)]
Fix outline byte compilation warning from previous change

* lisp/outline.el (outline--use-buttons-p): Move around to fix
byte compilation warning.

2 years agoFix up the outline minor mode button logic
Lars Ingebrigtsen [Fri, 29 Jul 2022 11:20:06 +0000 (13:20 +0200)]
Fix up the outline minor mode button logic

* lisp/outline.el (outline-minor-mode-highlight-buffer): Factor
out... (bug#56820).
(outline--use-buttons-p): ... to here.
(outline-hide-subtree, outline--fix-up-all-buttons)
(outline-show-subtree): Use it.

2 years ago; Improve NEWS entries for buttons and icons
Eli Zaretskii [Fri, 29 Jul 2022 11:12:24 +0000 (14:12 +0300)]
; Improve NEWS entries for buttons and icons

* etc/NEWS: Improve documentation of
'outline-minor-mode-use-buttons'.

2 years ago; * doc/emacs/display.texi (Icons): Improve indexing and wording.
Eli Zaretskii [Fri, 29 Jul 2022 10:59:15 +0000 (13:59 +0300)]
; * doc/emacs/display.texi (Icons): Improve indexing and wording.

2 years ago; Minor copyedits of documentation related to long-line handling
Eli Zaretskii [Fri, 29 Jul 2022 10:20:38 +0000 (13:20 +0300)]
; Minor copyedits of documentation related to long-line handling

* src/xdisp.c (syms_of_xdisp) <fontification-functions>:
* etc/NEWS: Fix documentation related to long lines.  (Bug#56682)

2 years ago; * src/xterm.c (x_update_begin): Fix build without DBE.
Po Lu [Fri, 29 Jul 2022 09:23:52 +0000 (17:23 +0800)]
; * src/xterm.c (x_update_begin): Fix build without DBE.

2 years agoMinor additions to last change
Po Lu [Fri, 29 Jul 2022 09:14:05 +0000 (17:14 +0800)]
Minor additions to last change

* doc/emacs/xresources.texi (Table of Resources): Update
description of `extended'.
* etc/NEWS: Announce frame tearing reduction.

* src/xterm.c (x_sync_update_finish, x_sync_update_begin)
(x_update_begin, x_update_end, show_back_buffer, x_flip_and_flush)
(XTframe_up_to_date, handle_one_xevent): Minor redesign of frame
synchronization feature.  Fix crash with overflow and checking.

2 years agoImplement monitor refresh rate synchronization on X
Po Lu [Fri, 29 Jul 2022 08:20:32 +0000 (16:20 +0800)]
Implement monitor refresh rate synchronization on X

* src/xfns.c (x_set_parent_frame, Fx_create_frame): Disable
vsync on child and embedded frames.
* src/xmenu.c (x_menu_show): Fix XMenu position calculation in
child frames.

* src/xterm.c (x_sync_is_frame_drawn_event)
(x_sync_wait_for_frame_drawn_event): New functions.
(x_sync_update_begin): Wait for frame to be drawn if not double
buffered.
(x_sync_update_finish): Set FRAME_X_WAITING_FOR_DRAW (f).
(show_back_buffer): Wait for frame to be drawn before flipping
buffers.
(XTframe_up_to_date): Set FRAME_X_WAITING_FOR_DRAW if bumped.
(handle_one_xevent): Handle frame drawn events.

* src/xterm.h (struct x_output): New fields for frame dirtyness
and vsync.

2 years agoMerge branch 'feature/long-lines-and-font-locking'
Gregory Heytings [Fri, 29 Jul 2022 08:22:03 +0000 (10:22 +0200)]
Merge branch 'feature/long-lines-and-font-locking'

2 years agoFurther minor improvements of documentation
Gregory Heytings [Fri, 29 Jul 2022 08:11:10 +0000 (08:11 +0000)]
Further minor improvements of documentation

* src/xdisp.c (syms_of_xdisp) <fontification-functions>:
* etc/NEWS: Further minor wording improvements.

2 years ago; Correct the meaning of "cf." in tips.texi
Štěpán Němec [Fri, 29 Jul 2022 07:37:50 +0000 (09:37 +0200)]
; Correct the meaning of "cf." in tips.texi

Cf. e.g. https://en.wiktionary.org/wiki/cf.

* doc/lispref/tips.texi (Documentation Tips): Correct the meaning of
"cf.".

2 years agoMinor improvements of recent documentation changes
Eli Zaretskii [Fri, 29 Jul 2022 07:08:50 +0000 (10:08 +0300)]
Minor improvements of recent documentation changes

* src/editfns.c (Fwiden):
* doc/lispref/display.texi (Auto Faces):
* src/xdisp.c (syms_of_xdisp) <fontification-functions>:
* etc/NEWS: Clarify and improve wording of documentation changes.

2 years agoAlso update after buffer flip caused by flush_frame
Po Lu [Fri, 29 Jul 2022 06:52:31 +0000 (14:52 +0800)]
Also update after buffer flip caused by flush_frame

* src/xterm.c (x_flip_and_flush): Mark the end of a sync frame.

2 years ago; Fix wording of some doc strings in selection.el
Eli Zaretskii [Fri, 29 Jul 2022 06:31:26 +0000 (09:31 +0300)]
; Fix wording of some doc strings in selection.el

* lisp/select.el (xselect-dnd-target-available-p)
(xselect-dt-netfile-available-p, xselect-uri-list-available-p):
Doc fixes.

2 years agoImplement extended frame synchronization
Po Lu [Fri, 29 Jul 2022 02:13:54 +0000 (10:13 +0800)]
Implement extended frame synchronization

* src/xterm.c (x_atom_refs): New atom _NET_WM_FRAME_TIMINGS.
(x_sync_update_finish, x_sync_update_begin): New frame.
(x_update_begin, x_update_end, XTframe_up_to_date): Begin and
end frames accordingly if extended frame synchronization is
enabled.
(handle_one_xevent): Ignore timing and frame drawn events.

* src/xterm.h (struct x_display_info): New atom.
(FRAME_X_COUNTER_VALUE): New macro.

2 years agoDon't offer meaningless selection targets during drag-and-drop
Po Lu [Fri, 29 Jul 2022 00:50:55 +0000 (08:50 +0800)]
Don't offer meaningless selection targets during drag-and-drop

* lisp/select.el (xselect-dnd-target-available-p): New function.
(selection-converter-alist): Register it as the availability
function for DND specific targets.

2 years agoFinal documentation tweaks.
Gregory Heytings [Thu, 28 Jul 2022 21:12:05 +0000 (21:12 +0000)]
Final documentation tweaks.

* etc/NEWS: Update the NEWS entry.

* src/xdisp.c (syms_of_xdisp): Mention the fact that restrictions
may be locked around 'fontification-functions'.

2 years agoAdd an optional 'lock' parameter to 'narrow-to-region'
Gregory Heytings [Thu, 28 Jul 2022 20:37:49 +0000 (20:37 +0000)]
Add an optional 'lock' parameter to 'narrow-to-region'

* src/editfns.c (Fnarrow_to_region): Add the parameter to the
function, and handle it. Update docstring.
(unwind_locked_begv, unwind_locked_zv): New functions.
(Fwiden): Do nothing when restrictions are locked. Update
docstring.
(syms_of_editfns): Replace the 'inhibit-widen' symbol and variable
with a 'restrictions-locked' symbol and variable. Update docstring.

* src/xdisp.c (handle_fontified_prop): Use Fnarrow_to_region with
the new parameter.
(unwind_narrowed_zv): Remove function.

* src/process.c (Finternal_default_process_filter): Add a third
argument to Fnarrow_to_region.

* src/lread.c (readevalloop): Add a third argument to
Fnarrow_to_region.

* src/bytecode.c (exec_byte_code): Add a third argument to
Fnarrow_to_region.

* etc/NEWS (like): Mention the new parameter of 'narrow-to-region'.

* doc/lispref/positions.texi (Narrowing): Document it.

2 years ago* lisp/tab-bar.el (tab-prefix-map): Fix key broken by conversion.
Juri Linkov [Thu, 28 Jul 2022 19:49:09 +0000 (22:49 +0300)]
* lisp/tab-bar.el (tab-prefix-map): Fix key broken by conversion.

2 years ago; * test/lisp/subr-tests.el (string-comparison-test): Add more tests.
Eli Zaretskii [Thu, 28 Jul 2022 18:41:15 +0000 (21:41 +0300)]
; * test/lisp/subr-tests.el (string-comparison-test): Add more tests.

2 years agoCleanup `string-equal-ignore-case' declarations.
Sam Steingold [Thu, 28 Jul 2022 16:35:21 +0000 (12:35 -0400)]
Cleanup `string-equal-ignore-case' declarations.

Also, a minor declaration cleanup for other `compare-strings' thin wrappers.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Remove
  `string-equal-ignore-case', `string-prefix-p', `string-suffix-p'.
(side-effect-and-error-free-fns): Add `proper-list-p' (it already
  was in `pure-fns').
(pure-fns): Remove `string-prefix-p', `string-suffix-p'
  (`string-equal-ignore-case' was missing here).
* lisp/subr.el (proper-list-p): Remove partially duplicate `put's from here.
(string-equal-ignore-case, string-prefix-p, string-suffix-p): Add
  `pure' and `side-effect-free' declarations.
(string-equal-ignore-case): Make inline.

2 years agoa couple more `string-equal-ignore-case' test cases
Sam Steingold [Tue, 26 Jul 2022 18:40:49 +0000 (14:40 -0400)]
a couple more `string-equal-ignore-case' test cases

2 years agoComment fixes for recent icon code
Lars Ingebrigtsen [Thu, 28 Jul 2022 15:49:57 +0000 (17:49 +0200)]
Comment fixes for recent icon code

* lisp/cus-edit.el (custom-icon-state): Add comment.

* lisp/emacs-lisp/icons.el: Remove comment.

2 years ago; Minor fixes to the "icons" feature
Eli Zaretskii [Thu, 28 Jul 2022 14:21:30 +0000 (17:21 +0300)]
; Minor fixes to the "icons" feature

* lisp/emacs-lisp/icons.el (icons--create): Use 'display-images-p'
to test for image capability.

* doc/lispref/display.texi (Icons): Improve indexing,
cross-references, and wording.

2 years agoDelete fast-lock.el and lazy-lock.el
Stefan Kangas [Thu, 28 Jul 2022 13:32:42 +0000 (15:32 +0200)]
Delete fast-lock.el and lazy-lock.el

The 'font-lock-support-mode' is occasionally useful for debugging
purposes, so it remains as a defvar.
Ref: https://lists.gnu.org/r/emacs-devel/2020-08/msg00125.html

* lisp/obsolete/fast-lock.el:
* lisp/obsolete/lazy-lock.el: Delete libraries obsolete since
22.1.  (Bug#56560)

* lisp/font-lock.el (font-lock-support-mode): Make into a defvar and
delete any mention of 'lazy-lock-mode' and 'fast-lock-mode'.
(font-lock-turn-on-thing-lock, font-lock-turn-off-thing-lock):
Drop support for obsolete modes lazy-lock and fast-lock.
(font-lock-after-fontify-buffer)
(font-lock-after-unfontify-buffer): Make into obsolete function
aliases for 'ignore'.  Adjust callers.
(font-lock-keywords, font-lock-inhibit-thing-lock): Adjust
documentation to not mention lazy-lock and fast-lock.
* lisp/font-core.el (font-lock-defaults): Adjust documentation to
not mention 'font-lock-inhibit-thing-lock'.
* lisp/mail/rmail.el (rmail-variables): Don't inhibit obsolete
lazy-lock-mode and fast-lock-mode.

2 years agoFix grab view persisting on Haiku after popup menu closes
Po Lu [Thu, 28 Jul 2022 13:24:10 +0000 (13:24 +0000)]
Fix grab view persisting on Haiku after popup menu closes

* src/haiku_support.cc (BasicMouseUp): Improve handling of
wait_for_release_message.
(be_clear_grab_view): New function.
* src/haiku_support.h: Update prototypes.
* src/haikumenu.c (haiku_menu_show): Call it here.

2 years agoConvert ffap comments to tests
Stefan Kangas [Thu, 28 Jul 2022 12:38:24 +0000 (14:38 +0200)]
Convert ffap comments to tests

* test/lisp/ffap-tests.el (ffap-file-remote-p, ffap-machine-p):
New tests.

2 years ago; Delete LCD Archive entries
Stefan Kangas [Thu, 28 Jul 2022 12:20:56 +0000 (14:20 +0200)]
; Delete LCD Archive entries

* lisp/emacs-lisp/advice.el:
* lisp/emacs-lisp/trace.el:
* lisp/mail/feedmail.el:
* lisp/mail/supercite.el: Delete entries for the defunct LCD Archive.

2 years ago; * src/print.c (print_vectorlike): Fix Lisp_Object type mixup.
Po Lu [Thu, 28 Jul 2022 13:04:06 +0000 (21:04 +0800)]
; * src/print.c (print_vectorlike): Fix Lisp_Object type mixup.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 28 Jul 2022 12:56:25 +0000 (14:56 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

68093c6db3 ; Auto-commit of loaddefs files.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 28 Jul 2022 12:56:25 +0000 (14:56 +0200)]
Merge from origin/emacs-28

ba54f7e39c ; * doc/lispref/windows.texi (Window Sizes): Another typo....
7990d0c36a ; * doc/lispref/windows.texi (Window Sizes): Fix a typo.  ...

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 28 Jul 2022 12:56:25 +0000 (14:56 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

1c8e90649e Bump Emacs version to 28.1.91

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 28 Jul 2022 12:56:24 +0000 (14:56 +0200)]
Merge from origin/emacs-28

92e77873ad Update ChangeLog and AUTHORS for 28.1.91 pretest
093214402b ; * admin/authors.el (authors-aliases): Update.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 28 Jul 2022 12:56:24 +0000 (14:56 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

05df70e755 Revert the `...' documentation back to actual usage

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 28 Jul 2022 12:56:24 +0000 (14:56 +0200)]
Merge from origin/emacs-28

23112f89f9 ; Improve documentation of 'file-name-with-extension'
4be938169d Release the desktop lock in 'kill-emacs-hook'
4ea1f6c7f8 ; * doc/lispref/tips.texi (Documentation Tips): Fix typos....

# Conflicts:
# doc/lispref/tips.texi

2 years agoUse icons in warnings buffers
Lars Ingebrigtsen [Thu, 28 Jul 2022 12:38:54 +0000 (14:38 +0200)]
Use icons in warnings buffers

* lisp/emacs-lisp/warnings.el (warning-suppress-action)
(warning-suppress-log-action): Removed.
New icon.
(warnings-suppress): New helper function.
(display-warning): Use it (bug#46025).

2 years agoUse icons in outline
Lars Ingebrigtsen [Thu, 28 Jul 2022 12:37:59 +0000 (14:37 +0200)]
Use icons in outline

* lisp/help.el (describe-bindings): Don't force buttons on
(bug#56691).

* lisp/outline.el (outline-minor-mode-use-buttons): Default
buttons on in special-mode buffers.
* lisp/outline.el (outline-minor-mode-buttons): Remove.
(outline-open, outline-close): New icons.
(outline-minor-mode-highlight-buffer): Use the new predicate to
switch on/off.
(outline--make-button): Remove.
(outline--make-button-overlay): Use icons.el instantiation.
(outline--valid-emoji-p): Remove.
(outline--valid-char-p): Remove.
(outline--insert-open-button, outline--insert-close-button): Make
point movement better in *Help* buffers.

2 years agoAdd support for user-customizable icons
Lars Ingebrigtsen [Thu, 28 Jul 2022 12:31:33 +0000 (14:31 +0200)]
Add support for user-customizable icons

* doc/emacs/custom.texi (Specific Customization): Mention it.

* doc/emacs/display.texi (Icons): New node.

* doc/lispref/display.texi (Icons): New node.

* lisp/button.el (buttonize):
(button--properties, buttonize-region): Allow not overriding faces.

* lisp/cus-edit.el (custom-save-all): Save icons.
(custom-icon): New widget.
(custom-icon-value-create, custom-toggle-hide-icon)
(custom--icons-widget-value, custom-icon-set): Helper functions
for the widget.
(customize-icon): Main command.
(custom-icon-state-set, custom-icon-state): Helper functions.
(custom-theme-set-icons): Function to be used by theme writers.
(custom-set-icons): Function to be used in .emacs.
(custom-save-icons): New function.

* lisp/custom.el (custom-push-theme): Add icons.

* lisp/emacs-lisp/icons.el: New file.

* test/lisp/emacs-lisp/icons-tests.el: Add some tests.

2 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Thu, 28 Jul 2022 11:31:43 +0000 (13:31 +0200)]
; Auto-commit of loaddefs files.

2 years agoCorrectly set marker position after specpdl is unwound during printing
Po Lu [Thu, 28 Jul 2022 11:25:46 +0000 (19:25 +0800)]
Correctly set marker position after specpdl is unwound during printing

* src/print.c (PRINTFINISH): Don't call set_marker_both with the
wrong current_buffer.  Reported by Lars Ingebrigtsen
<larsi@gnus.org>.

2 years agoMake quickurl.el obsolete (part 2/2)
Stefan Kangas [Fri, 15 Jul 2022 16:46:16 +0000 (18:46 +0200)]
Make quickurl.el obsolete (part 2/2)

* lisp/obsolete/quickurl.el: Add "Obsolete-since" header.
* lisp/info.el (Info-file-list-for-emacs): Delete quickurl entry.
* doc/misc/autotype.texi (QuickURL): Delete section.

2 years agoMake net/quickurl.el obsolete (part 1/2)
Stefan Kangas [Fri, 15 Jul 2022 16:40:58 +0000 (18:40 +0200)]
Make net/quickurl.el obsolete (part 1/2)

* lisp/net/quickurl.el: Move from here...
* lisp/obsolete/quickurl.el: ...to here.

2 years agoDon't export print--unreadable-callback-buffer to lisp
Lars Ingebrigtsen [Thu, 28 Jul 2022 10:39:45 +0000 (12:39 +0200)]
Don't export print--unreadable-callback-buffer to lisp

* src/print.c (syms_of_print): Don't export
`print--unreadable-callback-buffer' to lisp.

2 years agoEnsure that we don't call print-unreadable-function from " prin1"
Lars Ingebrigtsen [Thu, 28 Jul 2022 10:23:53 +0000 (12:23 +0200)]
Ensure that we don't call print-unreadable-function from " prin1"

* src/print.c (PRINTPREPARE): Bind the current buffer so that we
can retrieve it later.
(print_vectorlike): Use it (bug#56773).
(syms_of_print): New internal `print--unreadable-callback-buffer'
variable.

2 years ago; * doc/lispref/windows.texi (Window Sizes): Another typo. (Bug#56811)
Eli Zaretskii [Thu, 28 Jul 2022 09:56:44 +0000 (12:56 +0300)]
; * doc/lispref/windows.texi (Window Sizes): Another typo.  (Bug#56811)

2 years ago; * doc/lispref/windows.texi (Window Sizes): Fix a typo. (Bug#56811)
Eli Zaretskii [Thu, 28 Jul 2022 09:29:07 +0000 (12:29 +0300)]
; * doc/lispref/windows.texi (Window Sizes): Fix a typo.  (Bug#56811)

2 years agoBump Emacs version to 28.1.91
Stefan Kangas [Thu, 28 Jul 2022 09:20:47 +0000 (11:20 +0200)]
Bump Emacs version to 28.1.91

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 28.1.91.

2 years agoUpdate ChangeLog and AUTHORS for 28.1.91 pretest
Stefan Kangas [Thu, 28 Jul 2022 09:15:51 +0000 (11:15 +0200)]
Update ChangeLog and AUTHORS for 28.1.91 pretest

* ChangeLog.3:
* etc/AUTHORS: Update.

2 years ago; * admin/authors.el (authors-aliases): Update.
Stefan Kangas [Thu, 28 Jul 2022 09:07:27 +0000 (11:07 +0200)]
; * admin/authors.el (authors-aliases): Update.

2 years agoDoc fixes: don't mention EFS
Stefan Kangas [Thu, 28 Jul 2022 08:48:07 +0000 (10:48 +0200)]
Doc fixes: don't mention EFS

* doc/misc/ede.texi (ede-project):
* doc/misc/gnus.texi (Directory Groups, Various Various):
* lisp/cedet/ede/base.el (ede-project):
* lisp/gnus/mml.el (mml-attach-external):
* lisp/org/org.el (org-file-apps):
* lisp/url/url-file.el (url-file-find-possibly-compressed-file):
Doc fixes; don't mention XEmacs specific library EFS.

2 years agoMinor update of truncate-line optimization
Eli Zaretskii [Thu, 28 Jul 2022 08:39:28 +0000 (11:39 +0300)]
Minor update of truncate-line optimization

* src/xdisp.c (forward_to_next_line_start): Look into display and
overlay strings only when lines are truncated on display.

2 years agoNew test ffap-replace-file-component
Stefan Kangas [Thu, 28 Jul 2022 08:33:25 +0000 (10:33 +0200)]
New test ffap-replace-file-component

* test/lisp/ffap-tests.el (ffap-replace-file-component): New test.

2 years agoMinor doc fixes in ffap.el
Stefan Kangas [Thu, 28 Jul 2022 08:19:20 +0000 (10:19 +0200)]
Minor doc fixes in ffap.el

* lisp/ffap.el:
(ffap-url-fetcher): Minor doc fixes.  Adapt to new default; don't
mention defunct/missing library ffap-url.el.

2 years agoRevert the `...' documentation back to actual usage
Lars Ingebrigtsen [Fri, 3 Jun 2022 11:04:13 +0000 (13:04 +0200)]
Revert the `...' documentation back to actual usage

* doc/lispref/tips.texi (Documentation Tips): Document how `...'
is really used now (bug#55780).  ‘...’ is not really used in the
Emacs sources.

(cherry picked from commit 1ed9c1c7f9fe32ff5123091033350beb1ccae4ca)

2 years ago; Improve documentation of 'file-name-with-extension'
Eli Zaretskii [Thu, 28 Jul 2022 07:45:43 +0000 (10:45 +0300)]
; Improve documentation of 'file-name-with-extension'

* lisp/files.el (file-name-with-extension): Doc fix.  (Bug#56809)

2 years agoFix minor problem with scroll bar grabs on Haiku
Po Lu [Thu, 28 Jul 2022 07:28:23 +0000 (07:28 +0000)]
Fix minor problem with scroll bar grabs on Haiku

* haiku_support.cc (class EmacsScrollBar, EmacsScrollBar)
(MouseDown, MouseUp): Keep a counter of the mouse down events
received.

2 years agoFix race conditions in mouse button handling on Haiku
Po Lu [Thu, 28 Jul 2022 07:17:04 +0000 (07:17 +0000)]
Fix race conditions in mouse button handling on Haiku

* src/haiku_support.cc (class EmacsView): New field
`grabbed_buttons'.  Remove `previous_buttons'.
(BasicMouseDown, BasicMouseUp): Accept new parameter `message'.
Use data from that message instead.
(MouseDown, MouseUp): Pass the current message to BasicMouseUp
and BasicMouseDown.

2 years agoRelease the desktop lock in 'kill-emacs-hook'
Paul Pogonyshev [Wed, 27 Jul 2022 19:20:55 +0000 (21:20 +0200)]
Release the desktop lock in 'kill-emacs-hook'

* lisp/desktop.el: Run 'desktop--on-kill' in 'kill-emacs-hook'.
(desktop--on-kill): New function, refactored from 'desktop-kill'.
(desktop-kill): Call 'desktop--on-kill'.  (Bug#56800)

2 years ago* src/xterm.c (x_set_offset): Respect x-no-window-manager.
Po Lu [Thu, 28 Jul 2022 02:59:19 +0000 (10:59 +0800)]
* src/xterm.c (x_set_offset): Respect x-no-window-manager.

2 years agoRemove excessive synchronization from x_sync_with_move
Po Lu [Thu, 28 Jul 2022 01:25:37 +0000 (09:25 +0800)]
Remove excessive synchronization from x_sync_with_move

* src/xterm.c (x_sync_with_move): Remove redundant XSync.  The X
server always handles requests in order.

2 years agoDrop support for obsolete "Lisp Code Directory" from ffap
Stefan Kangas [Wed, 27 Jul 2022 22:25:33 +0000 (00:25 +0200)]
Drop support for obsolete "Lisp Code Directory" from ffap

Ref: https://flex.phys.tohoku.ac.jp/texi/faq/faq_146.html
Note also that the host "archive.cis.ohio-state.edu" is unknown.
* lisp/ffap.el (ffap-alist): Drop support for obsolete "Lisp Code
Directory".
(ffap-lcd): Make obsolete.

2 years ago; * lisp/ffap.el: Delete code commented out since 1997.
Stefan Kangas [Wed, 27 Jul 2022 22:17:53 +0000 (00:17 +0200)]
; * lisp/ffap.el: Delete code commented out since 1997.

2 years agoDrop support for XEmacs package EFS
Stefan Kangas [Wed, 27 Jul 2022 21:33:03 +0000 (23:33 +0200)]
Drop support for XEmacs package EFS

EFS is a long defunct XEmacs-specific fork of Ange FTP that is
superseded by TRAMP.
* lisp/ffap.el (ffap-ftp-default-user)
(ffap-replace-file-component, ffap-host-to-filename):
* lisp/gnus/mml.el (mml-parse-file-name):
* lisp/gnus/nnheader.el (nnheader-re-read-dir):
* lisp/net/browse-url.el (browse-url-filename-alist):
* lisp/speedbar.el (speedbar-check-vc): Drop support for XEmacs
package EFS.