]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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".

2 years agoRemove Emacs 22 compat code from htmlfontify.el
Stefan Kangas [Fri, 13 May 2022 21:50:43 +0000 (23:50 +0200)]
Remove Emacs 22 compat code from htmlfontify.el

* lisp/htmlfontify.el (hfy-prop-invisible-p): Redefine as obsolete
function alias for invisible-p.  Update all callers.

2 years agoRemove some XEmacs compat code from org-mode
Stefan Kangas [Fri, 13 May 2022 21:44:12 +0000 (23:44 +0200)]
Remove some XEmacs compat code from org-mode

* lisp/org/org-clock.el (org-clock-select-task): Remove XEmacs
compat code.

2 years ago; Fix PGTK declare-function mistakes
Po Lu [Sat, 14 May 2022 13:42:21 +0000 (21:42 +0800)]
; Fix PGTK declare-function mistakes

* lisp/frame.el (pgtk-frame-list-z-order):
(frame-list-z-order):
* lisp/term/pgtk-win.el (pgtk-hide-emacs): Remove extraneous or
incorrect `declare-function's.  Reported by Eli Zaretskii
<eliz@gnu.org>.

2 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Po Lu [Sat, 14 May 2022 13:35:43 +0000 (21:35 +0800)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

2 years agoMinor fixes for popup dialogs on macOS
Po Lu [Sat, 14 May 2022 13:35:05 +0000 (21:35 +0800)]
Minor fixes for popup dialogs on macOS

* nsmenu.m (pop_down_menu): Restore old hack for macOS.
([EmacsDialogPanel initWithTitle:isQuestion:]): Set command
title correctly.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 14 May 2022 13:32:38 +0000 (16:32 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years ago; Fix mistakes in 'declare function' forms
Eli Zaretskii [Sat, 14 May 2022 13:19:12 +0000 (16:19 +0300)]
; Fix mistakes in 'declare function' forms

* lisp/progmodes/gdb-mi.el (tooltip-show):
* lisp/vc/vc-git.el (grep-expand-template):
* lisp/cedet/semantic/imenu.el (pulse-momentary-highlight-one-line):
* lisp/mail/feedmail.el (smtpmail-via-smtp):
* lisp/mail/rmail.el (rmail-mime-entity-truncated):
* lisp/mail/rmailsum.el (rmail-cease-edit):
* lisp/progmodes/gud.el (speedbar-toggle-line-expansion)
(speedbar-edit-line):
* lisp/autoinsert.el (sgml-tag):
* lisp/comint.el (url-host, url-type, url-filename):
* lisp/progmodes/elisp-mode.el (xref-make, xref-item-location):
* lisp/vc/vc-hooks.el (vc-responsible-backend):
* lisp/cedet/semantic/complete.el (tooltip-show):
* lisp/doc-view.el (tooltip-show):
* lisp/follow.el (mwheel-scroll):
* lisp/term/pgtk-win.el (pgtk-set-resource):
* lisp/progmodes/cperl-mode.el (Info-find-node):
* lisp/lpr.el (print-region-function):
* lisp/w32-fns.el (w32-version, w32-read-registry):
* lisp/emacs-lisp/checkdoc.el (ispell-correct-p, checkdoc-dired):
* lisp/progmodes/xref.el (apropos-parse-pattern):
* lisp/cus-edit.el (apropos-parse-pattern):
* lisp/obsolete/gs.el (x-change-window-property):
* lisp/x-dnd.el (x-change-window-property):
* lisp/xwidget.el (make-xwidget):
* lisp/transient.el (info, Man-find-section, Man-next-section)
(Man-getpage-in-background):
* lisp/frame.el (x-device-class, pgtk-device-class):
* lisp/textmodes/texinfo.el (flymake--log-1):
* lisp/term/x-win.el (x-internal-focus-input-context): Fix
'declare function' errors uncovered by 'check-declare'.

2 years agoFix processing of dialog box items on NS
Po Lu [Sat, 14 May 2022 13:18:27 +0000 (21:18 +0800)]
Fix processing of dialog box items on NS

* src/nsmenu.m (pop_down_menu): Remove old hack and discard menu
items.
(ns_popup_dialog):
([EmacsDialogPanel initWithContentRect:styleMask:backing:defer:]):
([EmacsDialogPanel windowShouldClose:]):
([EmacsDialogPanel dealloc]):
([EmacsDialogPanel processdialog:]):
([EmacsDialogPanel addButton:value:row:]):
([EmacsDialogPanel addString:row:]):
([EmacsDialogPanel clicked:]):
([EmacsDialogPanel initFromContents:isQuestion:]):
([EmacsDialogPanel timeouthandler:]):
([EmacsDialogPanel runDialogAt:]): Use the regular menu item
machinery to parse dialog items instead of the incorrect ad-hoc
code used previously.

* src/nsterm.h: Update prototypes.

2 years agoAvoid unsafe alloca when looking up toplevels
Po Lu [Sat, 14 May 2022 12:07:27 +0000 (20:07 +0800)]
Avoid unsafe alloca when looking up toplevels

* src/xterm.c (x_dnd_compute_toplevels): Use SAFE_ALLOCA, since
alloca isn't safe when there are lots of toplevels or the window
manager is broken.

2 years agoFix undigest-tests on MS-Windows
Eli Zaretskii [Sat, 14 May 2022 08:30:54 +0000 (11:30 +0300)]
Fix undigest-tests on MS-Windows

* lisp/emacs-lisp/ert-x.el (ert-with-temp-file): Accept a new
keyword argument :coding CODING to use as the encoding when
writing initial text to the temporary file.

* test/lisp/mail/undigest-tests.el (rmail-undigest-test-rfc934-digest)
(rmail-undigest-test-rfc1153-digest-strict)
(rmail-undigest-test-rfc1153-less-strict-digest)
(rmail-undigest-test-rfc1153-sloppy-digest)
(rmail-undigest-test-rfc1521-mime-digest)
(rmail-undigest-test-multipart-mixed-digest): Force the temporary
mbox files to have Unix-style EOL format.

2 years ago; Fix the documentation of compiler-macros and advice
Eli Zaretskii [Sat, 14 May 2022 07:34:50 +0000 (10:34 +0300)]
; Fix the documentation of compiler-macros and advice

* doc/lispref/functions.texi (Advice and Byte Code): Fix typos
and improve wording and indexing.  (Bug#23264)

2 years ago2022-05-14 Martin Rudalics <rudalics@gmx.at>
Martin Rudalics [Sat, 14 May 2022 07:19:57 +0000 (09:19 +0200)]
2022-05-14  Martin Rudalics  <rudalics@gmx.at>

* lisp/window.el (quit-restore-select-window): New function.
(quit-restore-window): Call 'quit-restore-select-window' to avoid
selecting inactive minibuffer window (Bug#55403).

2 years agoTry to restore valuator values when a device is enabled
Po Lu [Sat, 14 May 2022 06:12:39 +0000 (14:12 +0800)]
Try to restore valuator values when a device is enabled

* src/xterm.c (struct xi_known_valuator): New struct.
(xi_populate_device_from_info): Figure out all the values of the
valuators and set the scroll valuators's current_value to it.

2 years agoBetter fix for disappearing menu items on NS
Po Lu [Sat, 14 May 2022 05:50:52 +0000 (13:50 +0800)]
Better fix for disappearing menu items on NS

* src/frame.c (delete_frame): Revert last change.
* src/nsmenu.m (free_frame_menubar): Only free if that frame's
menu bar is actually being displayed.
(ns_update_menubar): Note the last frame to have updated the
menu bar.

2 years agoAdd more cursor bitmaps on Haiku
Po Lu [Sat, 14 May 2022 05:29:49 +0000 (05:29 +0000)]
Add more cursor bitmaps on Haiku

* src/haikufns.c (cursor_bitmaps): Register new cursor bitmaps.
* src/haikugui.h (hand_ptr_bits, hand_ptrmask_bits)
(horizd_ptr_bits, horizd_ptrmask_bits, vertd_ptr_bits)
(vertd_ptrmask_bits, hourglass_bits, hourglass_mask_bits): New
cursor bitmaps.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Sat, 14 May 2022 04:31:37 +0000 (06:31 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

f044da7704 Fix tooltip face overwriting dragged text strings during m...

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

a769cbfcfb Fix lexical-binding fallout in vhdl-mode.el

2 years agoWork around deleting tooltip frames clearing menubars on NS
Po Lu [Sat, 14 May 2022 04:16:34 +0000 (12:16 +0800)]
Work around deleting tooltip frames clearing menubars on NS

* src/frame.c (delete_frame): Update menu bars if a tooltip
frame was deleted on NS.

2 years agoImplement non-system tooltips on NS
Po Lu [Sat, 14 May 2022 03:29:43 +0000 (11:29 +0800)]
Implement non-system tooltips on NS

* src/nsfns.m (unwind_create_frame): Return Lisp_Object like on
X.
(do_unwind_create_frame): New function.
(Fx_create_frame): Adjust accordingly.
(compute_tip_xy): Fix coding style.
(unwind_create_tip_frame, ns_create_tip_frame): New functions.
(x_hide_tip, Fx_show_tip, Fx_hide_tip): Create and hide actual
tooltip frames.
(syms_of_nsfns): New defvar `x-max-tooltip-size' and staticpros.

* src/nsterm.m (ns_set_window_size): Clean up coding style.
([EmacsWindow initWithEmacsFrame:]):
([EmacsWindow initWithEmacsFrame:fullscreen:screen:]): Handle
tooltip frames.

2 years agoPut help-fns--compiler-macro last in the *Help* buffer
Lars Ingebrigtsen [Sat, 14 May 2022 02:59:24 +0000 (04:59 +0200)]
Put help-fns--compiler-macro last in the *Help* buffer

* lisp/help-fns.el (help-fns-describe-function-functions): Make
help-fns--compiler-macro the last entry (because it's not the most
interesting information).

2 years agoFix display class of tooltip frames on Haiku
Po Lu [Sat, 14 May 2022 02:38:53 +0000 (02:38 +0000)]
Fix display class of tooltip frames on Haiku

* haikufns.c (haiku_create_tip_frame): Set up frame display
class.
(syms_of_haikufns): New symbols `mono', `grayscale' and `color'.

2 years agoRestore `with-help-window' return code
Lars Ingebrigtsen [Sat, 14 May 2022 02:13:44 +0000 (04:13 +0200)]
Restore `with-help-window' return code

* lisp/help.el (help--window-setup): Return the correct thing.

2 years agoImprove the *Help* output for compiler macros and the like
Lars Ingebrigtsen [Sat, 14 May 2022 02:06:32 +0000 (04:06 +0200)]
Improve the *Help* output for compiler macros and the like

* doc/lispref/functions.texi (Advice and Byte Code): New node.

* lisp/help-fns.el (help-fns--compiler-macro): Also output data on
other byte compilation things, and link to the manual (bug#23264).

2 years agoReenable frame sync for child frames after they're unparented
Po Lu [Sat, 14 May 2022 02:11:22 +0000 (10:11 +0800)]
Reenable frame sync for child frames after they're unparented

* src/xfns.c (x_set_parent_frame, Fx_create_frame): Use correct
boolean constants.
* src/xterm.c (handle_one_xevent): Enable frame synchronization
upon receiving a sync request event.

2 years agoTweak querying in package-update-all
Lars Ingebrigtsen [Sat, 14 May 2022 01:10:46 +0000 (03:10 +0200)]
Tweak querying in package-update-all

* lisp/emacs-lisp/package.el (package-update-all): Reverse the
QUERY logic to make calling more regular.

2 years agoUse ert-with-temp-file in undigest-tests.el
Stefan Kangas [Fri, 13 May 2022 20:53:16 +0000 (22:53 +0200)]
Use ert-with-temp-file in undigest-tests.el

* test/lisp/mail/undigest-tests.el (ert-x): Require.
(rmail-undigest-test-rfc934-digest)
(rmail-undigest-test-rfc1153-digest-strict)
(rmail-undigest-test-rfc1153-less-strict-digest)
(rmail-undigest-test-rfc1153-sloppy-digest)
(rmail-undigest-test-rfc1521-mime-digest)
(rmail-undigest-test-multipart-mixed-digest): Use ert-with-temp-file.

2 years agoDon't use obsolete yow library
Stefan Kangas [Fri, 13 May 2022 20:29:53 +0000 (22:29 +0200)]
Don't use obsolete yow library

* lisp/erc/erc.el (erc-quit-reason-zippy, erc-part-reason-zippy):
Don't use obsolete yow library.

2 years agoRemove some XEmacs compat code from flyspell.el
Stefan Kangas [Fri, 13 May 2022 20:21:35 +0000 (22:21 +0200)]
Remove some XEmacs compat code from flyspell.el

* lisp/textmodes/flyspell.el (flyspell-display-next-corrections):
Remove XEmacs compat code.

2 years agoRemove some XEmacs compat code from org-mode
Stefan Kangas [Fri, 13 May 2022 19:41:16 +0000 (21:41 +0200)]
Remove some XEmacs compat code from org-mode

* lisp/org/ol-eww.el (org-eww-copy-for-org-mode):
* lisp/org/ol-w3m.el (org-w3m-copy-for-org-mode):
* lisp/org/org-refile.el (org-refile):
* lisp/org/org.el (org-change-tag-in-region): Remove XEmacs compat
code.

2 years agoRemove some XEmacs compat code from eudc-bob.el
Stefan Kangas [Fri, 13 May 2022 19:30:05 +0000 (21:30 +0200)]
Remove some XEmacs compat code from eudc-bob.el

* lisp/net/eudc-bob.el (eudc-bob-can-display-inline-images): Make
into obsolete alias for display-graphic-p.  Update all callers.
(eudc-bob-display-jpeg): Remove XEmacs compat code.

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Fri, 13 May 2022 19:24:26 +0000 (21:24 +0200)]
Regenerate ldefs-boot.el

2 years agoAdd new minor mode `header-line-indent-mode'
Lars Ingebrigtsen [Fri, 13 May 2022 19:24:12 +0000 (21:24 +0200)]
Add new minor mode `header-line-indent-mode'

This is mostly factored out from tabulated-list.el (with bugs fixed).

* doc/lispref/modes.texi (Header Lines): Document it.
* lisp/display-line-numbers.el (header-line-indent): New variable.
(header-line-indent--line-number-width)
(header-line-indent--watch-line-number-width)
(header-line-indent--window-scroll-function): New helper functions.
(header-line-indent-mode): New minor mode.

* lisp/display-line-numbers.el (header-line-indent-width): New
variable.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-line-number-width)
(tabulated-list-watch-line-number-width)
(tabulated-list-window-scroll-function): Make into obsolete aliases.
(tabulated-list-mode): Use 'header-line-indent-mode'.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header):
Adjust the header line format and computation.

* src/buffer.c (syms_of_buffer): Mention header-line-indent-mode.

2 years agoRevert mistaken change in help-mode-setup
Lars Ingebrigtsen [Fri, 13 May 2022 17:31:46 +0000 (19:31 +0200)]
Revert mistaken change in help-mode-setup

* lisp/help-mode.el (help-mode-setup): Revert mistakenly applied
change from cd87a5c7a.

2 years agoDon't overwrite variables set by callback in help--window-setup
Lars Ingebrigtsen [Fri, 13 May 2022 15:14:21 +0000 (17:14 +0200)]
Don't overwrite variables set by callback in help--window-setup

* lisp/help.el (help--window-setup): Initialize the buffer in the
correct order to avoid resetting variables set by the callback.

2 years agoDon't clear out local variables in `with-help-window'
Lars Ingebrigtsen [Fri, 13 May 2022 14:58:59 +0000 (16:58 +0200)]
Don't clear out local variables in `with-help-window'

* lisp/help-mode.el (help-mode-setup): Declare obsolete.
(help-mode-finish): Ditto.

* lisp/help.el (with-help-window): Don't be a wrapper around
`with-temp-buffer-window', because that made the macro big and
difficult to understand.
(help--window-setup): Implement the relevant bits from
`with-temp-buffer-window'.  Also don't clear out local variables,
because that makes things like `text-scale-mode' not work (bug#25979).

2 years ago* doc/lispref/help.texi (Keys in Documentation): Typo in last change
Stefan Monnier [Fri, 13 May 2022 14:38:42 +0000 (10:38 -0400)]
* doc/lispref/help.texi (Keys in Documentation): Typo in last change

2 years agoAllow substitute-command-keys to include menus in \{...} output
Lars Ingebrigtsen [Fri, 13 May 2022 13:54:16 +0000 (15:54 +0200)]
Allow substitute-command-keys to include menus in \{...} output

* doc/lispref/help.texi (Keys in Documentation): Document it.
* lisp/help.el (substitute-command-keys): Add an argument to
include menus in the \{...-map} output (bug#24236).

2 years agoInclude the number of dependencies in the install prompt
Lars Ingebrigtsen [Fri, 13 May 2022 13:31:13 +0000 (15:31 +0200)]
Include the number of dependencies in the install prompt

* lisp/emacs-lisp/package.el (package-menu--list-to-prompt): Add
the info to the prompt (bug#23346).
(package--dependencies): New function.

2 years agoAllow calling package-update-all from the command line
Lars Ingebrigtsen [Fri, 13 May 2022 13:04:50 +0000 (15:04 +0200)]
Allow calling package-update-all from the command line

* lisp/emacs-lisp/package.el (package-update-all): Allow calling from
  the command line with -f package-update-all without any queries.

2 years agoFix tooltip face overwriting dragged text strings during mouse DND
Po Lu [Fri, 13 May 2022 12:57:24 +0000 (20:57 +0800)]
Fix tooltip face overwriting dragged text strings during mouse DND

* lisp/mouse.el (mouse-drag-and-drop-region): Copy
`text-tooltip' before showing it.  Do not merge to master.

2 years agoUse gsettings font rendering entries for pgtk builds
Pieter van Prooijen [Sun, 8 May 2022 14:27:38 +0000 (16:27 +0200)]
Use gsettings font rendering entries for pgtk builds

If present, apply the gsettings font hinting and antialiasing
entries when creating a font in cairo.  Do this at
initialization and when the entries change, re-rendering the
frames.

* src/ftcrfont.c (ftcrfont_open): Use the font_options derived
from gsettings when opening a font.
(ftcrfont_cached_font_ok): Report a cached font as invalid if
its font options differ from the current options inside
gsettings.
* src/xsettings.c (apply_gsettings_font_hinting)
(apply_gsettings_font_alias, apply_gsettings_font_rgba_order):
Convert the settings from GSettings to the cairo_font_options_t
object.
(init_gsettings, something_changed_gsettingsCB): Invoke the
apply functions if the relevant settings changed.
(store_font_options_changed): Store an event to re-render the
fonts.
(xsetting_get_font_options)
* src/xsettings.h (xsettings_get_font_options): New function.

2 years ago; Minor improvements to earlier change
Po Lu [Fri, 13 May 2022 12:48:46 +0000 (20:48 +0800)]
; Minor improvements to earlier change

* etc/NEWS:
* lisp/tooltip.el (tooltip-show): Rename `frame-face' to
`default-face' and improve doc about system tooltips.

2 years agoAdd a provide in epa-ks
Lars Ingebrigtsen [Fri, 13 May 2022 12:44:27 +0000 (14:44 +0200)]
Add a provide in epa-ks

* lisp/epa-ks.el (epa-ks): Add a provide (bug#55388).

2 years agoRemove some XEmacs compat code from pascal.el
Stefan Kangas [Fri, 13 May 2022 10:43:15 +0000 (12:43 +0200)]
Remove some XEmacs compat code from pascal.el

* lisp/progmodes/pascal.el (pascal-outline-map): Remove XEmacs compat
code.

2 years ago* lisp/language/thai-util.el (thai-word-mode-map): Prefer defvar-keymap.
Stefan Kangas [Thu, 12 May 2022 13:53:28 +0000 (15:53 +0200)]
* lisp/language/thai-util.el (thai-word-mode-map): Prefer defvar-keymap.

2 years agoFix dabbrev expansion after recent file-name buffer addition
Lars Ingebrigtsen [Fri, 13 May 2022 12:29:48 +0000 (14:29 +0200)]
Fix dabbrev expansion after recent file-name buffer addition

* lisp/dabbrev.el (dabbrev--find-expansion): Remove the now-dead
file name buffer from dabbrev--friend-buffer-list, so that we
don't trip over the killed buffer later (bug introduced in 2d0085f756).

2 years agoMake imenu-flush-cache into a function
Lars Ingebrigtsen [Fri, 13 May 2022 12:07:13 +0000 (14:07 +0200)]
Make imenu-flush-cache into a function

* doc/emacs/programs.texi (Imenu): Remove documentation.

* lisp/imenu.el (imenu-flush-cache): Make into a function, since
this isn't supposed to be used interactively.