]>
git.eshelyaron.com Git - emacs.git/log
Po Lu [Thu, 2 Dec 2021 10:18:00 +0000 (18:18 +0800)]
Get rid of duplicate pgtk function
* src/pgtkfns.c (Fpgtk_popup_font_panel): Remove function.
(syms_of_pgtkfns): Get rid of removed subr.
Po Lu [Thu, 2 Dec 2021 10:15:23 +0000 (18:15 +0800)]
Documentation fixes for pgtk port
* doc/lispref/display.texi (Defining Faces):
* doc/lispref/frames.texi (Multiple Terminals): Add references
to the `pgtk' terminal type.
Po Lu [Thu, 2 Dec 2021 10:03:51 +0000 (18:03 +0800)]
Fix `menu-set-font' on pgtk
* src/pgtkfns.c (Fx_select_font): New function.
(syms_of_pgtkfns): Define new subr.
Po Lu [Thu, 2 Dec 2021 09:53:58 +0000 (17:53 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk
Lars Ingebrigtsen [Thu, 2 Dec 2021 09:47:18 +0000 (10:47 +0100)]
Make dired-virtual doc string less confusing
* lisp/dired-x.el (dired-virtual): Make the doc string less
confusing (bug#20992).
Lars Ingebrigtsen [Thu, 2 Dec 2021 09:19:10 +0000 (10:19 +0100)]
Add `cl-constantly' function
* lisp/emacs-lisp/cl-lib.el (cl-constantly): Add Common Lisp
function missing (bug#21584).
Jim Porter [Thu, 2 Dec 2021 05:55:31 +0000 (21:55 -0800)]
Ensure there are no duplicate separators when creating a context menu
Previously, if there were three or more consecutive menu separators,
not all of them would be removed.
* lisp/mouse.el (context-menu-map): Ensure no duplicate separators
(bug#52237).
Daniel Fleischer [Thu, 2 Dec 2021 08:11:21 +0000 (09:11 +0100)]
browse-url-button-regexp: Recognize gemini: links
Gemini is a relatively new text-based web protocol, similar to
gopher. There's the "elpher" package to browse gopher and gemini
pages. Adding it to the regexp will make Emacs be aware of gemini links,
e.g. in ERC.
* lisp/net/browse-url.el (browse-url-button-regexp): Add support
for the gemini: URL type.
Michael Levine [Thu, 2 Dec 2021 08:06:19 +0000 (09:06 +0100)]
Fix usage of deprecated syntax in some cedet tests
* test/lisp/cedet/srecode/fields-tests.el
(srecode-field-utest-impl): Fix deprecated syntax.
Lars Ingebrigtsen [Thu, 2 Dec 2021 07:31:37 +0000 (08:31 +0100)]
Add a bidi-control target for `glyphless-char-display-control'
* doc/lispref/display.texi (Glyphless Chars): Document bidi-control.
* lisp/international/characters.el (char-acronym-table): Add the
ISOLATE characters.
(update-glyphless-char-display): Implement bidi-control, and mark
all Cf characters we don't know about as UNK.
(glyphless--bidi-control-characters): New variable.
(glyphless-char-display-control): Add a new type -- bidi-control.
* lisp/textmodes/glyphless-mode.el (glyphless-mode-types): Add a
new type -- bidi-control.
Stefan Monnier [Thu, 2 Dec 2021 03:59:35 +0000 (22:59 -0500)]
* lisp/cedet/semantic/bovine/c.el (semantic-tag-protection): Silence warning
We used to get
cedet/semantic/bovine/c.el:1462:25: Warning: value returned from
(string= s "static") is unused
* lisp/cedet/semantic/bovine/c.el (semantic-tag-protection): Merge two
`when` into an `if` and set `prot` instead of throwing away a result.
Use `pcase` while we're at it.
Stefan Monnier [Thu, 2 Dec 2021 03:51:39 +0000 (22:51 -0500)]
* lisp/emacs-lisp/macroexp.el: Improve last change
Don't burp when `byte-compile-warning-enabled-p` is not yet defined.
And use the call that we had already instead of adding a new one.
(macroexp--warn-wrap): Allow `category`
to be a list to pass to `byte-compile-warning-enabled-p`.
(macroexp-macroexpand): Simplify accordingly.
Po Lu [Thu, 2 Dec 2021 03:01:59 +0000 (11:01 +0800)]
Add some primitive momentum-based precision scrolling
The algorithm used to scroll the display kinetically is very
simple and needs improvement. Someone should work on that
eventually.
* lisp/pixel-scroll.el (pixel-scroll-precision-use-momentum):
New user option.
(pixel-scroll-precision-mode-map): Add
`pixel-scroll-start-momentum'.
(pixel-scroll-kinetic-state):
(pixel-scroll-accumulate-velocity):
(pixel-scroll-calculate-velocity): New functions.
(pixel-scroll-start-momentum): New command.
* src/xterm.c (handle_one_xevent): Fix touch-end event
generation.
Po Lu [Thu, 2 Dec 2021 02:27:24 +0000 (10:27 +0800)]
Add `touch-end' event type
* etc/NEWS:
* doc/lispref/commands.texi (Misc Events): Document new
`touch-end' event type.
* lisp/bindings.el: Ignore touch-end events by default.
* src/keyboard.c (make_lispy_event): Add support for
TOUCH_END_EVENT events.
(syms_of_keyboard): New symbol `touch-end'.
* src/termhooks.h (enum event_kind): New member
`TOUCH_END_EVENT'.
* src/xterm.c (handle_one_xevent): Send touch-end events when
appropriate.
Po Lu [Thu, 2 Dec 2021 01:56:52 +0000 (09:56 +0800)]
Fix precision scrolling when there is a scroll margin
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down)
(pixel-scroll-precision-scroll-up): Take scroll margin into
accout.
Po Lu [Thu, 2 Dec 2021 01:21:11 +0000 (09:21 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Thu, 2 Dec 2021 01:15:43 +0000 (09:15 +0800)]
Get rid of vmotion loop in `pixel-scroll-precision-scroll-up'
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-up): Use
posn-at-x-y for cursor motion.
Lars Ingebrigtsen [Wed, 1 Dec 2021 22:27:09 +0000 (23:27 +0100)]
Change how Dired displays available space
* doc/emacs/dired.texi (Misc Dired Features): Document it (bug#23812).
* lisp/dired.el (dired-free-space): New user option.
(dired-insert-directory): Use it from here.
(dired--insert-disk-space): New function that uses the user option.
* lisp/files.el (insert-directory): Don't transform "total" here.
* lisp/ls-lisp.el (ls-lisp--insert-directory): Or here. Instead
just leave the "total <num>" bit alone, and let Dired transform it.
* test/lisp/files-tests.el (files-tests): Move "available" tests
to dired-tests.
* test/lisp/dired-tests.el (data-dir): Moved here.
Lars Ingebrigtsen [Wed, 1 Dec 2021 19:31:14 +0000 (20:31 +0100)]
Fix "SEE ALSO" buttons in some man pages
* lisp/man.el (Man-highlight-references0): Don't include "and" in
the links (bug#52229).
Andrea Corallo [Wed, 1 Dec 2021 14:01:55 +0000 (15:01 +0100)]
Make use of `comp-cstr-shallow-copy'
* lisp/emacs-lisp/comp.el (comp-mvar-propagate): Remove.
(comp-fwprop-call, comp-fwprop-insn): Use `comp-cstr-shallow-copy'.
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-set-cmp-range)
(comp-cstr-union-1-no-mem, comp-cstr-union-1)
(comp-cstr-intersection-no-mem, comp-cstr-intersection)
(comp-cstr-negation): Use `comp-cstr-shallow-copy'.
Andrea Corallo [Wed, 1 Dec 2021 13:39:33 +0000 (14:39 +0100)]
* Redefine `comp-cstr-shallow-copy'
* lisp/emacs-lisp/comp-cstr.el (comp-cstr): Don't synthesize copier
function.
(comp-cstr-shallow-copy): New function.
(comp-cstr-=): Use `copy-sequence'.
Andrea Corallo [Wed, 1 Dec 2021 10:23:25 +0000 (11:23 +0100)]
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Decl struct predicates as pure
Lars Ingebrigtsen [Wed, 1 Dec 2021 19:16:29 +0000 (20:16 +0100)]
Make `C-x C-d' require either an existing directory or a wildcard
* lisp/files.el (list-directory): Require either an existing
directory or a wildcard (bug#25807).
Stefan Monnier [Wed, 1 Dec 2021 19:05:09 +0000 (14:05 -0500)]
* lisp/emacs-lisp/cconv.el (cconv--lifted-arg): Simplify
Lars Ingebrigtsen [Wed, 1 Dec 2021 18:49:07 +0000 (19:49 +0100)]
Fix table-fixed-width-mode when typing fast
* lisp/textmodes/table.el (table-with-cache-buffer): Use the value
of table-fixed-width-mode in the correct buffer (bug#26701).
Eli Zaretskii [Wed, 1 Dec 2021 18:11:21 +0000 (20:11 +0200)]
Mention 'glyphless-display-mode' in conjunction with bidi display
* doc/emacs/mule.texi (Bidirectional Editing): Mention
'glyphless-display-mode'. (Bug#27544)
Lars Ingebrigtsen [Wed, 1 Dec 2021 16:33:34 +0000 (17:33 +0100)]
Fix fencepost error in pixel-fill--fill-line
* lisp/textmodes/pixel-fill.el (pixel-fill--fill-line): Don't add
a newline (and continuation) if we're at the end of the line.
Robert Pluim [Wed, 1 Dec 2021 16:11:07 +0000 (17:11 +0100)]
characters.el: remove repetition in glyphless-char-display-control
* lisp/international/characters.el (glyphless-char-display-method):
New custom widget for the different options for displaying glyphless
characters.
(glyphless-char-display-control): Use 'glyphless-char-display-method'.
Lars Ingebrigtsen [Wed, 1 Dec 2021 16:20:11 +0000 (17:20 +0100)]
Add new face `variable-pitch-text'
* doc/emacs/display.texi (Standard Faces): Mention in.
* lisp/faces.el (variable-pitch-text): New face.
* lisp/gnus/gnus-art.el (gnus-header): Use it.
* lisp/net/shr.el (shr-text): Use it.
Mattias Engdegård [Mon, 22 Nov 2021 15:56:38 +0000 (16:56 +0100)]
Fix closure-conversion of shadowed captured lambda-lifted vars
Lambda-lifted variables (ones passed explicitly to lambda-lifted
functions) that are also captured in an outer closure and shadowed
were renamed incorrectly (bug#51982).
Reported by Paul Pogonyshev.
* lisp/emacs-lisp/cconv.el (cconv--lifted-arg): New.
(cconv-convert): Provide correct definiens for the closed-over
variable.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
* test/lisp/emacs-lisp/cconv-tests.el (cconv-tests--intern-all)
(cconv-closure-convert-remap-var): Add tests.
Lars Ingebrigtsen [Wed, 1 Dec 2021 15:53:00 +0000 (16:53 +0100)]
Add a new minor mode `glyphless-display-mode'
* doc/emacs/display.texi (Text Display): Mention it.
* doc/lispref/display.texi (Glyphless Chars): Document it.
* lisp/textmodes/glyphless-mode.el: New minor mode (bug#27544).
Lars Ingebrigtsen [Wed, 1 Dec 2021 15:48:06 +0000 (16:48 +0100)]
Fix update-glyphless-char-display variable setting
* lisp/international/characters.el
(update-glyphless-char-display): Only set the variable if given.
Lars Ingebrigtsen [Wed, 1 Dec 2021 14:03:16 +0000 (15:03 +0100)]
Make pixel-fill-region handle space regions better
* lisp/textmodes/pixel-fill.el (pixel-fill-region): Preserve the
face on the replacement spaces.
Eli Zaretskii [Wed, 1 Dec 2021 13:57:59 +0000 (15:57 +0200)]
; * src/w32term.c (w32_construct_mouse_wheel): Fix a typo.
Po Lu [Wed, 1 Dec 2021 13:54:10 +0000 (21:54 +0800)]
Fix precision pixel scrolling for a recent change
* lisp/pixel-scroll.el (pixel-scroll-precision-mode-map): Use
`mwheel-coalesce-scroll-events' instead.
Po Lu [Wed, 1 Dec 2021 13:50:43 +0000 (21:50 +0800)]
Stop relying on `x_coalesce_scroll_events' in pgtk code
* src/pgtkterm.c (scroll_event): Use
`mwheel_coalesce_scroll_events'.
(x_coalesce_scroll_events): Remove variable.
Po Lu [Wed, 1 Dec 2021 13:50:02 +0000 (21:50 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk
Lars Ingebrigtsen [Wed, 1 Dec 2021 13:10:19 +0000 (14:10 +0100)]
Enable gnus-treat-fold-headers by default
* lisp/gnus/gnus-art.el (gnus-treat-fold-headers): Change default
to `head'.
Lars Ingebrigtsen [Wed, 1 Dec 2021 05:30:32 +0000 (06:30 +0100)]
Use proportional fonts in the Gnus headers by default
* lisp/gnus/gnus-art.el (gnus-header): Inherit from `variable-pitch'.
(gnus--variable-pitch-p): New helper function.
(gnus-article-treat-fold-headers): Fill using pixel filling.
Lars Ingebrigtsen [Wed, 1 Dec 2021 05:18:12 +0000 (06:18 +0100)]
Preserve newlines at the end of pixel-fill-region
* lisp/textmodes/pixel-fill.el (pixel-fill-region): Preserve
newlines at the end.
Eli Zaretskii [Wed, 1 Dec 2021 13:36:55 +0000 (15:36 +0200)]
Support precision mouse scrolling on MS-Windows
* src/w32fns.c (w32_wnd_proc): Pass the WM_SETTINGCHANGE message
to the Lisp thread.
* src/w32term.c (w32_construct_mouse_wheel): Support mice with
precision scrolling wheel.
(w32_get_mouse_wheel_vertical_delta): New function.
(w32_read_socket): When the WM_SETTINGCHANGE is received, call
'w32_get_mouse_wheel_vertical_delta'.
(w32_initialize): Call 'w32_get_mouse_wheel_vertical_delta' at
startup.
* src/nsterm.m (syms_of_nsterm):
* src/haikuterm.c (syms_of_haikuterm):
* src/xterm.c (syms_of_xterm): Remove window-system specific
variables for coalescing mwheel events.
* src/keyboard.c (syms_of_keyboard)
<mwheel-coalesce-scroll-events>: New variable, to replace the
above platform-specific ones.
* doc/lispref/commands.texi (Misc Events): Improve wording of the
description of mouse-wheel events.
Stefan Kangas [Wed, 1 Dec 2021 10:23:29 +0000 (11:23 +0100)]
update_autogen: Remove deprecated -I flag
* admin/update_autogen (info_dir): Remove deprecated -I flag; it is no
longer used since info/dir is now generated at install time if needed,
and is not in the repository any more.
Po Lu [Wed, 1 Dec 2021 07:20:08 +0000 (15:20 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk
Stefan Kangas [Wed, 1 Dec 2021 05:30:23 +0000 (06:30 +0100)]
; Merge from origin/emacs-28
The following commit was skipped:
bc6bcb8f0b ; Auto-commit of loaddefs files.
Stefan Kangas [Wed, 1 Dec 2021 05:30:22 +0000 (06:30 +0100)]
Merge from origin/emacs-28
e632b83a28 Update authors.el for Emacs 28
e9fdb11903 ; * ChangeLog.3: Some additional fixes.
8fa4749df1 ; * ChangeLog.3: Filename fixes.
ea5a90b4f4 * lisp/repeat.el: Fix long-standing problem when a random ...
ef4954b69c * lisp/repeat.el (repeat-keep-prefix): Change default to nil.
6d5886e780 * test/lisp/repeat-tests.el (repeat-tests-call-b): Test fo...
9e16c6a96d ; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc...
9aa8fd6e62 * src/callint.c (Fcall_interactively): Fix inhibit_mouse_e...
70c229b1fc Fix regression in gdb-frame-handler
cd9dd26d24 Format and index concept 'predicate' in ELisp Intro
ab291656d0 ; * ChangeLog.3: Fix typos.
354f6c5609 ; * ChangeLog.3: Formatting fixes.
6192525a96 ; make change-history-commit
Stefan Kangas [Wed, 1 Dec 2021 05:01:07 +0000 (06:01 +0100)]
Update SKK-JISYO.L from upstream
* leim/SKK-DIC/SKK-JISYO.L: Update from
https://raw.githubusercontent.com/skk-dev/dict/master/SKK-JISYO.L
Stefan Kangas [Wed, 1 Dec 2021 05:01:05 +0000 (06:01 +0100)]
Update publicsuffix.txt from upstream
* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2021-11-26 23:07:15 UTC.
Jim Porter [Wed, 1 Dec 2021 04:56:55 +0000 (05:56 +0100)]
Suppress emacsclient message that daemon should have started if --quiet
* lib-src/emacsclient.c (start_daemon_and_retry_set_socket): Don't
output "daemon should have started" message if --quiet (bug#52214).
Bob Rogers [Wed, 1 Dec 2021 04:14:26 +0000 (05:14 +0100)]
Make date-to-time work with date-only date strings
* lisp/calendar/time-date.el (date-to-time): Try harder to parse
dates with no times (bug#52209).
Lars Ingebrigtsen [Wed, 1 Dec 2021 03:55:14 +0000 (04:55 +0100)]
Regenerate ldefs-boot.el
Lars Ingebrigtsen [Wed, 1 Dec 2021 03:54:59 +0000 (04:54 +0100)]
Autoload byte-compile-warning-enabled-p
* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-enabled-p):
Autoloads (for easier use in macroexp etc).
Lars Ingebrigtsen [Wed, 1 Dec 2021 03:54:20 +0000 (04:54 +0100)]
Add an ldefs-boot.el target to the Makefile
* lisp/Makefile.in (ldefs-boot.el): Add a target to regenerate the
ldefs-boot.el file.
Lars Ingebrigtsen [Wed, 1 Dec 2021 03:51:01 +0000 (04:51 +0100)]
Make "make force-autoloads" produce the correct result
* lisp/emacs-lisp/autoload.el (cl-lib): We need the cl-macs at
runtime to expand cl-defmacros to find declare indent forms.
Lars Ingebrigtsen [Wed, 1 Dec 2021 02:55:17 +0000 (03:55 +0100)]
Don't include the other loaddef files in the no-autoloads section
* lisp/emacs-lisp/autoload.el (make-directory-autoloads): Don't
include the other loaddef files in the no-autoloads section.
Po Lu [Wed, 1 Dec 2021 03:22:58 +0000 (11:22 +0800)]
Avoid unnecessary call when pixel scrolling
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down):
Avoid unnecessary call to `posn-at-point'
Po Lu [Wed, 1 Dec 2021 01:33:35 +0000 (09:33 +0800)]
Make pixel scrolling faster
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down): Get
rid of big motion loop.
(pixel-scroll-precision-scroll-up): Stop subtracting height of
window lines.
Po Lu [Wed, 1 Dec 2021 01:20:07 +0000 (09:20 +0800)]
Synchronize pgtk tab bar code with xterm
* src/pgtkterm.c (x_draw_image_relief):
(button_event): Synchronize code with xterm. (Bug#50779)
Stefan Kangas [Wed, 1 Dec 2021 01:15:10 +0000 (02:15 +0100)]
; Auto-commit of loaddefs files.
Po Lu [Wed, 1 Dec 2021 01:05:07 +0000 (09:05 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk
Stefan Kangas [Wed, 1 Dec 2021 00:57:24 +0000 (01:57 +0100)]
; Auto-commit of loaddefs files.
Stefan Kangas [Tue, 30 Nov 2021 23:20:24 +0000 (00:20 +0100)]
Update authors.el for Emacs 28
* admin/authors.el (authors-aliases, authors-ignored-files)
(authors-renamed-files-alist): Update for Emacs 28.
Stefan Kangas [Tue, 30 Nov 2021 22:46:45 +0000 (23:46 +0100)]
; * ChangeLog.3: Some additional fixes.
Stefan Kangas [Tue, 30 Nov 2021 19:15:19 +0000 (20:15 +0100)]
; * ChangeLog.3: Filename fixes.
Juri Linkov [Tue, 30 Nov 2021 19:05:05 +0000 (21:05 +0200)]
* lisp/repeat.el: Fix long-standing problem when a random key activates map
* lisp/repeat.el (repeat-check-key): New defcustom (bug#51390).
(repeat--command-property): New internal function.
(repeat-check-key): New function.
(repeat-post-hook): Use repeat--command-property and repeat-check-key.
* test/lisp/repeat-tests.el (repeat-tests-check-key): New test.
Juri Linkov [Tue, 30 Nov 2021 18:55:19 +0000 (20:55 +0200)]
* lisp/repeat.el (repeat-keep-prefix): Change default to nil.
'repeat-keep-prefix' doesn't yet have sufficient support
that covers all cases in bug#51281, so it's disabled now.
Juri Linkov [Tue, 30 Nov 2021 18:52:47 +0000 (20:52 +0200)]
* test/lisp/repeat-tests.el (repeat-tests-call-b): Test for commit
588caf0b27 .
This tests for 'repeat-map' as a variable instead of a symbol.
Eli Zaretskii [Tue, 30 Nov 2021 18:23:47 +0000 (20:23 +0200)]
; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc fix.
Andrea Corallo [Tue, 30 Nov 2021 18:12:52 +0000 (19:12 +0100)]
* lisp/loadup.el (paren): Preload it (again).
Eli Zaretskii [Tue, 30 Nov 2021 18:16:25 +0000 (20:16 +0200)]
; * src/comp.c (syms_of_comp): Fix first lines of doc strings.
Juri Linkov [Tue, 30 Nov 2021 18:12:06 +0000 (20:12 +0200)]
* src/callint.c (Fcall_interactively): Fix inhibit_mouse_event_check.
Don't search for the next mouse event with parameters
when inhibit-mouse-event-check is non-nil (bug#50067).
Eli Zaretskii [Tue, 30 Nov 2021 18:09:08 +0000 (20:09 +0200)]
; Fix last change.
Eli Zaretskii [Tue, 30 Nov 2021 18:07:19 +0000 (20:07 +0200)]
Improve documentation of pixel-fill
* doc/lispref/text.texi (Filling): Describe the arguments of
'pixel-fill-region'. Add index entry.
* lisp/textmodes/pixel-fill.el (pixel-fill-region): Doc fix.
Lars Ingebrigtsen [Tue, 30 Nov 2021 15:54:34 +0000 (16:54 +0100)]
Use pixel-fill-width in shr.el
* lisp/net/shr.el (shr--window-width): Factor out into own function.
(shr-insert-document): Use it.
(shr-fill-text): Ditto.
Lars Ingebrigtsen [Tue, 30 Nov 2021 15:46:24 +0000 (16:46 +0100)]
Document pixel-fill-region
* doc/lispref/text.texi (Filling): Document pixel-fill-region.
* lisp/textmodes/pixel-fill.el (pixel-fill-width): Add new helper
function.
Andrea Corallo [Tue, 30 Nov 2021 12:49:36 +0000 (13:49 +0100)]
Revert "Preload paren.el"
Reverting as the previous commit make this fix not anymore necessary.
This reverts commit
340e527bed83ff0382446132c871088ad61d1745 .
Andrea Corallo [Tue, 30 Nov 2021 13:18:58 +0000 (14:18 +0100)]
Improve native compiler startup circular dependecy prevention mechanism
* src/comp.c (maybe_defer_native_compilation): Update to accumulate
delayed objects in `comp--delayed-sources'.
(syms_of_comp): Add `comp--delayed-sources' and `comp--loadable'
vars.
* lisp/startup.el (startup--honor-delayed-native-compilations): New
function.
(normal-top-level): Call it.
Lars Ingebrigtsen [Tue, 30 Nov 2021 14:14:16 +0000 (15:14 +0100)]
Allow storing buffer names in registers
* doc/emacs/regs.texi (File and Buffer Registers): Rename and add
doc for `buffer' version.
* lisp/register.el (register-val-jump-to, register-val-describe):
Add support for (buffer . ...) registers (bug#33033).
Mattias Engdegård [Tue, 30 Nov 2021 14:04:46 +0000 (15:04 +0100)]
Generalise CPS-conversion let optimisation
* lisp/emacs-lisp/generator.el (cps--transform-1):
Eliminate a temporary for the last of any `let` form, not just for
single-binding ones. Suggested by Stefan Monnier.
Lars Ingebrigtsen [Tue, 30 Nov 2021 13:38:15 +0000 (14:38 +0100)]
Allow inhibiting warnings about obsolete macros again
* lisp/emacs-lisp/macroexp.el (macroexp-macroexpand): Inhibit
warning if requested (bug#50984).
Po Lu [Tue, 30 Nov 2021 13:10:36 +0000 (21:10 +0800)]
* src/nsterm.m (Vns_scroll_event_delta_factor): Fix doc string.
Lars Ingebrigtsen [Tue, 30 Nov 2021 13:09:19 +0000 (14:09 +0100)]
Fix regression in gdb-frame-handler
* lisp/progmodes/gdb-mi.el (gdb-frame-handler): Protect against
nil fullnames (bug#52196).
YugaEgo [Tue, 30 Nov 2021 13:03:32 +0000 (14:03 +0100)]
Format and index concept 'predicate' in ELisp Intro
* doc/lispintro/emacs-lisp-intro.texi (Wrong Type of Argument):
Add index and format definition (bug#52197).
Copyright-paperwork-exempt: yes
Po Lu [Tue, 30 Nov 2021 12:49:59 +0000 (20:49 +0800)]
Fix pixel scrolling again
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down): Fix
confusion about absolutivity of `window-edges'.
Po Lu [Tue, 30 Nov 2021 12:44:54 +0000 (20:44 +0800)]
Fix 1-off errors in pixel scrolling code
* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down): Fix
one-off errors.
Po Lu [Tue, 30 Nov 2021 12:35:11 +0000 (20:35 +0800)]
Improve upwards pixel scrolling for large images
This fixes most of the problem, but with a large image the
vscroll can sometimes jump about, which has to be fixed.
* lisp/pixel-scroll.el (pixel-scroll-precision-up): Handle
vscrolling large images in the first unseen line.
Mattias Engdegård [Tue, 30 Nov 2021 10:32:20 +0000 (11:32 +0100)]
Better CPS conversion of multi-binding `let`
* lisp/emacs-lisp/generator.el (cps--transform-1):
Don't translate single-binding `let` into `let*` with an extra
temporary variable; it just adds two more useless states.
Po Lu [Tue, 30 Nov 2021 11:35:36 +0000 (19:35 +0800)]
Calculate pixel deltas correctly
* src/pgtkterm.c (scroll_event): Fix scroll delta
factor. (bug#52195)
Po Lu [Tue, 30 Nov 2021 11:31:38 +0000 (19:31 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Tue, 30 Nov 2021 11:28:04 +0000 (19:28 +0800)]
* lisp/pixel-scroll.el (pixel-scroll-precision): Handle zero delta.
Stefan Kangas [Tue, 30 Nov 2021 09:25:59 +0000 (10:25 +0100)]
; * ChangeLog.3: Fix typos.
Stefan Kangas [Tue, 30 Nov 2021 08:46:20 +0000 (09:46 +0100)]
; * ChangeLog.3: Formatting fixes.
Stefan Kangas [Tue, 30 Nov 2021 08:36:54 +0000 (09:36 +0100)]
; make change-history-commit
Po Lu [Tue, 30 Nov 2021 07:57:33 +0000 (15:57 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk
Stefan Kangas [Tue, 30 Nov 2021 06:38:52 +0000 (07:38 +0100)]
Merge from origin/emacs-28
30553d889d Merge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/e...
ecf3bf66ba Remove problematic characters from modus-themes.org (bug#5...
de9d27f679 Avoid undefined behaviour when copying part of structure
# Conflicts:
# doc/misc/modus-themes.org
Stefan Kangas [Tue, 30 Nov 2021 06:35:37 +0000 (07:35 +0100)]
; Merge from origin/emacs-28
The following commit was skipped:
de9d27f679 Avoid undefined behaviour when copying part of structure
Po Lu [Tue, 30 Nov 2021 06:05:18 +0000 (14:05 +0800)]
Fix annoying bell rings when pixel scrolling to buffer limits
* lisp/pixel-scroll.el (pixel-scroll-precision): Don't ding at
buffer limits.
Po Lu [Tue, 30 Nov 2021 05:56:32 +0000 (13:56 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Tue, 30 Nov 2021 05:55:16 +0000 (13:55 +0800)]
Enable shallow menu bar updates on PGTK
* src/gtkutil.c (menu_bar_button_pressed_cb): New function.
(create_menus): Connect button press event signal.
* src/pgtkmenu.c (set_frame_menubar): Allow shallow updates.
Po Lu [Tue, 30 Nov 2021 05:41:16 +0000 (13:41 +0800)]
Add `ns-scroll-event-delta-factor'
* src/nsterm.m (- mouseDown): Take delta factor into account.
(Vns_scroll_event_delta_factor): New variable.
* lisp/cus-start.el: Add option.
Po Lu [Tue, 30 Nov 2021 01:46:25 +0000 (09:46 +0800)]
Allow non-float values in x-scroll-event-delta-factor
* src/xterm.c (handle_one_xevent): Use XFLOATINT instead of
XFLOAT_DATA.