]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoRestore pending_signals at a point in the DND event loop
Po Lu [Sun, 17 Apr 2022 00:38:37 +0000 (08:38 +0800)]
Restore pending_signals at a point in the DND event loop

* src/xterm.c (x_dnd_begin_drag_and_drop): Restore
pending_signals after unblock_input.

2 years agoAdd basic Texinfo support for Flymake.
Earl Hyatt [Tue, 7 Dec 2021 02:04:27 +0000 (21:04 -0500)]
Add basic Texinfo support for Flymake.

* lisp/textmodes/texinfo.el (texinfo-flymake, texinfo--flymake-proc)
(texinfo-mode):
Add the functions texinfo-flymake and process variable
texinfo--flymake-proc.  Modify texinfo-mode to automatically add this
function to the hook flymake-diagnostic-functions.

2 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 16 Apr 2022 18:05:54 +0000 (14:05 -0400)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

Merge from emacs-28.

2 years ago; Merge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:58:34 +0000 (13:58 -0400)]
; Merge from origin/emacs-28

The following commit was skipped:

1c495aff71 Clarify when mode tagging is used

2 years agoMerge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:58:31 +0000 (13:58 -0400)]
Merge from origin/emacs-28

d53c999b4a Further vcs-cvs/rcs-responsible-p updates from master
dc3d1628ec ; * src/sysdep.c: Fix mistake in previous commit
855e15dbf1 Fix builds on older versions of macOS
9da744e450 Fix documentation of Outline minor mode options
a8bb12ab05 Improve discoverability of 'insert-directory-program'
3f166bdf44 ; * etc/PROBLEMS: Describe MS-Windows issues with fonts.  ...
803ac857ee Fix cursor motion under truncate-lines with Flymake fringe...

# Conflicts:
# etc/PROBLEMS
# lisp/outline.el
# src/sysdep.c

2 years ago; Merge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:46:05 +0000 (13:46 -0400)]
; Merge from origin/emacs-28

The following commit was skipped:

bc63651588 Make all vc-*-responsible-p functions return a string

2 years agoMerge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:46:04 +0000 (13:46 -0400)]
Merge from origin/emacs-28

b201823f63 Describe problems with invoking Python on MS-Windows
880f2734c9 A better fix for bug#54800
5ee959aa87 Add a comment about cl-concatenate
ab2b822b9b Revert "Make cl-concatenate an alias of seq-concatenate"

2 years ago; Merge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:46:04 +0000 (13:46 -0400)]
; Merge from origin/emacs-28

The following commit was skipped:

78e1640ad5 Fix 'window-text-pixel-width' when starting from display p...

2 years agoMerge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:45:50 +0000 (13:45 -0400)]
Merge from origin/emacs-28

5e47d6284b * lisp/gnus/mm-encode.el (mm-default-file-encoding): Fix "...
e71c7a7c60 Fix default-directory of buffers visiting files in renamed...
cccaa9c31d Fix a kill-append regression
33828e4818 * doc/misc/eww.texi (Advanced): Correct outdated info (bug...
e8d2f40f41 Clean up the MSDOS port
338eda09d8 Fix typo in next-error-find-buffer-function

# Conflicts:
# doc/misc/eww.texi

2 years ago; Merge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:43:33 +0000 (13:43 -0400)]
; Merge from origin/emacs-28

The following commit was skipped:

b385fd0b88 Revert "Make shell-resync-dirs handle whitespace in direct...

2 years agoMerge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:43:33 +0000 (13:43 -0400)]
Merge from origin/emacs-28

84a2857722 Fix scrolling of the stack window in Calc
9dd44505b1 ; * src/window.c (Fset_window_start): Clarify the effect o...
24a6c7c8c0 Update and fix instructions and scripts for updating the W...
886339747b Extend tramp-archive-test45-auto-load
ff997ad786 Ensure local `default-directory' in Tramp when needed
4f27588a16 Clarify "idleness" in the ELisp manual

2 years ago; Merge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:43:33 +0000 (13:43 -0400)]
; Merge from origin/emacs-28

The following commit was skipped:

98abf01fd6 Use correct signal oldset in posix_spawn implementation

2 years agoMerge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:43:32 +0000 (13:43 -0400)]
Merge from origin/emacs-28

aab36e1895 Fix error in tramp-archive-autoload-file-name-handler
11a1f7817e Merge branch 'emacs-28' of git.sv.gnu.org:/srv/git/emacs i...
93974198b6 Commit missing file from previous commit

2 years ago; Merge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:43:32 +0000 (13:43 -0400)]
; Merge from origin/emacs-28

The following commits were skipped:

71f51f1b9d Commit missing file from previous commit (Do not merge wit...
009e88e002 Merge with Tramp 2.5.2.3 (Do not merge with master)
4161a36849 cl-generic.el: Fix bug#46722

2 years agoMerge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:43:32 +0000 (13:43 -0400)]
Merge from origin/emacs-28

8c71ac606e Fix fallout from lexical-binding in vhdl-mode.el

2 years ago; Merge from origin/emacs-28
Eli Zaretskii [Sat, 16 Apr 2022 17:43:31 +0000 (13:43 -0400)]
; Merge from origin/emacs-28

The following commit was skipped:

dd3863d8bc ; Prepare the release branch for Emacs-28.2 development

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Sat, 16 Apr 2022 17:42:44 +0000 (19:42 +0200)]
Regenerated ldefs-boot.el

2 years agoDon't leave `C-h N' in a text-mode derived mode
Lars Ingebrigtsen [Sat, 16 Apr 2022 17:42:33 +0000 (19:42 +0200)]
Don't leave `C-h N' in a text-mode derived mode

* lisp/help.el (view-emacs-news): Use emacs-news-view-mode.
* lisp/textmodes/emacs-news-mode.el (emacs-news-view-mode): Split
into own mode to avoid confusion.

2 years agoFix button-buffer-map binding error
Lars Ingebrigtsen [Sat, 16 Apr 2022 17:32:26 +0000 (19:32 +0200)]
Fix button-buffer-map binding error

* lisp/button.el (button-buffer-map): Fix error in map rewriting
in previous commit.

2 years agoAdd new commands to go to headings/sections in the NEWS file
Lars Ingebrigtsen [Sat, 16 Apr 2022 17:14:34 +0000 (19:14 +0200)]
Add new commands to go to headings/sections in the NEWS file

* lisp/textmodes/emacs-news-mode.el (emacs-news-find-heading)
(emacs-news-goto-section): New commands.

2 years ago; * doc/emacs/mini.texi (Completion Commands): Fix markup.
Eli Zaretskii [Sat, 16 Apr 2022 16:37:00 +0000 (19:37 +0300)]
; * doc/emacs/mini.texi (Completion Commands): Fix markup.

2 years agoAdd emacs-news-previous-untagged-entry command
Lars Ingebrigtsen [Sat, 16 Apr 2022 16:35:11 +0000 (18:35 +0200)]
Add emacs-news-previous-untagged-entry command

* lisp/textmodes/emacs-news-mode.el
(emacs-news-next-untagged-entry): Allow searching backward.
(emacs-news-previous-untagged-entry): New command and keystroke.

2 years ago; * lisp/language/indian.el ("Brahmi"): Enhance composition rules.
Eli Zaretskii [Sat, 16 Apr 2022 16:27:25 +0000 (19:27 +0300)]
; * lisp/language/indian.el ("Brahmi"): Enhance composition rules.

2 years agoFold some too-long NEWS lines
Lars Ingebrigtsen [Sat, 16 Apr 2022 16:08:42 +0000 (18:08 +0200)]
Fold some too-long NEWS lines

2 years agoDo some NEWS tagging
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:59:05 +0000 (17:59 +0200)]
Do some NEWS tagging

2 years agoDo some NEWS tagging
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:38:37 +0000 (17:38 +0200)]
Do some NEWS tagging

2 years agoImprove exif-field discoverability
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:35:44 +0000 (17:35 +0200)]
Improve exif-field discoverability

* lisp/image/exif.el (exif-parse-file, exif-parse-buffer): Link to
`exif-field'.

2 years agoDo some NEWS tagging
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:33:19 +0000 (17:33 +0200)]
Do some NEWS tagging

2 years agoDocument project-kill-buffers-display-buffer-list
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:30:32 +0000 (17:30 +0200)]
Document project-kill-buffers-display-buffer-list

* doc/emacs/maintaining.texi (Project Buffer Commands): Mention
project-kill-buffers-display-buffer-list.

* lisp/progmodes/project.el (project-kill-buffers): Link to
project-kill-buffers-display-buffer-list.

2 years agoDocument prefix to project-find-file
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:27:37 +0000 (17:27 +0200)]
Document prefix to project-find-file

* doc/emacs/maintaining.texi (Project File Commands): Mention the
prefix in the project-find-file command.

2 years agoFix glyphless-display-mode indexing
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:21:43 +0000 (17:21 +0200)]
Fix glyphless-display-mode indexing

* doc/lispref/display.texi (Glyphless Chars): Fix indexing.

2 years agoDocument completions-sort
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:20:04 +0000 (17:20 +0200)]
Document completions-sort

* doc/emacs/mini.texi (Completion Options): Document completions-sort.

2 years agoMention completion-wrap-movement in relevant commands
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:17:05 +0000 (17:17 +0200)]
Mention completion-wrap-movement in relevant commands

* lisp/simple.el (previous-completion, next-completion): Mention
`completion-wrap-movement'.

2 years agoDocument minibuffer-completion-auto-choose/M-up/M-down
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:14:08 +0000 (17:14 +0200)]
Document minibuffer-completion-auto-choose/M-up/M-down

* doc/emacs/mini.texi (Completion Commands): Document
minibuffer-completion-auto-choose/M-up/M-down.

2 years agoFurther IDNA/proxy url fixes
Lars Ingebrigtsen [Sat, 16 Apr 2022 15:02:01 +0000 (17:02 +0200)]
Further IDNA/proxy url fixes

* lisp/url/url-http.el (url-http-create-request): Puny-encode
domains (bug#54921).

2 years agoCrosslink some buttonize function doc strings
Lars Ingebrigtsen [Sat, 16 Apr 2022 14:59:41 +0000 (16:59 +0200)]
Crosslink some buttonize function doc strings

* lisp/button.el (buttonize-region, buttonize): Crosslink doc
strings for discoverability.

2 years agoImprove completion in `C-h R'
Lars Ingebrigtsen [Sat, 16 Apr 2022 14:35:57 +0000 (16:35 +0200)]
Improve completion in `C-h R'

* lisp/info.el (info-display-manual): Use it (bug#54961).
(info--filter-manual-names): Filter away duplicates and irrelevant
files.

2 years agoClarify when mode tagging is used
Lars Ingebrigtsen [Sat, 16 Apr 2022 14:24:39 +0000 (16:24 +0200)]
Clarify when mode tagging is used

* etc/NEWS: Clarify when mode tagging is used (bug#54964).

2 years agoFurther vcs-cvs/rcs-responsible-p updates from master
Lars Ingebrigtsen [Thu, 14 Apr 2022 14:51:39 +0000 (16:51 +0200)]
Further vcs-cvs/rcs-responsible-p updates from master

* lisp/vc/vc-bzr.el (vc-bzr-responsible-p):
* lisp/vc/vc-sccs.el (vc-sccs-responsible-p):
* lisp/vc/vc-dav.el (vc-dav-responsible-p): Update doc string.

* lisp/vc/vc-rcs.el (vc-rcs-responsible-p):
* lisp/vc/vc-cvs.el (vc-cvs-responsible-p): Further fixes from
master.

* lisp/vc/vc-src.el (vc-src-responsible-p): Return the directory.

* lisp/vc/vc.el: Update comments.

2 years agoMake emacs-news-next-untagged-entry push the mark
Lars Ingebrigtsen [Sat, 16 Apr 2022 14:11:45 +0000 (16:11 +0200)]
Make emacs-news-next-untagged-entry push the mark

* lisp/textmodes/emacs-news-mode.el
(emacs-news-next-untagged-entry): Push the mark for easier
navigation back to where we were.

2 years agoFix NEWS tag commands
Lars Ingebrigtsen [Sat, 16 Apr 2022 14:07:25 +0000 (16:07 +0200)]
Fix NEWS tag commands

* lisp/textmodes/emacs-news-mode.el
(emacs-news-next-untagged-entry): Fix logic.
(emacs-news-count-untagged-entries): Add new command and keystroke.

2 years agoClean up emacs-news--buttonize
Lars Ingebrigtsen [Sat, 16 Apr 2022 13:58:20 +0000 (15:58 +0200)]
Clean up emacs-news--buttonize

* lisp/textmodes/emacs-news-mode.el (emacs-news--buttonize):
Remove unnecessary check left over from previous version.

2 years agoBind TAB and <backtab> on buttons
Lars Ingebrigtsen [Sat, 16 Apr 2022 13:57:33 +0000 (15:57 +0200)]
Bind TAB and <backtab> on buttons

* lisp/button.el (button-map): Inherit from 'button-buffer-map'.

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Sat, 16 Apr 2022 13:40:57 +0000 (15:40 +0200)]
Regenerated ldefs-boot.el

2 years agoAdd a new mode for editing and viewing the Emacs NEWS file
Lars Ingebrigtsen [Sat, 16 Apr 2022 13:40:43 +0000 (15:40 +0200)]
Add a new mode for editing and viewing the Emacs NEWS file

* etc/NEWS (mode): Use emacs-news-mode.
* lisp/help.el (view-emacs-news): Use emacs-news-mode.

* lisp/textmodes/emacs-news-mode.el: New mode for editing and
viewing the Emacs NEWS file.

2 years agoAdd new function buttonize-region
Lars Ingebrigtsen [Sat, 16 Apr 2022 13:39:03 +0000 (15:39 +0200)]
Add new function buttonize-region

* lisp/button.el (buttonize-region): New function.
(button--properties): Factored out.
(buttonize): Use it.

2 years agoPrevent race conditions with async input during drag-and-drop
Po Lu [Sat, 16 Apr 2022 11:12:04 +0000 (19:12 +0800)]
Prevent race conditions with async input during drag-and-drop

* src/xterm.c (XTread_socket): Don't read events here during
drag-and-drop, otherwise the right hold_quit might not be used
for selection events.

2 years agoFix builds on older versions of macOS
Mattias Engdegård [Sat, 16 Apr 2022 09:33:14 +0000 (11:33 +0200)]
Fix builds on older versions of macOS

This adds back macOS-specific code replaced earlier (bug#48548),
specifically to fix build errors on macOS 10.7.5.  See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00779.html .

* src/sysdep.c (HAVE_RUSAGE_INFO_CURRENT, HAVE_PROC_PIDINFO): New.
(system_process_attributes): Use alternative code or exclude features
when building on older macOS versions.

(cherry picked from commit 855e15dbf10a6aac42b860fdb28711f979e2bf22)

2 years agoImprove support for the Brahmi script
Eli Zaretskii [Sat, 16 Apr 2022 10:18:47 +0000 (13:18 +0300)]
Improve support for the Brahmi script

* lisp/language/indian.el ("Brahmi"): New language environment.
Add composition rules for Brahmi.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Brahmi.  (Bug#54914)

* etc/NEWS: Announce the new language environment.

2 years ago; * src/sysdep.c: Fix mistake in previous commit
Mattias Engdegård [Sat, 16 Apr 2022 10:16:45 +0000 (12:16 +0200)]
; * src/sysdep.c: Fix mistake in previous commit

2 years agoFix builds on older versions of macOS
Mattias Engdegård [Sat, 16 Apr 2022 09:33:14 +0000 (11:33 +0200)]
Fix builds on older versions of macOS

This adds back macOS-specific code replaced earlier (bug#48548),
specifically to fix build errors on macOS 10.7.5.  See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00779.html .

* src/sysdep.c (HAVE_RUSAGE_INFO_CURRENT, HAVE_PROC_PIDINFO): New.
(system_process_attributes): Use alternative code or exclude features
when building on older macOS versions.

2 years agoDisable annoying Clang warnings
Mattias Engdegård [Sat, 16 Apr 2022 09:31:58 +0000 (11:31 +0200)]
Disable annoying Clang warnings

* configure.ac (CHECK_LISP_OBJECT_TYPE): Disable
-Wimplicit-const-int-float-conversion and -Wint-in-bool-context, which
currently only have false positives.

2 years agoFix ODF file detection in doc-view-mode
Lars Ingebrigtsen [Sat, 16 Apr 2022 09:21:25 +0000 (11:21 +0200)]
Fix ODF file detection in doc-view-mode

* lisp/doc-view.el (doc-view-set-doc-type): Fix ODF file detection
(bug#54947).

2 years agoFix build with toolkit scroll bars without XI2
Po Lu [Sat, 16 Apr 2022 09:13:21 +0000 (17:13 +0800)]
Fix build with toolkit scroll bars without XI2

* src/xterm.c (mark_xterm): Fix up ifdefs slightly.

2 years agoProtect windows from garbage collection when a ClientMessage is pending
Po Lu [Sat, 16 Apr 2022 08:48:02 +0000 (16:48 +0800)]
Protect windows from garbage collection when a ClientMessage is pending

* src/xterm.c (x_protect_window_for_callback)
(x_unprotect_window_for_callback): New functions.
(x_send_scroll_bar_event): Protect windows from garbage
collection before sending event containing pointer to window.
(handle_one_xevent): Unprotect after such a ClientMessage is
received and the window put in the keyboard buffer.
(x_term_init): Initialize protected windows list.
(x_delete_display): Free that list.
(mark_xterm): Mark the windows in that list.
* src/xterm.h (struct x_display_info): New fields for recording
a list of protected windows.

2 years ago; * lisp/window.el (display-buffer-assq-regexp): Doc fix.
Eli Zaretskii [Sat, 16 Apr 2022 08:41:48 +0000 (11:41 +0300)]
; * lisp/window.el (display-buffer-assq-regexp): Doc fix.

2 years agoFix documentation of Outline minor mode options
Eli Zaretskii [Sat, 16 Apr 2022 07:56:01 +0000 (10:56 +0300)]
Fix documentation of Outline minor mode options

* lisp/outline.el (outline-minor-mode-cycle-filter)
(outline-minor-mode-cycle, outline-minor-mode-highlight)
(outline-cycle, outline-cycle-buffer): Doc fixes.  (Bug#54967)

2 years agoAdd some missing multilingual keys to Haiku
Po Lu [Sat, 16 Apr 2022 04:04:25 +0000 (04:04 +0000)]
Add some missing multilingual keys to Haiku

* src/haiku_support.cc (keysym_from_raw_char): Support keys
found on some East Asian keyboards.

2 years agoHandle errors getting selection ownership when starting DND
Po Lu [Sat, 16 Apr 2022 00:54:40 +0000 (08:54 +0800)]
Handle errors getting selection ownership when starting DND

* src/xterm.c (x_clear_dnd_targets): New function.
(x_dnd_begin_drag_and_drop): Handle errors in `x_own_selection'.

2 years agoImprove discoverability of 'insert-directory-program'
Eli Zaretskii [Fri, 15 Apr 2022 20:03:15 +0000 (23:03 +0300)]
Improve discoverability of 'insert-directory-program'

* lisp/files.el (insert-directory-program): Mention 'dired' in the
doc string.
* lisp/dired.el (dired): Mention 'insert-directory-program' in the
doc string.  (Bug#54962)

2 years agoImprove buffer-match-p documentation
Philip Kaludercic [Fri, 15 Apr 2022 19:12:56 +0000 (21:12 +0200)]
Improve buffer-match-p documentation

* doc/lispref/windows.texi (Choosing Window): Document that
buffer-match-p is used by display-buffer-alist.
* etc/NEWS: Mention buffer-match-p and match-buffers.
* lisp/window.el (display-buffer-alist): Update documentation as for
display-buffer-assq-regexp.
(display-buffer-assq-regexp): Rename buffer-name to buffer-or-name.
(display-buffer): Pass the buffer directly to
display-buffer-assq-regexp,.

2 years agoAdd rcirc-cycle-completion-flag
Philip Kaludercic [Sat, 12 Mar 2022 21:18:49 +0000 (22:18 +0100)]
Add rcirc-cycle-completion-flag

* doc/misc/rcirc.texi: Document new option.
* lisp/net/rcirc.el (rcirc-cycle-completion-flag): Add new option.
(rcirc-mode): Respect new option.

2 years ago; * etc/PROBLEMS: Describe MS-Windows issues with fonts. (Bug#54685)
Eli Zaretskii [Fri, 15 Apr 2022 12:38:06 +0000 (15:38 +0300)]
; * etc/PROBLEMS: Describe MS-Windows issues with fonts.  (Bug#54685)

2 years agoFix default registry of Haiku font backend
Po Lu [Fri, 15 Apr 2022 12:22:26 +0000 (12:22 +0000)]
Fix default registry of Haiku font backend

* src/haiku_support.h (struct haiku_zoom_event): Fix coding
style.
(enum haiku_font_specification): Move FSPECs over here.
* src/haikufont.c (haikufont_apply_registry)
(haikufont_get_fallback_entity, haikufont_pattern_to_entity)
(haikufont_spec_or_entity_to_pattern, haikufont_list): Use
`iso10646-1' as the default registry instead of `utf8', which is
not a registry.

2 years agoEnable dragging resizing final column in vtable
Lars Ingebrigtsen [Fri, 15 Apr 2022 12:06:26 +0000 (14:06 +0200)]
Enable dragging resizing final column in vtable

* lisp/emacs-lisp/vtable.el (vtable--insert-line): Insert the
divider after the final column, too, so that the size can be
dragged.

2 years ago; * src/haiku_support.h: Fix header coding style.
Po Lu [Fri, 15 Apr 2022 11:58:09 +0000 (11:58 +0000)]
; * src/haiku_support.h: Fix header coding style.

2 years agoClean up keysyms from Haiku headers
Po Lu [Fri, 15 Apr 2022 11:57:14 +0000 (11:57 +0000)]
Clean up keysyms from Haiku headers

* src/haiku_support.cc (keysym_from_raw_char): Add keysym
numbers here and use those instead.
* src/haiku_support.h: Delete all the X11 keysym definitions.

2 years agoAdd some mouse-face bits to vtable
Lars Ingebrigtsen [Fri, 15 Apr 2022 11:58:41 +0000 (13:58 +0200)]
Add some mouse-face bits to vtable

* lisp/emacs-lisp/vtable.el (make-vtable)
(vtable--insert-header-line): Put mouse-face on draggable bits.

2 years agoTweak sorting indicator placement in vtable
Lars Ingebrigtsen [Fri, 15 Apr 2022 11:45:00 +0000 (13:45 +0200)]
Tweak sorting indicator placement in vtable

* lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Tweak
sorting indicator position.

2 years agoMake the sorting indicator prettier in vtable
Lars Ingebrigtsen [Fri, 15 Apr 2022 11:37:05 +0000 (13:37 +0200)]
Make the sorting indicator prettier in vtable

* lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Place
the sorting indicator flush right in the heading.

2 years agoFix dismissal of tooltips on Haiku
Po Lu [Fri, 15 Apr 2022 11:25:25 +0000 (11:25 +0000)]
Fix dismissal of tooltips on Haiku

* src/haikuterm.c (haiku_mouse_or_wdesc_frame): New argument
`accept_tooltip'.
(haiku_read_socket): Use it when handling MOUSE_MOTION events.

2 years agoAllow using faces for colors in vtable
Lars Ingebrigtsen [Fri, 15 Apr 2022 09:46:40 +0000 (11:46 +0200)]
Allow using faces for colors in vtable

* doc/misc/vtable.texi (Making A Table): Adjust color documentation.
* lisp/emacs-lisp/vtable.el (make-vtable): Mix more.
(vtable--compute-colors): Mix both foreground and background colors.
(vtable--make-color-face, vtable--face-blend): New functions.
(vtable--insert-line): Adjust usage.

2 years ago; * src/fringe.c: Include pgtkterm.h only in HAVE_PGTK builds.
Eli Zaretskii [Fri, 15 Apr 2022 09:22:15 +0000 (12:22 +0300)]
; * src/fringe.c: Include pgtkterm.h only in HAVE_PGTK builds.

2 years agoAllow dragging the divider in vtable
Lars Ingebrigtsen [Fri, 15 Apr 2022 09:10:05 +0000 (11:10 +0200)]
Allow dragging the divider in vtable

* lisp/emacs-lisp/vtable.el (vtable): Add a keymap cache.
(make-vtable): Allow dragging the divider.
(vtable-insert): Don't put the table keymap over the entire line
-- avoid the divider, which has its own keymap.
(vtable--drag-resize-column): Adjust to the in-buffer divider
dragging.

2 years agoFix off-by-one error in text-property-search-backward
Lars Ingebrigtsen [Fri, 15 Apr 2022 09:06:44 +0000 (11:06 +0200)]
Fix off-by-one error in text-property-search-backward

* lisp/emacs-lisp/text-property-search.el
(text-property-search-backward): Fix off-by-one error -- this
would result in not finding the previous (non-)match when at the
first character in a field.

2 years agoFix cursor motion under truncate-lines with Flymake fringe indicator
Eli Zaretskii [Fri, 15 Apr 2022 09:03:36 +0000 (12:03 +0300)]
Fix cursor motion under truncate-lines with Flymake fringe indicator

* src/indent.c (Fvertical_motion): Don't consider fringe bitmaps
as "images" for the purpose of vertical-motion logic dealing with
overshooting buffer positions.  (Bug#54946)

2 years agoMore PGTK related cleanup
Po Lu [Fri, 15 Apr 2022 08:43:15 +0000 (16:43 +0800)]
More PGTK related cleanup

* src/pgtkfns.c (x_set_foreground_color, x_set_background_color)
(x_set_border_color, x_set_cursor_color, x_set_title)
(x_set_menu_bar_lines, x_set_tab_bar_lines, x_set_tool_bar_lines)
(x_set_child_frame_border_width, x_set_internal_border_width)
(x_set_icon_type, x_set_icon_name, x_set_cursor_type)
(x_set_mouse_color, x_set_undecorated, x_set_skip_taskbar)
(x_set_override_redirect, pgtk_frame_parm_handlers)
(Fx_create_frame): Rename most `x_' functions to `pgtk_' ones.
All callers changed.
* src/pgtkmenu.c (Fx_menu_bar_open_internal): Remove duplicate
doc string definition.
* src/pgtkterm.c (x_set_offset, pgtk_iconify_frame)
(x_set_parent_frame, x_set_no_focus_on_map, x_set_no_accept_focus)
(x_set_z_group, x_set_cursor_gc, x_set_mouse_face_gc)
(x_set_mode_line_face_gc, x_set_glyph_string_gc)
(x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
(x_setup_relief_color, x_setup_relief_colors)
(x_set_clip_rectangles, x_draw_relief_rect, x_draw_box_rect)
(x_draw_glyph_string_box, x_draw_image_relief)
(x_draw_image_foreground, x_draw_stretch_glyph_string)
(pgtk_draw_glyph_string, x_set_toolkit_scroll_bar_thumb)
(x_set_toolkit_horizontal_scroll_bar_thumb)
(pgtk_set_vertical_scroll_bar, pgtk_set_horizontal_scroll_bar)
(x_set_frame_alpha, frame_highlight, frame_unhighlight)
(pgtk_create_terminal, map_event): Rename most `x_' functions to
`pgtk_' ones.  All callers changed.
* src/pgtkterm.h: Update prototypes.

2 years agoClean up some extraneous stuff in pgtkfns.c
Po Lu [Fri, 15 Apr 2022 08:08:28 +0000 (16:08 +0800)]
Clean up some extraneous stuff in pgtkfns.c

* src/pgtkfns.c (Fx_gtk_debug): Fix doc string and remove extra
version check.
(syms_of_pgtkfns): Delete left over defvar from NS port.

2 years agoUpdate project-kill-buffer-conditions to match buffer-match-p
Philip Kaludercic [Thu, 14 Apr 2022 08:24:27 +0000 (10:24 +0200)]
Update project-kill-buffer-conditions to match buffer-match-p

* project.el (project-kill-buffer-conditions): Document the
deprecation of the use of derived-mode
(project--buffer-check): Have `major-mode' behave like `derived-mode'
did previously, and issue a warning of `derived-mode' is used.

2 years ago* window.el (display-buffer-assq-regexp): Use buffer-match
Philip Kaludercic [Thu, 10 Mar 2022 09:59:52 +0000 (10:59 +0100)]
* window.el (display-buffer-assq-regexp): Use buffer-match

2 years agoGeneralise buffer matching from project.el
Philip Kaludercic [Mon, 7 Mar 2022 19:49:42 +0000 (20:49 +0100)]
Generalise buffer matching from project.el

* subr.el (buffer-match): Add function to check if a buffer satisfies
a condition.
(match-buffers): Returns all buffers that satisfy a condition.

2 years agoFix core string lookup with modifiers on XI2
Po Lu [Fri, 15 Apr 2022 07:09:18 +0000 (15:09 +0800)]
Fix core string lookup with modifiers on XI2

* src/xterm.c (handle_one_xevent): Clean modifiers from
xkey.state before giving it to XLookupString.

2 years agoClean up various bits of Haiku code
Po Lu [Fri, 15 Apr 2022 06:34:42 +0000 (06:34 +0000)]
Clean up various bits of Haiku code

* src/haiku_font_support.cc (BFont_string_width): Delete unused
function.
* src/haiku_support.cc (BWindow_new): Clean up type of `view'.
(BWindow_quit): Clean up coding style.
(BView_mouse_down, BView_mouse_up, BView_mouse_moved): Delete
unused functions.
(unwind_popup_file_dialog): Clean up coding style.
(be_popup_file_dialog_safe_set_target): Delete function.
(be_popup_file_dialog): Improve code clarity.
* src/haiku_support.h: Fix coding style.
* src/haikufns.c (haiku_get_color, haiku_display_info_for_name)
(check_haiku_display_info, Fhaiku_read_file_name)
(Fx_display_save_under, Fhaiku_frame_restack): Remove references
to "Be displays" and replace them with "Haiku displays".
* src/haikuselect.h: Clean up coding style.
* src/haikuterm.c (haiku_read_socket): Clean up coding style and
fix a few latent bugs.

2 years agoAdd missing extern declarations to headers
Po Lu [Fri, 15 Apr 2022 06:08:40 +0000 (14:08 +0800)]
Add missing extern declarations to headers

* src/xterm.h (xi_device_from_id, xi_frame_selected_for): Add
`extern' declaration.

2 years agoMake Haiku scroll bar behave more like other programs
Po Lu [Fri, 15 Apr 2022 02:38:19 +0000 (02:38 +0000)]
Make Haiku scroll bar behave more like other programs

* haiku_support.cc (class EmacsScrollBar): New field
`repeater_start'.
(Pulse): Wait for time to pass repeater_delay.
(MouseDown): Set it to the current time + the system repeater
delay.

2 years agoPort new tests to leap seconds or (TICKS . HZ)
Paul Eggert [Fri, 15 Apr 2022 02:08:56 +0000 (19:08 -0700)]
Port new tests to leap seconds or (TICKS . HZ)

* test/lisp/mail/ietf-drums-date-tests.el (ietf-drums-date-tests):
Don’t assume leap seconds are ignored, or that timestamps are in
(HI LO) format.

2 years agoNew time-equal-p test
Paul Eggert [Fri, 15 Apr 2022 02:03:41 +0000 (19:03 -0700)]
New time-equal-p test

* test/src/timefns-tests.el (time-equal-p-NaN-NaN): New test.

2 years agoProperly wait for app thread exit on Haiku
Po Lu [Fri, 15 Apr 2022 01:23:27 +0000 (01:23 +0000)]
Properly wait for app thread exit on Haiku

* src/haiku_support.cc (MessageReceived): Handle
QUIT_APPLICATION.
(start_running_application): Clean up code a little.
(wait_for_exit_of_app_thread): New function.
(BApplication_setup): Add atexit handler to clean up app thread.
(be_app_quit): Delete function.
* src/haikuterm.c (haiku_delete_terminal): Un-implement
function.
* src/haikuterm.h: Update prototypes.

2 years agoFix calls to XKB functions without testing for server support
Po Lu [Fri, 15 Apr 2022 00:55:22 +0000 (08:55 +0800)]
Fix calls to XKB functions without testing for server support

* src/xterm.c (x_dnd_cleanup_drag_and_drop):
(x_dnd_begin_drag_and_drop): Never call XkbSelectEvents if the
X server doesn't have XKB.

2 years agoAllow dragging dividers in vtable
Lars Ingebrigtsen [Thu, 14 Apr 2022 17:48:47 +0000 (19:48 +0200)]
Allow dragging dividers in vtable

* lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Allow
dragging dividers.
(vtable--drag-resize-column): Adjust function.

2 years agoFix mouse clicks in hscrolled window with variable-height fonts
Eli Zaretskii [Thu, 14 Apr 2022 17:40:24 +0000 (20:40 +0300)]
Fix mouse clicks in hscrolled window with variable-height fonts

* src/xdisp.c (move_it_in_display_line_to): Fix calculation of
height of a screen-line that is completely hscrolled out of view.
Reported by Yasushi SHOJI <yasushi.shoji@gmail.com>.

2 years agoAllow resizing vtable columns by dragging
Lars Ingebrigtsen [Thu, 14 Apr 2022 17:36:08 +0000 (19:36 +0200)]
Allow resizing vtable columns by dragging

* lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Allow
resizing by dragging headers.
(vtable--drag-resize-column): New function.
(vtable-narrow-current-column): Refactor out common bits.
(vtable--alter-column-width): To here.
(vtable-widen-current-column): Rewrite to use
vtable-narrow-current-column.

2 years ago* lisp/gnus/gnus.el (toplevel autoloads): Fix file name
Stefan Monnier [Thu, 14 Apr 2022 16:55:23 +0000 (12:55 -0400)]
* lisp/gnus/gnus.el (toplevel autoloads): Fix file name

`score-mode` does not define `gnus-score-edit-all-score`, it's defined
in `gnus-score` instead.

2 years agoHave submit-emacs-patch prompt for patch file before subject
Philip Kaludercic [Thu, 14 Apr 2022 10:13:27 +0000 (12:13 +0200)]
Have submit-emacs-patch prompt for patch file before subject

* emacsbug.el (submit-emacs-patch): Prompt for patch file and use that
  to guess the subject.

2 years agoAvoid possibly unnecessary lisp_time_struct call
Philip Kaludercic [Thu, 14 Apr 2022 09:00:07 +0000 (11:00 +0200)]
Avoid possibly unnecessary lisp_time_struct call

* timefns.c (time_cmp): Defer the calculation of the time struct, in
  case A and B are eq to one another.

2 years agoHandle non-ASCII domains correctly in url-https-proxy-connect
Lars Ingebrigtsen [Thu, 14 Apr 2022 16:08:00 +0000 (18:08 +0200)]
Handle non-ASCII domains correctly in url-https-proxy-connect

* lisp/url/url-http.el (url-https-proxy-connect)
(url-https-proxy-after-change-function): Handle IDNA domains
correctly.

2 years agoMake vtable remember user-altered column widths
Lars Ingebrigtsen [Thu, 14 Apr 2022 16:03:58 +0000 (18:03 +0200)]
Make vtable remember user-altered column widths

* lisp/emacs-lisp/vtable.el (vtable-narrow-current-column)
(vtable-widen-current-column): Store the size to that it's
respected on `g'.

2 years agoEnsure that commands like { work on all frames in vtable
Lars Ingebrigtsen [Thu, 14 Apr 2022 14:25:31 +0000 (16:25 +0200)]
Ensure that commands like { work on all frames in vtable

* lisp/emacs-lisp/vtable.el (vtable--recompute-cache)
(vtable--ensure-cache): New functions.
(vtable-insert): Use it.
(vtable--widths): Ditto.

2 years agoldap-search-internal cleanup
Filipp Gunbin [Thu, 14 Apr 2022 13:47:32 +0000 (16:47 +0300)]
ldap-search-internal cleanup

* lisp/net/ldap.el (ldap-ldapsearch-args): Change -LL to -LLL to
suppress ldif version output.
(ldap-search-internal): Remove skipping of version output.  Remove
redundand ws skipping.

2 years agoFix eudc-get-attribute-list
Filipp Gunbin [Wed, 13 Apr 2022 20:10:35 +0000 (23:10 +0300)]
Fix eudc-get-attribute-list

* lisp/net/eudc-vars.el (eudc-ldap-no-wildcard-attributes): New
defcustom.
* doc/misc/eudc.texi (LDAP Configuration): Mention it.
* lisp/net/eudcb-ldap.el (eudc-ldap-format-query-as-rfc1558): Use it.
(eudc-ldap-get-field-list): Set scope and sizelimit, instead of
overriding the whole ldap-host-parameters-alist.
* lisp/net/ldap.el (ldap-search-internal): Allow "size limit exceeded"
exit code.  Allow empty attribute values.