]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoFix last change in minibuffer-lazy-highlight-setup
Augusto Stoffel [Sun, 15 May 2022 20:48:50 +0000 (22:48 +0200)]
Fix last change in minibuffer-lazy-highlight-setup

* lisp/isearch.el (minibuffer-lazy-highlight-setup): Apply advices
buffer-locally.

2 years ago; * lisp/progmodes/flymake.el (flymake-mode): Fix a typo.
Eli Zaretskii [Wed, 18 May 2022 13:53:49 +0000 (16:53 +0300)]
; * lisp/progmodes/flymake.el (flymake-mode): Fix a typo.

2 years agoAdd a new display-buffer-full-frame display action
Lars Ingebrigtsen [Wed, 18 May 2022 13:33:11 +0000 (15:33 +0200)]
Add a new display-buffer-full-frame display action

* doc/lispref/windows.texi (Buffer Display Action Functions):
Document it.

* lisp/window.el (display-buffer-full-frame): New display action
(bug#34169).
(display-buffer--action-function-custom-type): Add.
(display-buffer): Mention it.

2 years agoMention next-error-function in flymake-mode doc string
Lars Ingebrigtsen [Wed, 18 May 2022 12:13:16 +0000 (14:13 +0200)]
Mention next-error-function in flymake-mode doc string

* lisp/progmodes/flymake.el (flymake-mode): Note that you can set
next-error-function (bug#32322).

2 years agoImplement gamma-correction on Haiku
Po Lu [Wed, 18 May 2022 12:36:50 +0000 (12:36 +0000)]
Implement gamma-correction on Haiku

* src/dispextern.h: Add `gamma_correct' prototype on Haiku as
well.
* src/haikufns.c (gamma_correct): New function.
* src/haikuterm.c (haiku_defined_color): Gamma-correct colors if
their pixels are being allocated.

2 years agoImprove previous apropos-documentation-check-elc-file change
Lars Ingebrigtsen [Wed, 18 May 2022 11:20:26 +0000 (13:20 +0200)]
Improve previous apropos-documentation-check-elc-file change

* lisp/apropos.el (apropos-documentation-check-elc-file): Add
comment to explain what's going on and expand to lisp-directory
(bug#55492).

2 years agoFix M-x compile-defun when an interactive form is (list ...)
Alan Mackenzie [Wed, 18 May 2022 09:18:15 +0000 (09:18 +0000)]
Fix M-x compile-defun when an interactive form is (list ...)

This is for when lexical-binding is nil.  The problem fixed was M-x
compile-defun leaving symbols with position in the compiled function's arglist
and interactive form.  This fixes bug #55323.  Also ensure the doc string is
correctly stripped when lexical-binding is t.

* lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): For a (list ...)
interactive form when lexical-binding is nil, strip the positions from the
symbols in the form.  Also strip the position from the symbols in the arglist.
(byte-compile-make-closure): (Twice) strip symbols from positions in the doc
string expression.  Add comments.

2 years agoClean up and simplify 'quit-restore-window' code
Martin Rudalics [Wed, 18 May 2022 09:09:58 +0000 (11:09 +0200)]
Clean up and simplify 'quit-restore-window' code

* lisp/window.el (window--quit-restore-select-window): New internal
name for 'quit-restore-select-window'.
(quit-restore-window): Use 'window--quit-restore-select-window'
instead of 'quit-restore-select-window'.  Simplify code.

2 years agoMake printing mostly non-recursive (bug#55481)
Mattias Engdegård [Fri, 13 May 2022 11:36:13 +0000 (13:36 +0200)]
Make printing mostly non-recursive (bug#55481)

Introduce explicit stacks for traversing common data types during
printing: conses, vectors, records, byte-code, hash-tables and
char-tables, all previously traversed using recursion in C.  This
greatly reduces the risk of crashing Emacs from C stack overflow
when printing deeply nested data.

* src/print.c (Fprinc, print, PRINT_CIRCLE_CANDIDATE_P):
Special-case Fprinc with a plain string argument to eliminate the need
for keeping track of print_depth during the preprocessing phase.
This also improves performance.
(struct print_pp_entry, struct print_pp_stack, ppstack)
(grow_pp_stack, pp_stack_push_value, pp_stack_push_values)
(pp_stack_empty_p, pp_stack_pop):
New stack for preprocessing.
(print_preprocess):
Make mostly nonrecursive, except for string properties.
(enum print_entry_type, struct print_stack_entry)
(struct print_stack, prstack, grow_print_stack)
(print_stack_push, print_stack_push_vector):
New stack for printing.
(print_vectorlike, print_object):
Make mostly nonrecursive, except for string properties and some less
heavily used types.
* test/src/print-tests.el (print-deeply-nested):
New test.

2 years ago; Fix thinko in etc/NEWS
Michael Albinus [Wed, 18 May 2022 08:05:32 +0000 (10:05 +0200)]
; Fix thinko in etc/NEWS

2 years agoAvoid dismissing GTK+ popup menus upon wheel movement
Po Lu [Wed, 18 May 2022 06:55:23 +0000 (14:55 +0800)]
Avoid dismissing GTK+ popup menus upon wheel movement

* src/xterm.c (handle_one_xevent): Don't forward XI button
events for wheel buttons to GTK+ when a popup menu is active.

2 years agoFix race conditions when calculating Haiku frame geometry
Po Lu [Wed, 18 May 2022 04:07:31 +0000 (04:07 +0000)]
Fix race conditions when calculating Haiku frame geometry

* src/haiku_support.cc (be_lock_window, be_unlock_window): New
functions.
* src/haiku_support.h: Update prototypes.

* src/haikufns.c (frame_geometry): Lock window before asking for
its dimensions and frame.

2 years agoDon't allow moving fullscreen frames on Haiku
Po Lu [Wed, 18 May 2022 01:23:32 +0000 (01:23 +0000)]
Don't allow moving fullscreen frames on Haiku

* src/haikuterm.c (haiku_set_window_size): Fix typo in comment.
(haiku_set_offset): Prevent offset from changing in fullboth
frames.

2 years agoFix a crash when an X connection is dropped in some situations
Po Lu [Wed, 18 May 2022 01:07:41 +0000 (09:07 +0800)]
Fix a crash when an X connection is dropped in some situations

* src/xterm.c (x_flip_and_flush): Don't try to flush if
`inhibit-redisplay' is t.

2 years agoFix apropos-documentation with universal argument
Lars Ingebrigtsen [Tue, 17 May 2022 23:22:18 +0000 (01:22 +0200)]
Fix apropos-documentation with universal argument

* lisp/apropos.el (apropos-documentation-check-elc-file): Look up
.elc files in the load path (and don't bug out on deleted .elc
files) (bug#55492).

2 years agoRecommend Wikipedia over Usenet in FAQ
Stefan Kangas [Tue, 17 May 2022 23:10:22 +0000 (01:10 +0200)]
Recommend Wikipedia over Usenet in FAQ

* doc/misc/efaq.texi (Origin of the term Emacs): Recommend
Wikipedia over Usenet to find out more about TECO.

2 years agoRemove some ancient Emacs compat code
Stefan Kangas [Tue, 17 May 2022 22:27:52 +0000 (00:27 +0200)]
Remove some ancient Emacs compat code

* lisp/cedet/mode-local.el (mode-local-describe-bindings-1):
* lisp/cedet/semantic/senator.el (senator-copy-tag-to-register):
* lisp/gnus/nnrss.el (nnrss-opml-export):
* lisp/net/newst-backend.el (newsticker-opml-export):
* lisp/textmodes/reftex.el (reftex-mode-menu):
* lisp/woman.el (woman-menu): Remove some ancient Emacs compat code.

2 years agoUpdate comment about comint-osc-handlers
Matthias Meulien [Tue, 17 May 2022 21:36:27 +0000 (23:36 +0200)]
Update comment about comint-osc-handlers

* lisp/comint.el: Update comment about comint-osc-handlers.

2 years agoAllow running several commands in compilation-start
Lars Ingebrigtsen [Tue, 17 May 2022 20:07:27 +0000 (22:07 +0200)]
Allow running several commands in compilation-start

* lisp/progmodes/compile.el (compilation-start): Allow not erasing
the contents of the buffer (bug#28892).

2 years agoUse better word for "buffer" in Greek TUTORIAL (bug#55332)
Protesilaos Stavrou [Tue, 17 May 2022 19:16:31 +0000 (22:16 +0300)]
Use better word for "buffer" in Greek TUTORIAL (bug#55332)

* TUTORIAL.el_GR: Replace all instances of "αποσβεστήρας" with the
more accurate "ενταμιευτής".

2 years agoFix bogus future history entries for `M-x grep'
Lars Ingebrigtsen [Tue, 17 May 2022 19:00:25 +0000 (21:00 +0200)]
Fix bogus future history entries for `M-x grep'

* lisp/net/mailcap.el (mailcap-file-default-commands): If we have
no matching MIME types, don't iterate over (nil) (bug#27236).

This fixes things like:

(mailcap-file-default-commands '("grep --color=auto -nH --null '' "))
=> ("/usr/bin/emacs -nw")

2 years agoExplain more about jit-lock-mode calling conventions
Lars Ingebrigtsen [Tue, 17 May 2022 18:01:11 +0000 (20:01 +0200)]
Explain more about jit-lock-mode calling conventions

* lisp/jit-lock.el (jit-lock-mode): Explicitly explain ARG
(bug#55451).

2 years agoFix pp-emacs-lisp-code printing of cons cells
Lars Ingebrigtsen [Tue, 17 May 2022 17:45:20 +0000 (19:45 +0200)]
Fix pp-emacs-lisp-code printing of cons cells

* lisp/emacs-lisp/pp.el (pp--insert-lisp): Fix printing of cons
cells (bug#55478).

2 years agoCorrect cycle-spacing-actions type
Robert Pluim [Tue, 17 May 2022 15:38:18 +0000 (17:38 +0200)]
Correct cycle-spacing-actions type

* lisp/simple.el (cycle-spacing-actions): Fix type for predefined
action with fixed numeric arg case.

2 years agoClarify 'cycle-spacing-actions' docstring
Robert Pluim [Tue, 17 May 2022 15:23:03 +0000 (17:23 +0200)]
Clarify 'cycle-spacing-actions' docstring

* lisp/simple.el (cycle-spacing-actions): Clarify docstring.

2 years ago; * lisp/simple.el (cycle-spacing-actions): Fix typo
Robert Pluim [Tue, 17 May 2022 15:20:34 +0000 (17:20 +0200)]
; * lisp/simple.el (cycle-spacing-actions): Fix typo

2 years ago; Fix typos in etc/NEWS
Michael Albinus [Tue, 17 May 2022 15:27:15 +0000 (17:27 +0200)]
; Fix typos in etc/NEWS

2 years ago; * etc/NEWS: Rewrite entries for added support of old scripts.
Eli Zaretskii [Tue, 17 May 2022 13:21:34 +0000 (16:21 +0300)]
; * etc/NEWS: Rewrite entries for added support of old scripts.

2 years agoAvoid race conditions when computing real frame positions on Haiku
Po Lu [Tue, 17 May 2022 13:13:18 +0000 (13:13 +0000)]
Avoid race conditions when computing real frame positions on Haiku

* src/haiku_support.cc (DispatchMessage): Accept
SEND_MOVE_FRAME_EVENT.
(class EmacsWindow, FrameMoved): Include decorator frame in
MOVE_EVENT events.
(be_send_move_frame_event): New function.
* src/haiku_support.h (struct haiku_move_event): Include
decorator dimensions.  Update prototypes.

* src/haikufns.c (haiku_update_after_decoration_change): Ask for
a move frame event and don't do anything if configury is not yet
complete.

* src/haikuterm.c (haiku_read_socket): Adjust accordingly.

2 years agoAdd support for the Modi script
समीर सिंह Sameer Singh [Mon, 16 May 2022 23:03:57 +0000 (04:33 +0530)]
Add support for the Modi script

* lisp/language/indian.el ("Modi"): New language environment.
Add composition rules for Modi.  Add sample text and input
method.
Add sample text to various scripts.
Rename Punjabi to Gurmukhi.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Modi.
* lisp/leim/quail/indian.el ("modi"): New input method.
(Bug#55439)

* etc/HELLO: Add a Modi greeting.
Rename Hindi to Devanagari.
Add a Gurmukhi greeting.
Replace Odia greeting.
* etc/NEWS: Announce the new language environment and its
input method.

2 years agoCC Mode: Correct a rare error in the state cache
Alan Mackenzie [Tue, 17 May 2022 11:26:05 +0000 (11:26 +0000)]
CC Mode: Correct a rare error in the state cache

* lisp/progmodes/cc-engine.el (c-append-lower-brace-pair-to-state-cache): Do
not record a position in a macro as the starting position in
c-state-brace-pair-desert.  Instead record the position at the beginning of
that macro.

2 years agoCorrect indentation of opening brace in xdisp.c, which isn't at start of defun
Alan Mackenzie [Tue, 17 May 2022 10:30:05 +0000 (10:30 +0000)]
Correct indentation of opening brace in xdisp.c, which isn't at start of defun

* xdisp.c (calc_pixel_width_or_height): indent the opening brace of a
substatement correctly.  It's previous position, in column 0, caused
indentation errors in C Mode.

2 years agoFix unused function warning on X
Po Lu [Tue, 17 May 2022 10:18:32 +0000 (18:18 +0800)]
Fix unused function warning on X

* src/xsettings.c (xg_settings_key_valid_p): Surround with
HAVE_PGTK and HAVE_GSETTINGS.

2 years agoFix font options compilation with gsettings disabled
Pieter van Prooijen [Mon, 16 May 2022 13:20:27 +0000 (15:20 +0200)]
Fix font options compilation with gsettings disabled

* src/xsettings.c (xsettings_get_font_options): Return a font_options
even if gsettings is not enabled.

2 years agoRewrite Haiku frame geometry code to handle decorator frames
Po Lu [Tue, 17 May 2022 09:40:57 +0000 (09:40 +0000)]
Rewrite Haiku frame geometry code to handle decorator frames

* doc/lispref/frames.texi (Frame Layout): Document changes to
Haiku frame layout.

* src/haiku_support.cc (class EmacsWindow, MoveToIncludingFrame)
(EmacsMoveTo, MakeFullscreen): Move to an offset including the
decorator frames.
(be_get_window_decorator_dimensions):
(be_get_window_decorator_frame): New functions.

* src/haiku_support.h: Update prototypes.

* src/haikufns.c (haiku_update_after_decoration_change): New
function.
(haiku_create_frame, haiku_set_undecorated)
(haiku_set_override_redirect): Call that function.
(frame_geometry): Actually calculate frame geometry based on
decorator and frame sizes.

* src/haikuterm.c (haiku_coords_from_parent): Use frame width
instead.
(haiku_read_socket): Set left and top positions based on
decorator width and height.
* src/haikuterm.h (struct haiku_output): New field `frame_x' and
`frame_y'.

2 years agoFix package-quickstart breakage
Lars Ingebrigtsen [Tue, 17 May 2022 09:48:12 +0000 (11:48 +0200)]
Fix package-quickstart breakage

* lisp/emacs-lisp/package.el (package-quickstart-refresh): Work
around syntax-ppss now clobbering match data (but it's not clear
whether that's supposed to be allowed) (bug#55447).

2 years agoImprove Finternal__define_uninitialized_variable erroring
Lars Ingebrigtsen [Tue, 17 May 2022 09:06:33 +0000 (11:06 +0200)]
Improve Finternal__define_uninitialized_variable erroring

* src/eval.c (Finternal__define_uninitialized_variable): Say what
symbol we're bugging out on for easier debugging.

2 years agoFix edebug-tests test failure after prin1 change
Lars Ingebrigtsen [Tue, 17 May 2022 08:09:48 +0000 (10:09 +0200)]
Fix edebug-tests test failure after prin1 change

* lisp/emacs-lisp/ert-x.el (ert--make-print-advice): Fix test
failures in edebug-tests.

2 years agoRemove extra EmacsPopUpMenu class
Po Lu [Tue, 17 May 2022 03:11:23 +0000 (03:11 +0000)]
Remove extra EmacsPopUpMenu class

* src/haiku_support.cc (class EmacsPopUpMenu): Delete class that
does nothing.
(BPopUpMenu_new): Use BPopUpMenu directly.
(BMenu_add_title): Clean up coding style.

2 years agoAdd more cursor bitmaps on Haiku
Po Lu [Tue, 17 May 2022 02:51:42 +0000 (02:51 +0000)]
Add more cursor bitmaps on Haiku

* src/haikufns.c (cursor_bitmaps_for_id): Add vertd, horizd and
hand bitmaps.

2 years agoLet XTread_socket read events for all non-DND displays
Po Lu [Tue, 17 May 2022 01:21:19 +0000 (09:21 +0800)]
Let XTread_socket read events for all non-DND displays

* src/xterm.c (XTread_socket): Allow reading events from
displays other than the DND display during drag-and-drop.

2 years agoFix byte swapping of some drag-and-drop messages
Po Lu [Tue, 17 May 2022 01:10:46 +0000 (09:10 +0800)]
Fix byte swapping of some drag-and-drop messages

* src/xterm.c (SWAPCARD16, SWAPCARD32): Actually swap the data
instead of just calling bswap_32/bswap_16.

2 years agoFix detection of wheel movement during drag-and-drop
Po Lu [Mon, 16 May 2022 13:46:30 +0000 (21:46 +0800)]
Fix detection of wheel movement during drag-and-drop

* src/xterm.c (x_dnd_send_position): Don't treat Button8 as the
mouse wheel.

2 years agoFix Python highlighting of some assignment statements
kobarity [Mon, 16 May 2022 13:40:17 +0000 (15:40 +0200)]
Fix Python highlighting of some assignment statements

* lisp/progmodes/python.el (python-rx): Limit not-simple-operator
to a single line (bug#51362).

2 years agoAdd new user option compilation-hidden-output
Lars Ingebrigtsen [Mon, 16 May 2022 13:30:50 +0000 (15:30 +0200)]
Add new user option compilation-hidden-output

* doc/emacs/building.texi (Compilation Mode): Document it.
* lisp/progmodes/compile.el (compilation-hidden-output): New user
option.
(compilation-filter): Use it.
(compilation--hide-output): New function.

2 years agoDon't expose Vprint_variable_mapping to Lisp
Lars Ingebrigtsen [Mon, 16 May 2022 13:01:08 +0000 (15:01 +0200)]
Don't expose Vprint_variable_mapping to Lisp

* src/print.c: Don't expose Vprint_variable_mapping to the Lisp
world, because it really should be immutable.
(print_create_variable_mapping): Initialization moved here from
syms_of_print.
(print_bind_overrides): Call it.
(syms_of_print): Protect the mapping variable.

2 years ago; Fix Wrong type argument: number-or-marker-p, (4) in cycle-spacing
Tassilo Horn [Mon, 16 May 2022 12:26:29 +0000 (14:26 +0200)]
; Fix Wrong type argument: number-or-marker-p, (4) in cycle-spacing

2 years agoRevert "Make TAB work in makefile mode when transient mark mode is on"
Lars Ingebrigtsen [Mon, 16 May 2022 12:24:41 +0000 (14:24 +0200)]
Revert "Make TAB work in makefile mode when transient mark mode is on"

This reverts commit a4c96147d1875d359db8d7fda3489954046a5db8.

This change made hitting RET after an assignment insert a TAB character
(bug#55446).

2 years agoImprove newsticker file name handling and printing
Lars Ingebrigtsen [Mon, 16 May 2022 12:04:08 +0000 (14:04 +0200)]
Improve newsticker file name handling and printing

* lisp/net/newst-backend.el (newsticker--images-dir)
(newsticker--icons-dir, newsticker--cache-dir): Don't use concat
to construct file names.
(newsticker-download-images, newsticker-download-enclosures): Ditto.
(newsticker--cache-save-feed): Bind print-level etc when printing.

* lisp/net/newst-treeview.el (newsticker-treeview-save): Ditto.

This patch was mostly written by mailj2@protonmail.com, but was then
rewritten by me, and has some contributions from Xavier Capaldi (which
doesn't need copyright assignment).

2 years ago; Fix documentation of 'cycle-spacing'
Eli Zaretskii [Mon, 16 May 2022 11:50:27 +0000 (14:50 +0300)]
; Fix documentation of 'cycle-spacing'

* etc/NEWS:
* doc/emacs/killing.texi (Deletion): Fix wording and punctuation
of the documentation of 'cycle-spacing'.

2 years ago; * doc/emacs/frames.texi (Tooltips): Fix punctuation and wording.
Eli Zaretskii [Mon, 16 May 2022 11:37:36 +0000 (14:37 +0300)]
; * doc/emacs/frames.texi (Tooltips): Fix punctuation and wording.

2 years agoDocument recent tooltip changes on NS
Po Lu [Mon, 16 May 2022 09:28:36 +0000 (17:28 +0800)]
Document recent tooltip changes on NS

* doc/emacs/frames.texi (Tooltips):
* etc/NEWS: Announce that non-system tooltips are now available
on Nextstep.

2 years ago; cycle-spacing-actions: Add forgotten arg modifier - as customize choice
Tassilo Horn [Mon, 16 May 2022 08:08:40 +0000 (10:08 +0200)]
; cycle-spacing-actions: Add forgotten arg modifier - as customize choice

2 years ago; Fix two mail addresses
Andrea Corallo [Mon, 16 May 2022 07:54:15 +0000 (09:54 +0200)]
; Fix two mail addresses

;* lisp/emacs-lisp/comp.el: Fix author's mail address.
;* lisp/emacs-lisp/comp-cstr.el: Likewise.

2 years agoImprove error checking in `haiku-roster-launch'
Po Lu [Mon, 16 May 2022 07:16:27 +0000 (07:16 +0000)]
Improve error checking in `haiku-roster-launch'

* src/haikuselect.c (Fhaiku_roster_launch): Signal error if
FILE-OR-TYPE doesn't exist or ARGS does not apply.

2 years agoImprove cycle-spacing and bind it to M-SPC by default
Tassilo Horn [Thu, 12 May 2022 21:24:47 +0000 (23:24 +0200)]
Improve cycle-spacing and bind it to M-SPC by default

* lisp/bindings.el (esc-map): Bind M-SPC to cycle-spacing instead of
just-one-space.
* lisp/simple.el (delete-space--internal): New function.
(delete-horizontal-space): Use it.
(delete-all-space): New command.
(just-one-space): Implement on its own instead of calling
cycle-spacing with a special flag.
(cycle-spacing--context): Make it a plist instead of a list.  Adapt
docstring accordingly.
(cycle-spacing-actions): New user option.
(cycle-spacing): Rewrite so that it performs the actions in
cycle-spacing-actions instead of the hard-coded ones.
* doc/emacs/killing.texi (characters): Mention and add a variable
index entry for cycle-spacing-actions.
* etc/NEWS: Document that M-SPC is now cycle-spacing instead of
just-one-space.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Mon, 16 May 2022 04:30:38 +0000 (06:30 +0200)]
Merge from origin/emacs-28

f928330fa8 Update to Org 9.5.3-6-gef41f3
007bf9a34c Hide temporary FUSE files in Tramp
5dbaddc729 ; Fix some typos

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Mon, 16 May 2022 04:30:38 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

950dab21e3 * test/lisp/net/tramp-tests.el (tramp-test27-load): Adapt ...

2 years agoMerge from origin/emacs-28
Stefan Kangas [Mon, 16 May 2022 04:30:38 +0000 (06:30 +0200)]
Merge from origin/emacs-28

48201ce8de ; * lisp/electric.el (electric-indent-mode): Fix a typo.

2 years agoImprove safety of handling unsupported drop events on X
Po Lu [Mon, 16 May 2022 03:05:32 +0000 (11:05 +0800)]
Improve safety of handling unsupported drop events on X

* src/keyboard.c (kbd_buffer_get_event):
* src/xterm.c (handle_one_xevent): Check that the event frame is
still live after calling arbitrary Lisp code.

2 years agoClean up Haiku code after file panel changes
Po Lu [Mon, 16 May 2022 01:37:27 +0000 (01:37 +0000)]
Clean up Haiku code after file panel changes

* src/haiku_support.cc:
* src/haiku_support.h: Stop including pthread.h and specpdl_ref.

* src/haikumenu.c (run_menu_bar_help_event): Ignore invalid help
events instead of aborting.

2 years ago; Remove extraneous debugging code
Po Lu [Mon, 16 May 2022 01:22:50 +0000 (09:22 +0800)]
; Remove extraneous debugging code

* src/xterm.c (handle_one_xevent): Remove extra debugging code.

2 years agoHandle pointer axes changing along with scroll valuators
Po Lu [Mon, 16 May 2022 01:18:33 +0000 (09:18 +0800)]
Handle pointer axes changing along with scroll valuators

* xterm.c (x_get_scroll_valuator_delta): Set valuator_return to
NULL if no valuator was found.
(handle_one_xevent): Assume pointer axes might've changed if no
scroll valuator was found but valuators were set when handling
motion events.

2 years agoUpdate to Org 9.5.3-6-gef41f3
Kyle Meyer [Sun, 15 May 2022 21:49:17 +0000 (17:49 -0400)]
Update to Org 9.5.3-6-gef41f3

2 years agoMinor clarification of package-update-all docstring
Stefan Kangas [Sun, 15 May 2022 14:59:42 +0000 (16:59 +0200)]
Minor clarification of package-update-all docstring

* lisp/emacs-lisp/package.el (package-update-all): Clarify
docstring slightly.  (Bug#55408)

2 years agoMake minibuffer lazy highlight setup buffer-local where appropriate
Augusto Stoffel [Sat, 14 May 2022 15:21:27 +0000 (17:21 +0200)]
Make minibuffer lazy highlight setup buffer-local where appropriate

* lisp/isearch.el (minibuffer-lazy-highlight-setup): Modify hooks
buffer-locally, so that recursive minibuffers are not affected by the
special behavior of lazy-highlight.  Also make
'isearch-filter-predicate' buffer-local, so that isearch in the
minibuffer is not affected by the region filter (bug#55110).

2 years ago; * lisp/international/fontset.el (otf-script-alist): Fix typos.
Eli Zaretskii [Sun, 15 May 2022 16:08:08 +0000 (19:08 +0300)]
; * lisp/international/fontset.el (otf-script-alist): Fix typos.

2 years ago; Improve documentation of the OVERRIDES argument to prin1
Eli Zaretskii [Sun, 15 May 2022 16:02:46 +0000 (19:02 +0300)]
; Improve documentation of the OVERRIDES argument to prin1

* src/print.c (Fprin1, syms_of_print):
* etc/NEWS:
* doc/lispref/streams.texi (Output Functions, Output Overrides):
Fix typos and cross-references, and improve wording.

2 years agoRecognize some more SCSS selectors
Simen Heggestøyl [Sun, 15 May 2022 14:22:14 +0000 (16:22 +0200)]
Recognize some more SCSS selectors

* lisp/textmodes/css-mode.el (css--selector-regexp): Recognize some
more SCSS selectors.

* test/lisp/textmodes/css-mode-resources/scss-selectors.txt: Add tests
for them.

2 years agoFix warning suppression in (S)CSS mode tests
Simen Heggestøyl [Sun, 15 May 2022 14:00:27 +0000 (16:00 +0200)]
Fix warning suppression in (S)CSS mode tests

* test/lisp/textmodes/css-mode-tests.el (css-mode-test-selectors)
(scss-mode-test-selectors): Fix warning suppression.

2 years agoFix native-comp type of prin1-to-string
Lars Ingebrigtsen [Sun, 15 May 2022 13:41:46 +0000 (15:41 +0200)]
Fix native-comp type of prin1-to-string

* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix type
of prin1-to-string.

2 years agoAdjust more prin1-to-string callers
Lars Ingebrigtsen [Sun, 15 May 2022 13:37:12 +0000 (15:37 +0200)]
Adjust more prin1-to-string callers

* src/w32.c (check_windows_init_file):
* src/comp.c (Lisp_Object):
(emit_lisp_obj_reloc_lval):
(emit_lisp_obj_rval):
(emit_mvar_rval):
(emit_limple_insn):
(emit_static_object): Adjust prin1-to-string callers.

2 years agoAdd OVERRIDES argument to prin1/prin1-to-string
Lars Ingebrigtsen [Sun, 15 May 2022 13:29:28 +0000 (15:29 +0200)]
Add OVERRIDES argument to prin1/prin1-to-string

* doc/lispref/streams.texi (Output Functions): Document it.
(Output Overrides): New node.

* src/process.c (Faccept_process_output):
* src/print.c (debug_print, print_error_message):
* src/pdumper.c (print_paths_to_root_1, decode_emacs_reloc):
* src/lread.c (readevalloop):
* src/eval.c (internal_lisp_condition_case):
* src/editfns.c (styled_format): Adjust prin1/prin1-to-string
callers.

* src/print.c (Fprin1): Take an OVERRIDES parameter.
(print_bind_overrides, print_bind_all_defaults): New functions.
(Fprin1_to_string): Take an OVERRIDES parameter.

2 years agoHide temporary FUSE files in Tramp
Michael Albinus [Sun, 15 May 2022 13:09:26 +0000 (15:09 +0200)]
Hide temporary FUSE files in Tramp

* lisp/net/tramp-fuse.el (tramp-fuse-remove-hidden-files): New defsubst.
(tramp-fuse-handle-directory-files)
(tramp-fuse-handle-file-name-all-completions): Use it.

2 years agoMake Haiku stipple display slightly faster
Po Lu [Sun, 15 May 2022 12:43:54 +0000 (12:43 +0000)]
Make Haiku stipple display slightly faster

* src/haikuterm.c (haiku_draw_stipple_background): Draw tiled
bitmap to end of stipple instead of the end of the frame.

2 years agoDon't freeze Emacs on colour codes in sccs-mode
Lars Ingebrigtsen [Sun, 15 May 2022 12:13:14 +0000 (14:13 +0200)]
Don't freeze Emacs on colour codes in sccs-mode

* lisp/textmodes/css-mode.el (css--font-lock-keywords): Don't
freeze Emacs on #ffffff #ffffff, and be more strict in parsing
selectors (bug#53203).

2 years agoUpdate CSS Multi-column Layout Module properties
Simen Heggestøyl [Sat, 14 May 2022 11:20:28 +0000 (13:20 +0200)]
Update CSS Multi-column Layout Module properties

* lisp/textmodes/css-mode.el (css-property-alist): Update CSS
Multi-column Layout Module properties.

2 years ago; * lisp/textmodes/css-mode.el: Fix link
Simen Heggestøyl [Sat, 14 May 2022 11:13:30 +0000 (13:13 +0200)]
; * lisp/textmodes/css-mode.el: Fix link

* lisp/textmodes/css-mode.el (css-property-alist): Fix link to CSS
Flexible Box Layout Module.

2 years agoUpdate CSS Box Alignment Module properties
Simen Heggestøyl [Sat, 14 May 2022 11:09:53 +0000 (13:09 +0200)]
Update CSS Box Alignment Module properties

* lisp/textmodes/css-mode.el (css-property-alist): Update properties.

2 years agoAdd `all` to CSS property list
Simen Heggestøyl [Sat, 14 May 2022 10:49:07 +0000 (12:49 +0200)]
Add `all` to CSS property list

* lisp/textmodes/css-mode.el (css-property-alist): Add new property
`all` from the CSS Cascading and Inheritance Level 3 module.

2 years agoFix use of more invalid keys in PGTK GSettings code
Po Lu [Sun, 15 May 2022 09:38:21 +0000 (17:38 +0800)]
Fix use of more invalid keys in PGTK GSettings code

* src/xsettings.c (apply_gsettings_font_hinting):
(apply_gsettings_font_rgba_order): Test for key existence before
using it.

2 years ago; Fix typos
Stefan Kangas [Sun, 15 May 2022 09:15:06 +0000 (11:15 +0200)]
; Fix typos

2 years ago; Fix some typos
Stefan Kangas [Sun, 15 May 2022 09:05:36 +0000 (11:05 +0200)]
; Fix some typos

2 years agoImprove return value of `haiku-roster-launch'
Po Lu [Sun, 15 May 2022 08:33:34 +0000 (08:33 +0000)]
Improve return value of `haiku-roster-launch'

* src/haikuselect.c (Fhaiku_roster_launch): Return
`already-running' if no PID is available since the target
application is already running.
(syms_of_haikuselect): New defsym.

2 years ago* test/lisp/net/tramp-tests.el (tramp-test27-load): Adapt test. Don't merge
Michael Albinus [Sun, 15 May 2022 07:02:42 +0000 (09:02 +0200)]
* test/lisp/net/tramp-tests.el (tramp-test27-load): Adapt test.  Don't merge

2 years agoSimplify Haiku cursor management code
Po Lu [Sun, 15 May 2022 06:23:25 +0000 (06:23 +0000)]
Simplify Haiku cursor management code

* src/haiku_support.cc (BCursor_create_default)
(BCursor_create_modeline, BCursor_from_id, BCursor_create_i_beam)
(BCursor_create_progress_cursor, BCursor_create_grab)
(BCursor_delete): Delete specialized cursor creation functions.
(be_delete_cursor, be_create_cursor_from_id): New functions.
(BView_set_view_cursor): Fix coding style.
* src/haiku_support.h (enum haiku_cursor): Add all cursor IDs.
* src/haikufns.c (haiku_free_custom_cursors):
(haiku_set_mouse_color):
* src/haikuterm.c (haiku_term_init): Adjust accordingly.

2 years ago; * lisp/electric.el (electric-indent-mode): Fix a typo.
Eli Zaretskii [Sun, 15 May 2022 06:21:36 +0000 (09:21 +0300)]
; * lisp/electric.el (electric-indent-mode): Fix a typo.

2 years agoFix database related to some scripts
Eli Zaretskii [Sun, 15 May 2022 06:08:50 +0000 (09:08 +0300)]
Fix database related to some scripts

* lisp/international/fontset.el (script-representative-chars): Add
tai-le and tai-lue scripts.
(otf-script-alist): Fix the name of tai-le.

* src/w32font.c (syms_of_w32font): Fix typos in some script symbol
names.

2 years agoAdd support for the Syloti Nagri script
समीर सिंह Sameer Singh [Sat, 14 May 2022 23:39:15 +0000 (05:09 +0530)]
Add support for the Syloti Nagri script

* lisp/language/indian.el ("Syloti Nagri"): New language environment.
Add composition rules for Syloti Nagri.  Add sample text and input
method.
Improve composition rules for Kaithi, Tirhuta, Sharada and Siddham.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Syloti Nagri.
* lisp/leim/quail/indian.el ("syloti-nagri"): New input method.

* etc/HELLO: Add two Syloti Nagri greetings.
* etc/NEWS: Announce the new language environment and its
input method.

2 years agodescribe-keymap: Suggest symbol at point
Visuwesh [Fri, 13 May 2022 07:39:55 +0000 (13:09 +0530)]
describe-keymap: Suggest symbol at point

* lisp/help-fns.el (describe-keymap): Suggest symbol at point
if it is a keymap.  (Bug#55393)
* etc/NEWS: Announce change in behavior of 'describe-keymap'.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sun, 15 May 2022 04:30:34 +0000 (06:30 +0200)]
Merge from origin/emacs-28

8370caa835 ; * lisp/electric.el (electric-indent-mode): Clarify doc (...

2 years agoAllocate some buffers used during event handling safely
Po Lu [Sun, 15 May 2022 01:38:56 +0000 (09:38 +0800)]
Allocate some buffers used during event handling safely

* src/xterm.c (handle_one_xevent): Allocate string lookup and
device disable data safely since they can potentially become
very large.

2 years agoPrevent crashes trying to access nonexistent key
Po Lu [Sun, 15 May 2022 01:30:07 +0000 (09:30 +0800)]
Prevent crashes trying to access nonexistent key

* src/xsettings.c (xg_settings_key_valid_p): New function.
(apply_gsettings_font_antialias): Test that `font-aliasing' is
actually available.  (bug#55416)

2 years agoFix scroll event translation for legacy button events
Po Lu [Sun, 15 May 2022 01:05:41 +0000 (09:05 +0800)]
Fix scroll event translation for legacy button events

* src/xterm.c (handle_one_xevent): Don't treat emulated Button8
as a wheel event.

2 years agoRemove some XEmacs compat code for display-graphic-p
Stefan Kangas [Sat, 14 May 2022 20:36:36 +0000 (22:36 +0200)]
Remove some XEmacs compat code for display-graphic-p

* lisp/dframe.el (dframe-have-timer-flag):
* lisp/emacs-lisp/chart.el (chart-face-pixmap-list):
* lisp/speedbar.el (speedbar-easymenu-definition-base): Remove
XEmacs compat code; assume display-graphic-p is fboundp.

* lisp/progmodes/cperl-mode.el (cperl-tags-hier-init): Remove XEmacs
compat code.

2 years agoDelete some compat code for very old Emacs versions
Stefan Kangas [Sat, 14 May 2022 20:33:07 +0000 (22:33 +0200)]
Delete some compat code for very old Emacs versions

* lisp/apropos.el (apropos-local-value):
* lisp/ido.el (ido-buffer-internal):
* lisp/leim/quail/ipa.el (ipa-x-sampa-prepend-to-keymap-entry):
* lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
* lisp/speedbar.el (speedbar-create-tag-hierarchy): Delete compat code
for very old versions of Emacs.
* lisp/gnus/nnmail.el (nnmail-fancy-expiry-target): Avoid using
obsolete name.

2 years agosrc/lisp.h (FOR_EACH_TAIL_SAFE): Typo
Stefan Monnier [Sat, 14 May 2022 16:46:21 +0000 (12:46 -0400)]
src/lisp.h (FOR_EACH_TAIL_SAFE): Typo

2 years agoMake 'check-declare-directory' more portable
Eli Zaretskii [Sat, 14 May 2022 16:08:55 +0000 (19:08 +0300)]
Make 'check-declare-directory' more portable

* lisp/emacs-lisp/check-declare.el (check-declare-directory): Use
'directory-files-recursively' instead of running Find and Grep in
a subprocess.  (Bug#55386)

2 years ago; * lisp/electric.el (electric-indent-mode): Clarify doc (bug#22564).
Eli Zaretskii [Sat, 14 May 2022 14:48:22 +0000 (17:48 +0300)]
; * lisp/electric.el (electric-indent-mode): Clarify doc (bug#22564).

2 years agoDrop ancient OEmacs support from vcursor.el
Stefan Kangas [Sat, 14 May 2022 13:47:35 +0000 (15:47 +0200)]
Drop ancient OEmacs support from vcursor.el

* lisp/vcursor.el (vcursor-bind-keys, vcursor-key-bindings)
(vcursor-other-window): Drop OEmacs support.  OEmacs was "a
version of GNU Emacs V19.19" that worked "under plain MSDOS,
Windows, or DESQview/X".