]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoStop relying on `x_coalesce_scroll_events' in pgtk code
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.

3 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Wed, 1 Dec 2021 13:50:02 +0000 (21:50 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

3 years agoEnable gnus-treat-fold-headers by default
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'.

3 years agoUse proportional fonts in the Gnus headers by default
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.

3 years agoPreserve newlines at the end of pixel-fill-region
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.

3 years agoSupport precision mouse scrolling on MS-Windows
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.

3 years agoupdate_autogen: Remove deprecated -I flag
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.

3 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Wed, 1 Dec 2021 07:20:08 +0000 (15:20 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

3 years ago; Merge from origin/emacs-28
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.

3 years agoMerge from origin/emacs-28
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

3 years agoUpdate SKK-JISYO.L from upstream
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

3 years agoUpdate publicsuffix.txt from upstream
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.

3 years agoSuppress emacsclient message that daemon should have started if --quiet
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).

3 years agoMake date-to-time work with date-only date strings
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).

3 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Wed, 1 Dec 2021 03:55:14 +0000 (04:55 +0100)]
Regenerate ldefs-boot.el

3 years agoAutoload byte-compile-warning-enabled-p
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).

3 years agoAdd an ldefs-boot.el target to the Makefile
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.

3 years agoMake "make force-autoloads" produce the correct result
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.

3 years agoDon't include the other loaddef files in the no-autoloads section
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.

3 years agoAvoid unnecessary call when pixel scrolling
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'

3 years agoMake pixel scrolling faster
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.

3 years agoSynchronize pgtk tab bar code with xterm
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)

3 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Wed, 1 Dec 2021 01:15:10 +0000 (02:15 +0100)]
; Auto-commit of loaddefs files.

3 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Wed, 1 Dec 2021 01:05:07 +0000 (09:05 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

3 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Wed, 1 Dec 2021 00:57:24 +0000 (01:57 +0100)]
; Auto-commit of loaddefs files.

3 years agoUpdate authors.el for Emacs 28
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.

3 years ago; * ChangeLog.3: Some additional fixes.
Stefan Kangas [Tue, 30 Nov 2021 22:46:45 +0000 (23:46 +0100)]
; * ChangeLog.3: Some additional fixes.

3 years ago; * ChangeLog.3: Filename fixes.
Stefan Kangas [Tue, 30 Nov 2021 19:15:19 +0000 (20:15 +0100)]
; * ChangeLog.3: Filename fixes.

3 years ago* lisp/repeat.el: Fix long-standing problem when a random key activates map
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.

3 years ago* lisp/repeat.el (repeat-keep-prefix): Change default to nil.
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.

3 years ago* test/lisp/repeat-tests.el (repeat-tests-call-b): Test for commit 588caf0b27.
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.

3 years ago; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc fix.
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.

3 years ago* lisp/loadup.el (paren): Preload it (again).
Andrea Corallo [Tue, 30 Nov 2021 18:12:52 +0000 (19:12 +0100)]
* lisp/loadup.el (paren): Preload it (again).

3 years ago; * src/comp.c (syms_of_comp): Fix first lines of doc strings.
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.

3 years ago* src/callint.c (Fcall_interactively): Fix inhibit_mouse_event_check.
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).

3 years ago; Fix last change.
Eli Zaretskii [Tue, 30 Nov 2021 18:09:08 +0000 (20:09 +0200)]
; Fix last change.

3 years agoImprove documentation of pixel-fill
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.

3 years agoUse pixel-fill-width in shr.el
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.

3 years agoDocument pixel-fill-region
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.

3 years agoRevert "Preload paren.el"
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.

3 years agoImprove native compiler startup circular dependecy prevention mechanism
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.

3 years agoAllow storing buffer names in registers
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).

3 years agoGeneralise CPS-conversion let optimisation
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.

3 years agoAllow inhibiting warnings about obsolete macros again
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).

3 years ago* src/nsterm.m (Vns_scroll_event_delta_factor): Fix doc string.
Po Lu [Tue, 30 Nov 2021 13:10:36 +0000 (21:10 +0800)]
* src/nsterm.m (Vns_scroll_event_delta_factor): Fix doc string.

3 years agoFix regression in gdb-frame-handler
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).

3 years agoFormat and index concept 'predicate' in ELisp Intro
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

3 years agoFix pixel scrolling again
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'.

3 years agoFix 1-off errors in pixel scrolling code
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.

3 years agoImprove upwards pixel scrolling for large images
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.

3 years agoBetter CPS conversion of multi-binding `let`
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.

3 years agoCalculate pixel deltas correctly
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)

3 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Tue, 30 Nov 2021 11:31:38 +0000 (19:31 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

3 years ago* lisp/pixel-scroll.el (pixel-scroll-precision): Handle zero delta.
Po Lu [Tue, 30 Nov 2021 11:28:04 +0000 (19:28 +0800)]
* lisp/pixel-scroll.el (pixel-scroll-precision): Handle zero delta.

3 years ago; * ChangeLog.3: Fix typos.
Stefan Kangas [Tue, 30 Nov 2021 09:25:59 +0000 (10:25 +0100)]
; * ChangeLog.3: Fix typos.

3 years ago; * ChangeLog.3: Formatting fixes.
Stefan Kangas [Tue, 30 Nov 2021 08:46:20 +0000 (09:46 +0100)]
; * ChangeLog.3: Formatting fixes.

3 years ago; make change-history-commit
Stefan Kangas [Tue, 30 Nov 2021 08:36:54 +0000 (09:36 +0100)]
; make change-history-commit

3 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Tue, 30 Nov 2021 07:57:33 +0000 (15:57 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

3 years agoMerge from origin/emacs-28
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

3 years ago; Merge from origin/emacs-28
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

3 years agoFix annoying bell rings when pixel scrolling to buffer limits
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.

3 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Tue, 30 Nov 2021 05:56:32 +0000 (13:56 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

3 years agoEnable shallow menu bar updates on 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.

3 years agoAdd `ns-scroll-event-delta-factor'
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.

3 years agoAllow non-float values in x-scroll-event-delta-factor
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.

3 years agoMake interrupt input optionally work on PGTK
Po Lu [Tue, 30 Nov 2021 01:34:24 +0000 (09:34 +0800)]
Make interrupt input optionally work on PGTK

* src/pgtkterm.c (pgtk_delete_terminal): Close display fd if it
exists.
(pgtk_term_init): Set up interrupt handling for display fd if
available.
* src/pgtkterm.h (struct pgtk_display_info): Add `connection'
field.

3 years agoStop setting mouse face GC manually, as it is no longer required
Po Lu [Tue, 30 Nov 2021 01:11:42 +0000 (09:11 +0800)]
Stop setting mouse face GC manually, as it is no longer required

* src/pgtkterm.c (x_set_mouse_face_gc): Remove obsolete code.

3 years agoAdd new package pixel-fill.el
Lars Ingebrigtsen [Tue, 30 Nov 2021 01:07:22 +0000 (02:07 +0100)]
Add new package pixel-fill.el

* lisp/net/shr.el (shr-char-breakable-p, shr-char-nospace-p)
(shr-char-kinsoku-bol-p, shr-char-kinsoku-eol-p)
(shr-find-fill-point): Moved to pixel-fill.el and renamed.
(shr-pixel-region): Made obsolete.
(shr-fill-line): Use pixel-fill-region.

* lisp/textmodes/pixel-fill.el: New package.

3 years agoAdd missing function declarations to pgtk-win.el
Po Lu [Tue, 30 Nov 2021 01:03:31 +0000 (09:03 +0800)]
Add missing function declarations to pgtk-win.el

* lisp/term/pgtk-win.el: Add missing IM context related
declarations.

3 years agoEnable pixel-precision scrolling on pgtk port
Po Lu [Tue, 30 Nov 2021 01:01:26 +0000 (09:01 +0800)]
Enable pixel-precision scrolling on pgtk port

* src/pgtkterm.c (scroll_event): Generate enhanced wheel
events.
(x_coalesce_scroll_events): New variable.

3 years agoGet rid of pgtk_select and use xg_select instead
Po Lu [Tue, 30 Nov 2021 00:52:00 +0000 (08:52 +0800)]
Get rid of pgtk_select and use xg_select instead

* src/pgtkmenu.c (pgtk_menu_wait_for_event): Get rid
of pgtk_select.
* src/pgtkterm.h (pgtk_select):
* src/pgtkterm.c (pgtk_select): Delete function.
* src/process.c (wait_reading_process_output): Stop
using pgtk_select.

3 years ago* lisp/frame.el (display-graphic-p): Fix typo.
Po Lu [Tue, 30 Nov 2021 00:46:23 +0000 (08:46 +0800)]
* lisp/frame.el (display-graphic-p): Fix typo.

3 years agoFix build after merge
Po Lu [Tue, 30 Nov 2021 00:33:24 +0000 (08:33 +0800)]
Fix build after merge

* lisp/mwheel.el (mouse-wheel-up-event):
* src/gtkutil.c (xg_event_is_for_scrollbar):
* src/termhooks.h (enum output_method): Fix trivial typos.

3 years agoMerge remote-tracking branch 'origin/feature/pgtk' into feature/pgtk
Po Lu [Tue, 30 Nov 2021 00:19:46 +0000 (08:19 +0800)]
Merge remote-tracking branch 'origin/feature/pgtk' into feature/pgtk

3 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Tue, 30 Nov 2021 00:16:50 +0000 (08:16 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

3 years agoAudit the Emacs manual for keymap-*-related changes
Lars Ingebrigtsen [Mon, 29 Nov 2021 23:14:51 +0000 (00:14 +0100)]
Audit the Emacs manual for keymap-*-related changes

* doc/emacs/programs.texi (Other C Commands):
* doc/emacs/msdos-xtra.texi (MS-DOS Keyboard):
* doc/emacs/custom.texi (Init Examples):
* doc/emacs/abbrevs.texi (Editing Abbrevs): Change some examples
to use keymap-* functions.

3 years agoFix some of the argument handling in keymap-set and keymap-substitute
Lars Ingebrigtsen [Mon, 29 Nov 2021 23:13:47 +0000 (00:13 +0100)]
Fix some of the argument handling in keymap-set and keymap-substitute

* lisp/keymap.el (keymap-set): Fix handling of binding one key to
another key.
(keymap-substitute): Fix confusion in implementation -- the args
are definitions, not keys.

3 years agoEdit the lispref manual for define-key/keymap-set fallout
Lars Ingebrigtsen [Mon, 29 Nov 2021 22:54:48 +0000 (23:54 +0100)]
Edit the lispref manual for define-key/keymap-set fallout

* doc/lispref/variables.texi (Tips for Defining):
* doc/lispref/text.texi (Clickable Text):
* doc/lispref/modes.texi (Derived Modes):
(Example Major Modes):
* doc/lispref/loading.texi (Autoload):
(Hooks for Loading):
* doc/lispref/keymaps.texi (Creating Keymaps):
(Inheritance and Keymaps):
(Controlling Active Maps):
(Changing Key Bindings):
(Low-Level Key Binding):
(Remapping Commands):
(Translation Keymaps):
(Key Binding Commands):
* doc/lispref/help.texi (Help Functions):
* doc/lispref/display.texi (Abstract Display Example):
* doc/lispref/commands.texi (Interactive Codes):
(Keyboard Events):
(Misc Events):
(Classifying Events):
(Strings of Events): Prefer `keymap-set' instead of `define-key'
most places, and use `defvar-keymap' in some of the examples.

3 years agoFix build on macOS
Alan Third [Mon, 29 Nov 2021 22:11:04 +0000 (22:11 +0000)]
Fix build on macOS

* src/nsterm.h (NSPasteboardTypeMultipleTextSelection):
(NSPasteboardTypePNG): These are already defined on macOS 10.6 and
above and aren't used at all in GNUstep.

3 years agoFix NS port text decorations (bug#52156)
Alan Third [Mon, 29 Nov 2021 21:56:13 +0000 (21:56 +0000)]
Fix NS port text decorations (bug#52156)

* src/nsterm.m (ns_draw_text_decoration): Set the correct colors for
decorations other than underline.
(ns_draw_glyph_string): Remove superfluous color setting call.

3 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Mon, 29 Nov 2021 21:40:38 +0000 (22:40 +0100)]
Regenerate ldefs-boot.el

3 years agoFix up generation of help text for ldefs-boot.el
Lars Ingebrigtsen [Mon, 29 Nov 2021 21:39:57 +0000 (22:39 +0100)]
Fix up generation of help text for ldefs-boot.el

* lisp/emacs-lisp/autoload.el (autoload-rubric): Don't put the
help text into cedet/*/loaddefs.el (bug#51744).

3 years ago* test/infra/gitlab-ci.yml (.job-template): Modify find scripts.
Michael Albinus [Mon, 29 Nov 2021 20:36:51 +0000 (21:36 +0100)]
* test/infra/gitlab-ci.yml (.job-template): Modify find scripts.

3 years agoMerge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28
Eli Zaretskii [Mon, 29 Nov 2021 20:30:37 +0000 (22:30 +0200)]
Merge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28

3 years agoRemove problematic characters from modus-themes.org (bug#52126)
Protesilaos Stavrou [Mon, 29 Nov 2021 19:06:52 +0000 (21:06 +0200)]
Remove problematic characters from modus-themes.org (bug#52126)

* doc/misc/modus-themes.org
(Enable and load, Font configurations for Org and others)
(Note on highlight-parentheses.el, Note on god-mode.el): Update links to
headings so that they no longer include the removed portions of text.

(Option for color-coding success state, Option for line highlighting)
(Option for line numbers, Option for parenthesis matching)
(Advanced customization, Per-theme customization settings)
(Case-by-case face specs using the themes' palette)
(Face specs at scale using the themes' palette)
(Remap face with local value, Cycle through arbitrary colors)
(Override colors, Override color saturation)
(Font configurations for Org and others, Configure bold and italic faces)
(Custom Org user faces, Update Org block delimiter fontification)
(Measure color contrast, Load theme depending on time of day)
(Backdrop for pdf-tools, Decrease mode line height)
(A theme-agnostic hook for theme loading, Note on EWW and Elfeed fonts)
(Frequently Asked Questions): Remove parentheses from headings as they
can cause problems in the .texi version of the file.

3 years agoRemove problematic characters from modus-themes.org (bug#52126)
Protesilaos Stavrou [Mon, 29 Nov 2021 19:13:55 +0000 (21:13 +0200)]
Remove problematic characters from modus-themes.org (bug#52126)

* doc/misc/modus-themes.org
(Enable and load, Font configurations for Org and others)
(Note on highlight-parentheses.el, Note on god-mode.el): Update links to
headings so that they no longer include the removed portions of text.

(Option for color-coding success state, Option for line highlighting)
(Option for line numbers, Option for parenthesis matching)
(Advanced customization, Per-theme customization settings)
(Case-by-case face specs using the themes' palette)
(Face specs at scale using the themes' palette)
(Remap face with local value, Cycle through arbitrary colors)
(Override colors, Override color saturation)
(Font configurations for Org and others, Configure bold and italic faces)
(Custom Org user faces, Update Org block delimiter fontification)
(Measure color contrast, Load theme depending on time of day)
(Backdrop for pdf-tools)
(A theme-agnostic hook for theme loading, Note on EWW and Elfeed fonts)
(Frequently Asked Questions): Remove parentheses from headings as they
can cause problems in the .texi version of the file.

3 years agoDon't return whitespace for thing-at-point in whitespace-only buffers
Lars Ingebrigtsen [Mon, 29 Nov 2021 16:18:49 +0000 (17:18 +0100)]
Don't return whitespace for thing-at-point in whitespace-only buffers

* lisp/thingatpt.el (bounds-of-thing-at-point): If the buffer is
empty, return nil for most things (bug#52098).

3 years agoMake Re: recognition in ispell-message less ambiguous
Lars Ingebrigtsen [Mon, 29 Nov 2021 16:08:11 +0000 (17:08 +0100)]
Make Re: recognition in ispell-message less ambiguous

* lisp/textmodes/ispell.el (ispell-message): Require a "Re" as a
word, not as a word ending (bug#52104).

3 years agoMake `group' widgets prettier in Customize
Brahimi Saifullah [Mon, 29 Nov 2021 15:52:26 +0000 (16:52 +0100)]
Make `group' widgets prettier in Customize

* lisp/wid-edit.el (group): Make the ":" invisible so that the
buffer looks prettier (bug#52143).

Copyright-paperwork-exempt: yes

3 years agoproject-kill-buffers can display list of buffers to kill
Matthias Meulien [Mon, 29 Nov 2021 15:42:02 +0000 (16:42 +0100)]
project-kill-buffers can display list of buffers to kill

* lisp/progmodes/project.el
(project-kill-buffers-display-buffer-list): Option to toggle
temporarily display of the list of buffers to kill when calling
project-kill-buffers
(project-kill-buffers): Handle
project-kill-buffers-display-buffer-list option (bug#52148).

3 years agoSignal a better error in tabulated-list-sort
Lars Ingebrigtsen [Mon, 29 Nov 2021 15:39:02 +0000 (16:39 +0100)]
Signal a better error in tabulated-list-sort

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort): Signal
error earlier on invalid column numbers (bug#52154).

3 years ago* src/xdisp.c (mouse_face_from_buffer_pos): Revert whitespace only change
Yuuki Harano [Mon, 29 Nov 2021 15:23:39 +0000 (00:23 +0900)]
* src/xdisp.c (mouse_face_from_buffer_pos): Revert whitespace only change

3 years agoRemove draw_glyphs_debug
Yuuki Harano [Mon, 29 Nov 2021 15:19:22 +0000 (00:19 +0900)]
Remove draw_glyphs_debug

It is left-over from debugging, and not needed any more.

* src/xdisp.c (draw_glyphs_debug):
(draw_glyphs):

3 years agoReplace XFillRectangle with cairo_rectangle and cairo_fill
Yuuki Harano [Mon, 29 Nov 2021 15:14:42 +0000 (00:14 +0900)]
Replace XFillRectangle with cairo_rectangle and cairo_fill

* src/pgtkterm.c (pgtk_flash):

3 years agoUse /* */ comment style instead of //
Yuuki Harano [Mon, 29 Nov 2021 15:07:18 +0000 (00:07 +0900)]
Use /* */ comment style instead of //

* src/gtkutil.c (xg_create_frame_widgets):
* src/pgtkfns.c (Fx_create_frame):
(frame_geometry):
* src/pgtkterm.c (pgtk_mouse_position):
(pgtk_redisplay_interface):
(pgtk_clear_frame):
(pgtk_create_terminal):
(struct pgtk_window_is_of_frame_recursive_t):
(key_press_event):
(syms_of_pgtkterm):

3 years agoUse mupdf in doc-view-mode if gs is not installed
Daniel Martín [Mon, 29 Nov 2021 14:48:03 +0000 (15:48 +0100)]
Use mupdf in doc-view-mode if gs is not installed

* lisp/doc-view.el (doc-view-mode-p): Use mupdf to render PDF and
related formats if gs is not installed (bug#52170).

3 years agoMake fill-region-as-paragraph clear the markers it creates
Ikumi Keita [Mon, 29 Nov 2021 14:40:19 +0000 (15:40 +0100)]
Make fill-region-as-paragraph clear the markers it creates

* lisp/textmodes/fill.el (fill-region-as-paragraph): Clear
temporary markers (bug#52175).

Copyright-paperwork-exempt: yes

3 years agoDo not buttonize key bindings outside of *Help* buffers
Gregory Heytings [Mon, 29 Nov 2021 14:13:31 +0000 (15:13 +0100)]
Do not buttonize key bindings outside of *Help* buffers

* etc/NEWS: Mention the new variable.

* lisp/apropos.el (apropos-describe-plist): Bind the new
variable (bug#52053).
* lisp/button.el (button-describe): Bind the new variable.

* lisp/help-fns.el (describe-function, describe-variable)
(describe-face, describe-symbol, describe-syntax)
(describe-categories, describe-keymap, describe-mode)
(describe-widget): Bind the new variable.

* lisp/help-macro.el (make-help-screen): Bind the new variable.

* lisp/help.el (help-buffer-under-preparation): New variable
that is bound to t by commands that create a *Help* buffer.
(substitute-command-keys): Use the new variable:
help-link-key-to-documentation is supposed to have an effect
only "in *Help* buffers". Fixes bug#52053.
(view-lossage, describe-bindings, describe-key): Bind the new
variable.

* lisp/repeat.el (describe-repeat-maps): Bind the new variable.

* lisp/international/mule-cmds.el (describe-input-method)
(describe-language-environment): Bind the new variable.

* lisp/international/mule-diag.el (describe-character-set)
(describe-coding-system, describe-font, describe-fontset)
((list-fontsets): Bind the new variable.

3 years agoAvoid undefined behaviour when copying part of structure
Andreas Schwab [Mon, 29 Nov 2021 09:29:40 +0000 (10:29 +0100)]
Avoid undefined behaviour when copying part of structure

* src/dispnew.c (copy_row_except_pointers): Don't use address of
subobject as starting point.

(cherry picked from commit 6943786b5c1fe76ea05a3a810512bd6777883710)

3 years agoReally make `x-scroll-event-delta-factor' dependent on system
Po Lu [Mon, 29 Nov 2021 10:25:10 +0000 (18:25 +0800)]
Really make `x-scroll-event-delta-factor' dependent on system

* lisp/cus-start.el: Move X specific builtins that start
with "x-" before the catch-all test.