Lars Ingebrigtsen
e8d198a00a
Fix rx.el byte-compile warning in loaddefs.el
...
* lisp/emacs-lisp/rx.el (rx--to-expr, rx--pcase-transform):
Autoload to avoid warning when byte-compiling loaddefs.el.
2022-07-31 11:28:04 +02:00
Lars Ingebrigtsen
f8278a923f
Fix sendmail.el byte-compile warning in loaddefs.el
...
* lisp/mail/sendmail.el (mail-send-and-exit): Autoload since it's
referred to by autoloaded code in loaddefs.el.
2022-07-31 11:25:41 +02:00
Lars Ingebrigtsen
0a0e1ed0e0
tramp fixes for byte-compiling loaddefs.el
...
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Move to the main loaddefs file since it's referred to by functions
there.
* lisp/net/tramp.el (tramp-file-name-handler): Autoload to avoid
warning when byte-compiling loaddefs.el.
2022-07-31 11:24:23 +02:00
Lars Ingebrigtsen
c5df73941e
Fix further package.el loaddefs byte-compile warnings
...
* lisp/emacs-lisp/package.el (package-directory-list)
(package-quickstart-file): Specify group to avoid warning when
byte-compiling loaddefs.el.
(package-activated-list): Autoload since we're assigning the
variable from a function completely autoloaded.
2022-07-31 11:21:47 +02:00
Lars Ingebrigtsen
ca14dbd6b5
Fix loaddefs byte-compile warnings from grep.el
...
* lisp/progmodes/grep.el (grep-highlight-matches)
(grep-match-face): Autoload to avoid byte-compile warnings from
loaddefs.el.
2022-07-31 11:17:29 +02:00
Lars Ingebrigtsen
d5fd9e0e5b
Fix loaddefs byte-compile warning from package.el
...
* lisp/emacs-lisp/package.el (package-user-dir): :group has to be
explicit for autoloaded defcustoms.
2022-07-31 11:17:29 +02:00
Lars Ingebrigtsen
02c14216db
Reformulate compile-command condition
...
* lisp/progmodes/compile.el: Reformulate to avoid a byte-compile
warning when compiling loaddefs.el.
2022-07-31 11:17:29 +02:00
Stefan Kangas
a4cf4893d1
Delete aliases obsolete since 21.1 and 22.1
...
* lisp/ls-lisp.el (ls-lisp-dired-ignore-case):
* lisp/files.el (find-file-not-found-hooks): Delete variable aliases,
obsolete since 21.1 and 22.1 respectively.
2022-07-31 11:01:57 +02:00
Eli Zaretskii
92ec08bc46
Support keyboard input and display of U+1E9E
...
* lisp/international/latin1-disp.el (latin1-display):
* lisp/international/iso-transl.el (iso-transl-char-map)
(iso-transl-language-alist): Add U+1E9E capital sharp S.
2022-07-31 11:22:29 +03:00
Po Lu
57100e0a36
; * src/xterm.c (XTset_vertical_scroll_bar): Fix yet another typo.
...
Reported by Lars Ingebrigtsen <larsi@gnus.org>.
2022-07-31 15:12:22 +08:00
Stefan Kangas
d9bd334ef3
Merge from origin/emacs-28
...
eb11dae499 Improve documentation of column-related functions
c95a34c960 * src/macfont.m (macfont_open): Initialize font->space_wid...
31a6a37d45 Improve indexing of keymap variables
2022-07-31 06:30:25 +02:00
Po Lu
3d6af11c42
Fix NS unexec build
...
* nextstep/Makefile.in (all): Only build Emacs.pdmp on pdumper
builds.
* src/sheap.h: Make STATIC_HEAP_SIZE bigger, otherwise I get:
static heap exhausted: avail 67108864 used 67101824 failed
request 20480
2022-07-31 10:55:06 +08:00
Po Lu
b7f227ed8b
; * src/xterm.c (XTset_vertical_scroll_bar): Fix typo in last change.
2022-07-31 10:42:51 +08:00
Po Lu
a66e654276
Fix frame synchronization with scroll bar movement
...
* src/xfns.c (x_set_inhibit_double_buffering): Stop condeming
scroll bars.
* src/xterm.c (x_scroll_bar_create): Create an InputOnly window.
Update event masks accordingly and stop allocating back buffer.
(x_scroll_bar_remove): Stop deallocating back buffer.
(XTset_vertical_scroll_bar, x_scroll_bar_set_handle): Draw onto
the edit window so they can be synchronized with buffer flips.
(x_scroll_bar_clear): Redraw scroll bars instead of just
clearing them.
(x_scroll_bar_handle_expose, x_scroll_bar_redraw): New
functions.
(x_scroll_bar_expose, x_scroll_bar_end_update): Delete
functions.
(handle_one_xevent): Update exposure logic accordingly.
* src/xterm.h (struct scroll_bar): Remove `x_drawable' field.
2022-07-31 10:41:58 +08:00
Stefan Kangas
88d719e95b
; 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.
2022-07-31 01:50:38 +02:00
Stefan Kangas
5b29f8cd98
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.
2022-07-31 01:44:22 +02:00
Stefan Kangas
a3d974d59f
; * etc/NEWS: Minor edits.
2022-07-30 21:34:53 +02:00
Eli Zaretskii
eb11dae499
Improve documentation of column-related functions
...
* doc/lispref/text.texi (Primitive Indent, Columns):
* src/indent.c (Fcurrent_indentation, Fmove_to_column): Document
that column counting ignores invisible text. (Bug#56837)
2022-07-30 19:34:38 +03:00
Gerd Möllmann
ff57f30bee
; Fix warnings from #pragma GCC iagnostic pop on macOS
...
* src/comp.c: Add #pragma GCC diagnostic push in some places.
2022-07-30 17:36:27 +02:00
Gerd Möllmann
9e6eee36b5
Fix native compiler handling of narrow-to-region
...
* lisp/emacs-lisp/comp.el (comp-limplify-lap-inst): Use auto for
byte-narrow-to-region.
2022-07-30 17:32:04 +02:00
Lars Ingebrigtsen
250dbaa7dd
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.)
2022-07-30 15:56:49 +02:00
Lars Ingebrigtsen
d34e38f7d1
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).
2022-07-30 15:36:30 +02:00
Eli Zaretskii
76f49943c3
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.
2022-07-30 16:11:43 +03:00
Mattias Engdegård
d92fb1592a
; * lisp/emacs-lisp/icons.el (icon-preference): repair type
2022-07-30 15:07:12 +02:00
Gregory Heytings
a5adcbdf28
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.
2022-07-30 14:03:37 +02:00
Lars Ingebrigtsen
6ce75b1979
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).
2022-07-30 13:40:59 +02:00
Lars Ingebrigtsen
40c4691355
Fix outline-minor-mode-use-buttons defcustom type
...
* lisp/outline.el (outline-minor-mode-use-buttons): Fix wrong type.
2022-07-30 13:18:44 +02:00
Lars Ingebrigtsen
07d6b3b577
buffer-match-p doc string clarification
...
* lisp/subr.el (buffer-match-p): Actually say that nil is a valid
value.
2022-07-30 13:16:12 +02:00
Lars Ingebrigtsen
30f598bcc1
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.
2022-07-30 12:50:47 +02:00
Lars Ingebrigtsen
2539039335
Move a test from subr-tests to print-tests
2022-07-30 12:45:36 +02:00
Stefan Kangas
cd3ce6e541
* lisp/apropos.el (apropos-documentation): Simplify.
2022-07-30 12:07:49 +02:00
Stefan Kangas
f08f5b7afe
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.
2022-07-30 12:07:49 +02:00
Stefan Kangas
2e21074efd
Prefer defvar-keymap in dns-mode-map
...
* lisp/textmodes/dns-mode.el (dns-mode-map): Prefer defvar-keymap.
2022-07-30 12:07:49 +02:00
Stefan Kangas
7e84db9484
Prefer defvar-keymap in nroff-mode-map
...
* lisp/textmodes/nroff-mode.el (nroff-mode-map): Prefer defvar-keymap.
2022-07-30 12:07:49 +02:00
Stefan Kangas
454c06a22c
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.
2022-07-30 12:07:49 +02:00
Stefan Kangas
9bdcca553f
; * lisp/emacs-lisp/regi.el: Delete incorrect "last modified" comment.
2022-07-30 11:36:36 +02:00
Stefan Kangas
a109cdc8f2
; * lisp/ffap.el: Comment cleanup.
2022-07-30 11:36:36 +02:00
Stefan Kangas
ecfac493fa
Make ffap-newfile-prompt obsolete
...
* lisp/ffap.el (ffap-newfile-prompt): Obsolete in favor of
'find-file-not-found-functions'.
2022-07-30 11:36:36 +02:00
Stefan Kangas
fc79bb6ffc
* lisp/ffap.el (ffap-url-regexp): Add gemini.
2022-07-30 11:36:36 +02:00
Stefan Kangas
53b1e6f96c
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.
2022-07-30 11:36:36 +02:00
YAMAMOTO Mitsuharu
c95a34c960
* src/macfont.m (macfont_open): Initialize font->space_width. (Bug#56808)
2022-07-30 17:21:54 +09:00
Eli Zaretskii
31a6a37d45
Improve indexing of keymap variables
...
* doc/lispref/maps.texi (Standard Keymaps):
* doc/lispref/display.texi (Button Buffer Commands)
(Button Properties):
* doc/lispref/keymaps.texi (Translation Keymaps): Improve indexing
of keymaps. (Bug#56816)
2022-07-30 09:32:48 +03:00
Stefan Kangas
76bcbe5f93
Merge from origin/emacs-28
...
e0f54c62ec CC Mode: fontify variables/functions after line comments e...
2c6a94c5b8 ; Correct the meaning of "cf." in tips.texi
2022-07-30 06:30:23 +02:00
Po Lu
40c0124816
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.
2022-07-30 11:26:46 +08:00
Po Lu
a1975a69b2
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.
2022-07-30 10:04:26 +08:00
Po Lu
af152ffab1
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.
2022-07-30 09:40:00 +08:00
Alan Mackenzie
e0f54c62ec
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.
2022-07-29 20:18:58 +00:00
Gregory Heytings
4b5b447b7f
; * src/xdisp.c (handle_fontified_prop): Fix BOB case.
2022-07-29 19:21:20 +02:00
Gregory Heytings
9c12c3b7c5
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'.
2022-07-29 18:28:44 +02:00
Philip Kaludercic
006f621a89
; * buffers.texi (Buffer List): Mention t
2022-07-29 18:21:54 +02:00