]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Sun, 12 Dec 2021 13:40:17 +0000 (21:40 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoFix overline display over stretch glyphs with box on NS
Po Lu [Sun, 12 Dec 2021 13:33:56 +0000 (21:33 +0800)]
Fix overline display over stretch glyphs with box on NS

* src/nsterm.m (ns_dumpglyphs_stretch): Don't draw text
decorations when there is a box.
(ns_draw_glyph_string): Draw text decorations after the box
in stretch glyph that have one.

2 years agoFix overline display when there is a box
Po Lu [Sun, 12 Dec 2021 13:05:35 +0000 (21:05 +0800)]
Fix overline display when there is a box

* src/w32term.c (w32_draw_glyph_string):
* src/xterm.c (x_draw_glyph_string): Draw box before any text
decorations.

2 years agoReally fix the etags TEX parsing
Lars Ingebrigtsen [Sun, 12 Dec 2021 10:45:11 +0000 (11:45 +0100)]
Really fix the etags TEX parsing

* lib-src/etags.c (TEX_decode_env): Re-fix off-by-one parsing of
TEXTAGS environment variable (bug#52438).

2 years agoFix an off-by-one error in TEX parsing in etags
Lars Ingebrigtsen [Sun, 12 Dec 2021 10:26:22 +0000 (11:26 +0100)]
Fix an off-by-one error in TEX parsing in etags

* lib-src/etags.c (TEX_decode_env): Fix off-by-one parsing of
TEXTAGS environment variable (bug#52438).  Based on a patch by
David Fussner <dfussner@googlemail.com> and amended by Andreas
Schwab <schwab@linux-m68k.org>.

2 years agoCheck for support in sqlite-mode-open-file
Lars Ingebrigtsen [Sun, 12 Dec 2021 09:22:52 +0000 (10:22 +0100)]
Check for support in sqlite-mode-open-file

* lisp/sqlite-mode.el (sqlite-mode-open-file): Error out earlier
when we don't have sqlite support.

2 years agoeshell: Prefer octal number for file modes
Stefan Kangas [Sun, 12 Dec 2021 08:12:14 +0000 (09:12 +0100)]
eshell: Prefer octal number for file modes

* lisp/eshell/esh-util.el (eshell-private-file-modes)
(eshell-private-directory-modes): Prefer octal number for file modes.

2 years ago; * lisp/emacs-lisp/shortdoc.el (keymaps): Fix typo.
Stefan Kangas [Sun, 12 Dec 2021 08:04:11 +0000 (09:04 +0100)]
; * lisp/emacs-lisp/shortdoc.el (keymaps): Fix typo.

2 years agoMake with-sqlite-transaction mode code efficient
Lars Ingebrigtsen [Sun, 12 Dec 2021 06:22:44 +0000 (07:22 +0100)]
Make with-sqlite-transaction mode code efficient

* lisp/sqlite.el (with-sqlite-transaction): Rewrite to only
include BODY once.

2 years ago* src/xterm.c (x_detect_focus_change): Fix XI2 focus on GTK builds.
Po Lu [Sun, 12 Dec 2021 06:20:18 +0000 (14:20 +0800)]
* src/xterm.c (x_detect_focus_change): Fix XI2 focus on GTK builds.

2 years agoFix last change
Po Lu [Sun, 12 Dec 2021 06:13:05 +0000 (14:13 +0800)]
Fix last change

* src/xterm.c (x_detect_focus_change): Test against
FOCUS_EXPLICIT.

2 years agoFix some compilation warnings in sqlite-less builds
dick r. chiang [Sun, 12 Dec 2021 06:13:37 +0000 (07:13 +0100)]
Fix some compilation warnings in sqlite-less builds

* test/src/sqlite-tests.el:
* lisp/sqlite-mode.el: Avoid compilation warnings in builds
without libsqlite (bug#52440).

2 years agoFix frame focus on X Toolkit builds with XInput 2
Po Lu [Sun, 12 Dec 2021 06:00:09 +0000 (14:00 +0800)]
Fix frame focus on X Toolkit builds with XInput 2

* src/xterm.c (x_detect_focus_change): Allow focus_state to not
be FOCUS_EXPLICIT when handling FocusIn and FocusOut events.

2 years agoUpdate bovine/gcc-tests for newer Macos versions
Lars Ingebrigtsen [Sun, 12 Dec 2021 05:57:02 +0000 (06:57 +0100)]
Update bovine/gcc-tests for newer Macos versions

* test/lisp/cedet/semantic/bovine/gcc-tests.el
(semantic-gcc-test-output-parser-this-machine): Update gcc->llvm
detection to Macos Monterey.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sun, 12 Dec 2021 05:31:07 +0000 (06:31 +0100)]
Merge from origin/emacs-28

8a0734329a Avoid undefined behavior in 'send-process-region' (Bug#523...
30dd5c9acc Update to Org 9.5.1-25-g9ca3bc
a374849926 Fix the DJGPP port

2 years agoTweak erroring in sqlite-mode-delete
Lars Ingebrigtsen [Sun, 12 Dec 2021 04:55:35 +0000 (05:55 +0100)]
Tweak erroring in sqlite-mode-delete

* lisp/sqlite-mode.el (sqlite-mode-delete): Use user-error instead
of error for user-level stuff.

2 years agoMake sqlite-mode-list-tables work on older sqlite versions
Lars Ingebrigtsen [Sun, 12 Dec 2021 04:41:07 +0000 (05:41 +0100)]
Make sqlite-mode-list-tables work on older sqlite versions

* lisp/sqlite-mode.el (sqlite-mode-list-tables): Use sqlite_master
instead of sqlite_schema, since the former name is the historical
name and is available in all sqlite3 versions:
https://sqlite.org/schematab.html

2 years agoFix coding style
Po Lu [Sun, 12 Dec 2021 03:26:04 +0000 (11:26 +0800)]
Fix coding style

* src/pgtkmenu.c (popup_widget_loop):
(popup_deactivate_callback):
(show_help_event):
(menu_highlight_callback):
(menubar_selection_callback):
(popup_selection_callback):
(dialog_selection_callback):
(create_and_show_dialog): Fix coding style.

2 years agoPrevent hangs when displaying a context menu on pgtk
Po Lu [Sun, 12 Dec 2021 03:24:29 +0000 (11:24 +0800)]
Prevent hangs when displaying a context menu on pgtk

* src/pgtkmenu.c (pgtk_menu_wait_for_event, popup_widget_loop):
Remove unnecessary workarounds.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Sun, 12 Dec 2021 03:15:00 +0000 (11:15 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoClear precision scroll interpolation when direction changes
Po Lu [Sun, 12 Dec 2021 02:54:50 +0000 (10:54 +0800)]
Clear precision scroll interpolation when direction changes

* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate):
Clear scroll interpolation when direction changes.

2 years agoFix drawing overlines on top of stretch glyphs when there is a box
Po Lu [Sun, 12 Dec 2021 01:17:00 +0000 (01:17 +0000)]
Fix drawing overlines on top of stretch glyphs when there is a box

* src/haikuterm.c (haiku_draw_string_box): Also draw text
decorations if the clipping is to be set.
(haiku_draw_glyph_string): Only draw text decorations if
the box will not be drawn with clipping.

2 years agoConstant-propagate access to captured variables
Mattias Engdegård [Sat, 11 Dec 2021 21:11:08 +0000 (22:11 +0100)]
Constant-propagate access to captured variables

* lisp/emacs-lisp/byte-opt.el (byte-optimize--substitutable-p):
Treat (internal-get-closed-var N) as constants for propagation
purposes, because that is effectively what such forms will be compiled
to.  This allows for the elimination of some lexical variables.

* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test case.

2 years agoReimplement gnus-thread-header in Lisp
Mattias Engdegård [Sat, 11 Dec 2021 20:59:13 +0000 (21:59 +0100)]
Reimplement gnus-thread-header in Lisp

* lisp/gnus/gnus-sum.el (gnus-thread-header):
Replace lovingly hand-crafted assembler code with plain Lisp.
With lexical binding the difference is unlikely to be detectable.

2 years ago; * lisp/subr.el (start-process-shell-command): Add missing period.
Philipp Stephani [Sat, 11 Dec 2021 18:33:50 +0000 (19:33 +0100)]
; * lisp/subr.el (start-process-shell-command): Add missing period.

2 years agoFix hang when deleting a pipe process
Eli Zaretskii [Sat, 11 Dec 2021 18:15:53 +0000 (20:15 +0200)]
Fix hang when deleting a pipe process

* src/w32.h (FILE_DONT_CLOSE): New flag.
* src/w32.c (sys_close): Don't close descriptors used to read from
the pipe process.  Leave the FILE_DONT_CLOSE flag set in the
descriptor's info.
(register_aux_fd): Set the FILE_DONT_CLOSE flag in the
descriptor's info.
* src/w32proc.c (reader_thread): When exiting normally, close the
file descriptor used to read from a pipe process.  (Bug#52414)

2 years agoAvoid undefined behavior in 'send-process-region' (Bug#52369).
Philipp Stephani [Sat, 11 Dec 2021 12:51:34 +0000 (13:51 +0100)]
Avoid undefined behavior in 'send-process-region' (Bug#52369).

* src/process.c (send_process): Signal an error if the file descriptor
has already been closed.

2 years agoUpdate to Org 9.5.1-25-g9ca3bc
Kyle Meyer [Sat, 11 Dec 2021 17:31:13 +0000 (12:31 -0500)]
Update to Org 9.5.1-25-g9ca3bc

2 years agoImplement pgtk_frame_raise_lower
Yuuki Harano [Sat, 11 Dec 2021 13:03:01 +0000 (22:03 +0900)]
Implement pgtk_frame_raise_lower

* src/pgtkterm.c (pgtk_raise_frame): New function.
(pgtk_lower_frame): New function.
(pgtk_frame_raise_lower): New function to call one of those.
(pgtk_create_terminal): Set frame_raise_lower_hook.

2 years agoFix the DJGPP port
Po Lu [Fri, 10 Dec 2021 13:36:59 +0000 (21:36 +0800)]
Fix the DJGPP port

* config.bat:
* msdos/sed1v2.inp:
* msdos/sed2v2.inp:
* msdos/sed3v2.inp:
* msdos/sedlibmk.inp: Update for Emacs 28.
* msdos/langinfo.h: New file.

* lisp/loadup.el: Use correct path to temacs when dumping on
MS-DOS.
* src/callproc.c (environ) [MSDOS]: New declaration.
(child_setup, emacs_spawn): Update MS-DOS parts for Emacs 28.
* src/fileio.c (Fcopy_file): Don't use copy_file_range on
MS-DOS.
* src/msdos.c (initialize_msdos_display): Add
`defined_color_hook'.
(openat, fchmodat, futimens, utimensat): New functions.

* src/msdos.h (FRAME_X_DISPLAY): New macro.
* src/process.c: Make some more things conditional on
subprocess support.
(PIPECONN_P, PIPECONN1_P) [!subprocesses]: New placeholder
macros.
(Fnum_processors): Return 1 on MSDOS.
(open_channel_for_module): Avoid subprocess specific code
on MSDOS.

2 years agoImprove documentation of sqlite3 support
Eli Zaretskii [Sat, 11 Dec 2021 11:04:55 +0000 (13:04 +0200)]
Improve documentation of sqlite3 support

* lisp/sqlite-mode.el (sqlite-mode-list-data):
* configure.ac (HAVE_SQLITE3): Fix typos.

* doc/lispref/text.texi (Database): Improve and clarify wording,
add index entries, mention all the function arguments.

* etc/NEWS: Minor wording changes of the sqlite entries.

2 years agoCoding style fixes
Po Lu [Sat, 11 Dec 2021 10:45:35 +0000 (18:45 +0800)]
Coding style fixes

* src/pgtkterm.c (button_event): Fix coding style.

2 years agoFix tooltips in PGTK child frames
Po Lu [Sat, 11 Dec 2021 10:44:53 +0000 (18:44 +0800)]
Fix tooltips in PGTK child frames

* src/gtkutil.c (xg_show_tooltip, xg_hide_tooltip): Make
safe for child frames.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Sat, 11 Dec 2021 10:34:05 +0000 (18:34 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoUse window height to determine wheel event pixel deltas on XInput 2
Po Lu [Sat, 11 Dec 2021 10:30:01 +0000 (18:30 +0800)]
Use window height to determine wheel event pixel deltas on XInput 2

* src/xterm.c (handle_one_xevent): Use window height instead of
frame height to determine the height of a scroll unit.

2 years agoPrevent hang when exiting Emacs on Haiku
Po Lu [Sat, 11 Dec 2021 10:07:48 +0000 (10:07 +0000)]
Prevent hang when exiting Emacs on Haiku

* src/haiku_support.cc (be_app_quit): Don't wait for app
thread to also quit.

2 years ago* src/sqlite.c (row_to_value): Call 'make_unibyte_string'.
Eli Zaretskii [Sat, 11 Dec 2021 10:05:54 +0000 (12:05 +0200)]
* src/sqlite.c (row_to_value): Call 'make_unibyte_string'.

2 years agoPacify unused variable warning in xterm.c
Basil L. Contovounesios [Sat, 11 Dec 2021 09:47:55 +0000 (11:47 +0200)]
Pacify unused variable warning in xterm.c

* src/xterm.c (handle_one_xevent) <GenericEvent> [HAVE_XINPUT2]: The
variable any_stop_p is used only when HAVE_XWIDGETS, so guard its
declaration accordingly to pacify GCC's -Wunused-variable warning.

2 years agoMinor cleanups in sqlite.c
Eli Zaretskii [Sat, 11 Dec 2021 09:54:44 +0000 (11:54 +0200)]
Minor cleanups in sqlite.c

* src/sqlite.c (Fsqlite_open): Signal an error if
'init_sqlite_functions' fails.  Encode FILE using UTF-8.
(Fsqlite_close, Fsqlite_execute, Fsqlite_select)
(Fsqlite_load_extension): Doc fixes.
(Fsqlite_load_extension): Encode MODULE using UTF-8.

2 years agoMinor cleanups of sqlite3 code on MS-Windows
Eli Zaretskii [Sat, 11 Dec 2021 09:26:04 +0000 (11:26 +0200)]
Minor cleanups of sqlite3 code on MS-Windows

* src/sqlite.c (sqlite_loaded_p): Function deleted: not used
anymore.
(init_sqlite_functions) [WINDOWSNT]: Use a static 'bool' variable
to indicate if sqlite3 DLL was successfully loaded.
(Fsqlite_available_p) [WINDOWSNT]: Just call
'init_sqlite_functions' if Vlibrary_cache doesn't mention
'sqlite3'.

2 years agoFix a typo in sqlite.c
Eli Zaretskii [Sat, 11 Dec 2021 08:51:09 +0000 (10:51 +0200)]
Fix a typo in sqlite.c

* src/sqlite.c (Fsqlite_select): Fix a typo in arguments to
make_sqlite.

2 years agoAdd confirmation to sqlite-mode-delete
Lars Ingebrigtsen [Sat, 11 Dec 2021 08:28:57 +0000 (09:28 +0100)]
Add confirmation to sqlite-mode-delete

* lisp/sqlite-mode.el (sqlite-mode-delete): Add confirmation.

2 years agoDon't leave open cursors when listing sqlite data
Lars Ingebrigtsen [Sat, 11 Dec 2021 08:02:52 +0000 (09:02 +0100)]
Don't leave open cursors when listing sqlite data

* lisp/sqlite-mode.el (sqlite-mode-list-data)
(sqlite--mode--list-data): Don't leave open cursor (because they
block other processes from deleting stuff).
(sqlite-mode-delete): Adjust to new layout.

2 years agoAdd FIXME comment
Lars Ingebrigtsen [Sat, 11 Dec 2021 07:18:02 +0000 (08:18 +0100)]
Add FIXME comment

* lisp/sqlite-mode.el (sqlite-mode-delete): New command.
(sqlite--mode--list-data, sqlite-mode-list-data): Adjust to new
command.

2 years agoAdd an sqlite-mode-delete command
Lars Ingebrigtsen [Sat, 11 Dec 2021 07:11:10 +0000 (08:11 +0100)]
Add an sqlite-mode-delete command

* lisp/sqlite-mode.el (sqlite-mode-delete): New command.
(sqlite--mode--list-data, sqlite-mode-list-data): Adjust to new
command.

2 years agoFix Fsqlite_finalize book-keeping
Lars Ingebrigtsen [Sat, 11 Dec 2021 06:47:34 +0000 (07:47 +0100)]
Fix Fsqlite_finalize book-keeping

* src/sqlite.c (Fsqlite_finalize): Mark the object as dead.

2 years ago; * etc/NEWS: Fix wording in recent entry.
Stefan Kangas [Sat, 11 Dec 2021 06:10:02 +0000 (07:10 +0100)]
; * etc/NEWS: Fix wording in recent entry.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 11 Dec 2021 05:56:31 +0000 (06:56 +0100)]
Merge from origin/emacs-28

5708da48d1 Revert "Make `M-x run-python' select the window again"
aa2872a127 Make `M-x run-python' select the window again
c8e19b3a84 Don't bug out on certain empty elements with ids

2 years agoImprove sqlite-mode--tablify tables
Lars Ingebrigtsen [Sat, 11 Dec 2021 05:50:58 +0000 (06:50 +0100)]
Improve sqlite-mode--tablify tables

* lisp/sqlite-mode.el (sqlite-mode--tablify): Tweak column widths
and sanitize newlines.

2 years agoCheck whether the sqlite supports sqlite3_load_extension
Lars Ingebrigtsen [Sat, 11 Dec 2021 05:40:01 +0000 (06:40 +0100)]
Check whether the sqlite supports sqlite3_load_extension

* configure.ac: Check for sqlite3_load_extension, which is
apparently missing in some versions.
* src/sqlite.c: Add guards.
(Fsqlite_load_extension): Ifdef out on systems that doesn't have it.

2 years agoFix sqlite-mode.el build problems
Lars Ingebrigtsen [Sat, 11 Dec 2021 05:31:42 +0000 (06:31 +0100)]
Fix sqlite-mode.el build problems

* lisp/sqlite-mode.el (sqlite-mode-list-tables): Fix function
rename usage.

2 years agoFix some sqlite doc string typos
Lars Ingebrigtsen [Sat, 11 Dec 2021 05:26:37 +0000 (06:26 +0100)]
Fix some sqlite doc string typos

* src/sqlite.c (Fsqlite_load_extension, Fsqlite_more_p): Fix typos
in doc strings.

2 years agoAdd a new mode for examining sqlite files
Lars Ingebrigtsen [Sat, 11 Dec 2021 05:23:57 +0000 (06:23 +0100)]
Add a new mode for examining sqlite files

* lisp/sqlite-mode.el: New file.

2 years agoFix comment in heading
Lars Ingebrigtsen [Sat, 11 Dec 2021 04:22:42 +0000 (05:22 +0100)]
Fix comment in heading

2 years agoAdd NEWS entry for sqlite
Lars Ingebrigtsen [Sat, 11 Dec 2021 03:57:22 +0000 (04:57 +0100)]
Add NEWS entry for sqlite

2 years agoAdd sqlite3 support to Emacs
Lars Ingebrigtsen [Sat, 11 Dec 2021 03:55:57 +0000 (04:55 +0100)]
Add sqlite3 support to Emacs

* configure.ac: Add check for the sqlite library.
* doc/lispref/text.texi (Database): Document it.

* lisp/sqlite.el: New file.

* lisp/term/w32-win.el (dynamic-library-alist): Add a mapping.

* src/Makefile.in (SQLITE3_LIBS): Add the libraries.

* src/alloc.c (union emacs_align_type): Add a Lisp_Sqlite struct.

* src/data.c (Ftype_of): Add sqlite.

* src/emacs.c (main): Load the syms.

* src/lisp.h (DEFINE_GDB_SYMBOL_BEGIN): Add PVEC_SQLITE.
(GCALIGNED_STRUCT): New struct to keep data for sqlite database
objects and statement objects.
(SQLITEP, SQLITE, CHECK_SQLITE, XSQLITE): New macros for accessing
the objects.

* src/pdumper.c (dump_vectorlike): Update hash.
(dump_vectorlike): Don't dump it.

* src/print.c (print_vectorlike): Add a printer for the sqlite
object.

* src/sqlite.c: New file.

* test/src/sqlite-tests.el: Add tests.

2 years agoFix bibtex-biblatex-entry-alist sorting when using latex
Lars Ingebrigtsen [Sat, 11 Dec 2021 03:16:00 +0000 (04:16 +0100)]
Fix bibtex-biblatex-entry-alist sorting when using latex

* lisp/textmodes/bibtex.el (bibtex-biblatex-entry-alist): Sort
PhdThesis and TechReport correctly when using the latex variant
(bug#52354).

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Sat, 11 Dec 2021 03:00:39 +0000 (11:00 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years ago* etc/TODO: Entry about converting to defvar-keymap.
Stefan Kangas [Fri, 10 Dec 2021 14:47:09 +0000 (15:47 +0100)]
* etc/TODO: Entry about converting to defvar-keymap.

2 years ago; * lisp/dired.el: Remove code commented out since 2000.
Stefan Kangas [Fri, 10 Dec 2021 14:39:23 +0000 (15:39 +0100)]
; * lisp/dired.el: Remove code commented out since 2000.

2 years agoUse defvar-keymap for package-menu-mode-map
Stefan Kangas [Fri, 10 Dec 2021 14:33:54 +0000 (15:33 +0100)]
Use defvar-keymap for package-menu-mode-map

* lisp/emacs-lisp/package.el (package-menu-mode-map): Use
defvar-keymap.

2 years ago; * etc/NEWS: Improve recently added entry.
Stefan Kangas [Fri, 10 Dec 2021 13:11:22 +0000 (14:11 +0100)]
; * etc/NEWS: Improve recently added entry.

2 years agoMake keymap-lookup work for keymap results, too
Lars Ingebrigtsen [Fri, 10 Dec 2021 12:11:26 +0000 (13:11 +0100)]
Make keymap-lookup work for keymap results, too

* lisp/keymap.el (keymap-lookup): Make this function work for
non-symbol lookups, too (bug#52374).

2 years agoRevert "Make `M-x run-python' select the window again"
Lars Ingebrigtsen [Fri, 10 Dec 2021 12:07:24 +0000 (13:07 +0100)]
Revert "Make `M-x run-python' select the window again"

This reverts commit aa2872a12770282ede3548ed3fcab00c5a5b9f18.

This led to a test failure.

2 years agoMake `M-x run-python' select the window again
Kévin Le Gouguec [Fri, 10 Dec 2021 12:05:49 +0000 (13:05 +0100)]
Make `M-x run-python' select the window again

* lisp/progmodes/python.el (python-shell-make-comint): Make `M-x
run-python' select the window again like in 27.2 (bug#52380).

2 years agoDon't bug out on certain empty elements with ids
Lars Ingebrigtsen [Fri, 10 Dec 2021 11:46:55 +0000 (12:46 +0100)]
Don't bug out on certain empty elements with ids

* lisp/net/shr.el (shr-descend): Fix empty-element #id targetting
(bug#52391).

2 years agoMake dired-buffers-for-dir expand the DIR argument
Lars Ingebrigtsen [Fri, 10 Dec 2021 11:32:49 +0000 (12:32 +0100)]
Make dired-buffers-for-dir expand the DIR argument

* lisp/dired.el (dired-buffers-for-dir): Expand DIR argument
(bug#52395).
(dired-find-buffer-nocreate, dired-clean-up-after-deletion):
Adjust callers.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Fri, 10 Dec 2021 06:50:21 +0000 (14:50 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoFurther reduce image-related stutter during precision scrolling
Po Lu [Fri, 10 Dec 2021 06:20:32 +0000 (14:20 +0800)]
Further reduce image-related stutter during precision scrolling

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Disable
`scroll-preserve-screen-position' and `auto-window-vscroll'
while scrolling.

2 years agoStop setting `make-cursor-line-fully-visible' in precision scrolling
Po Lu [Fri, 10 Dec 2021 06:01:44 +0000 (06:01 +0000)]
Stop setting `make-cursor-line-fully-visible' in precision scrolling

* lisp/pixel-scroll.el (pixel-scroll-precision-mode): Stop
setting `make-cursor-line-fully-visible'.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 10 Dec 2021 05:30:33 +0000 (06:30 +0100)]
Merge from origin/emacs-28

7a25ba0fde ; * lisp/image-dired.el: Fix typo.
dda6337066 emacsclient takes more care about XDG_RUNTIME_DIR
26fb4168b8 ; Prefer HTTPS in more URLs
6b89578524 ; * lisp/progmodes/flymake.el: Update the minimum Emacs ve...

2 years agoFix bob detection when pixel scrolling upwards
Po Lu [Fri, 10 Dec 2021 03:30:07 +0000 (11:30 +0800)]
Fix bob detection when pixel scrolling upwards

* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Don't go to the beginning-of-visual-line if bobp.

2 years agoFix pixel scrolling upwards in Info buffers
Po Lu [Fri, 10 Dec 2021 03:25:10 +0000 (11:25 +0800)]
Fix pixel scrolling upwards in Info buffers

* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Don't blindly trust window start to be the beginning of a
visual line.

2 years agoRemove unused let-bindings from pixel-scroll.el
Po Lu [Fri, 10 Dec 2021 02:38:24 +0000 (10:38 +0800)]
Remove unused let-bindings from pixel-scroll.el

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Remove unused
bindings.

2 years agoFix precision scrolling for stretch glyphs
Po Lu [Fri, 10 Dec 2021 02:33:00 +0000 (10:33 +0800)]
Fix precision scrolling for stretch glyphs

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Simplify logic.
(pixel-scroll-precision-interpolate): Block throw-on-input
when actually scrolling.

2 years ago* lisp/time.el (world-clock-mode-map): Convert to defvar-keymap.
Stefan Kangas [Fri, 10 Dec 2021 02:11:49 +0000 (03:11 +0100)]
* lisp/time.el (world-clock-mode-map): Convert to defvar-keymap.

2 years ago; * lisp/Makefile.in: Fix typo.
Stefan Kangas [Fri, 10 Dec 2021 02:03:06 +0000 (03:03 +0100)]
; * lisp/Makefile.in: Fix typo.

2 years ago; * lisp/htmlfontify.el: Remove some commented out code.
Stefan Kangas [Fri, 10 Dec 2021 01:56:08 +0000 (02:56 +0100)]
; * lisp/htmlfontify.el: Remove some commented out code.

2 years ago; * lisp/image-dired.el: Fix typo.
Stefan Kangas [Fri, 10 Dec 2021 01:33:48 +0000 (02:33 +0100)]
; * lisp/image-dired.el: Fix typo.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Fri, 10 Dec 2021 00:54:56 +0000 (08:54 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoemacsclient takes more care about XDG_RUNTIME_DIR
Paul Eggert [Thu, 9 Dec 2021 17:03:10 +0000 (09:03 -0800)]
emacsclient takes more care about XDG_RUNTIME_DIR

* lib-src/emacsclient.c (set_local_socket): Revert to the Emacs 27
behavior of not trying TMPDIR if XDG_RUNTIME_DIR is set.
This is one of the suggestions made by Jim Porter and
independently by Ulrich Mueller in Bug#51327.

2 years agoFix logic in 'compute_window_start_on_continuation_line'
Eli Zaretskii [Thu, 9 Dec 2021 19:29:32 +0000 (21:29 +0200)]
Fix logic in 'compute_window_start_on_continuation_line'

* src/xdisp.c (compute_window_start_on_continuation_line): Fix a
thinko in logic.  Patch by dickmao <dick.r.chiang@gmail.com>.
(Bug#52378)

2 years agoFix thinko in Tramp test
Michael Albinus [Thu, 9 Dec 2021 19:11:40 +0000 (20:11 +0100)]
Fix thinko in Tramp test

* test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name):
Fix thinko.

2 years agoImprove lock-pid handling in Tramp
Michael Albinus [Thu, 9 Dec 2021 19:03:16 +0000 (20:03 +0100)]
Improve lock-pid handling in Tramp

* lisp/net/tramp-cache.el: Remove comment.

* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Do not set "lock-pid" connection-property.
(tramp-sudoedit-handle-delete-file): Use "rm -f".

* lisp/net/tramp.el (tramp-test-message): Extend for buffers w/o
remote default-directory.
(tramp-lock-pid): New defvar.
(tramp-get-lock-pid): Reimplement.

2 years ago; Prefer HTTPS in more URLs
Stefan Kangas [Thu, 9 Dec 2021 15:22:17 +0000 (16:22 +0100)]
; Prefer HTTPS in more URLs

2 years ago; * lisp/progmodes/flymake.el: Update the minimum Emacs version.
Eli Zaretskii [Thu, 9 Dec 2021 15:01:57 +0000 (17:01 +0200)]
; * lisp/progmodes/flymake.el: Update the minimum Emacs version.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 9 Dec 2021 13:53:51 +0000 (14:53 +0100)]
Merge from origin/emacs-28

1821844357 Add missing K key documentation for Cangjie input methods
be860c1385 Fix manual entry of 'quit-restore-window' (Bug#52328)
35a96139df Clarify a comment in xdisp.c
6ba2f028cf Revert "Grep alias `all' shall not match parent directory"
eb9e33e238 ; * etc/NEWS: Non-nil repeat-keep-prefix is not the defaul...
538fc1d0e0 Fix mode-line display in Calendar mode

# Conflicts:
# etc/NEWS
# lisp/help.el

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 9 Dec 2021 13:52:46 +0000 (14:52 +0100)]
; Merge from origin/emacs-28

The following commit was skipped:

c8c7822c51 * etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.

2 years agoAdd missing K key documentation for Cangjie input methods
Cameron Desautels [Thu, 9 Dec 2021 08:08:14 +0000 (00:08 -0800)]
Add missing K key documentation for Cangjie input methods

* lisp/international/titdic-cnv.el (tsang-quick-converter): Add the
missing K key in input method documentation. (Bug#52264)

2 years agoMake precision scrolling up work over display strings
Po Lu [Thu, 9 Dec 2021 09:57:25 +0000 (17:57 +0800)]
Make precision scrolling up work over display strings

* lisp/pixel-scroll.el
(pixel-point-and-height-at-unseen-line): Use
`window-text-pixel-size'.
(pixel-scroll-precision-scroll-up-page): Use delta as vscroll
directly.

2 years agoFix pixel scrolling over lines with different sized glyphs
Po Lu [Thu, 9 Dec 2021 09:40:08 +0000 (17:40 +0800)]
Fix pixel scrolling over lines with different sized glyphs

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Calculate desired
vscroll with `window-text-pixel-size'.

2 years agoFix manual entry of 'quit-restore-window' (Bug#52328)
Martin Rudalics [Thu, 9 Dec 2021 09:00:51 +0000 (10:00 +0100)]
Fix manual entry of 'quit-restore-window' (Bug#52328)

* doc/lispref/windows.texi (Quitting Windows): Fix bug in
description of 'quit-restore-window' (Bug#52328).

2 years agoClarify a comment in xdisp.c
Eli Zaretskii [Thu, 9 Dec 2021 07:18:04 +0000 (09:18 +0200)]
Clarify a comment in xdisp.c

* src/xdisp.c (compute_window_start_on_continuation_line): Clarify
a comment.  (Bug#52378)

2 years agoFix jumping cursor during interpolated scrolls
Po Lu [Thu, 9 Dec 2021 03:40:39 +0000 (11:40 +0800)]
Fix jumping cursor during interpolated scrolls

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Go to next position
before setting start or vscroll.

2 years agoAllow customizing step between each interpolated scroll
Po Lu [Thu, 9 Dec 2021 03:11:26 +0000 (11:11 +0800)]
Allow customizing step between each interpolated scroll

* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate):
Use new option.
(pixel-scroll-precision-interpolation-between-scroll): New user
option.

2 years agoMerge remote-tracking branch 'origin/master' into feature/pgtk
Po Lu [Thu, 9 Dec 2021 02:30:18 +0000 (10:30 +0800)]
Merge remote-tracking branch 'origin/master' into feature/pgtk

2 years agoimage-dired: Show image info in header line
Stefan Kangas [Thu, 9 Dec 2021 02:28:19 +0000 (03:28 +0100)]
image-dired: Show image info in header line

* lisp/image-dired.el
(image-dired-update-header-line): New function to show image
information in the header line.
(image-dired-display-thumb-properties): Make obsolete.
(image-dired-track-thumbnail)
(image-dired--display-thumb-properties-fun)
(image-dired-forward-image, image-dired-next-line)
(image-dired-previous-line, image-dired-beginning-of-buffer)
(image-dired-end-of-buffer, image-dired-read-comment): Use
image-dired-update-header-line instead of
image-dired-display-thumb-properties.

2 years agoimage-dired: Go to next image when marking
Stefan Kangas [Wed, 8 Dec 2021 23:57:34 +0000 (00:57 +0100)]
image-dired: Go to next image when marking

* lisp/image-dired.el
(image-dired-marking-shows-next): New user option to show the next
image after marking, unmarking or flagging an image.
(image-dired--do-mark-command): New macro.
(image-dired-mark-thumb-original-file)
(image-dired-unmark-thumb-original-file)
(image-dired-flag-thumb-original-file)
(image-dired-toggle-mark-thumb-original-file)
(image-dired-unmark-all-marks): Use above new macro.

2 years agoimage-dired: Remove some TODOs
Stefan Kangas [Wed, 8 Dec 2021 23:01:23 +0000 (00:01 +0100)]
image-dired: Remove some TODOs

To the extent that these TODOs are relevant or useful, it would be
better to add such features to image-mode directly.
* lisp/image-dired.el: Remove some TODOs.

2 years agoRevert "Grep alias `all' shall not match parent directory"
Óscar Fuentes [Wed, 8 Dec 2021 22:49:26 +0000 (23:49 +0100)]
Revert "Grep alias `all' shall not match parent directory"

This reverts commit 856cd948d1a5a016ad36721246a049d33451902f.

Emacs got better at quoting shell arguments and the original value
works correctly for vc-git-grep. At the same time, the value
introduced on that commit caused a regression on lgrep.

* lisp/progmodes/grep.el (grep-files-aliases): Use previous value for
`all'. Fixes bug#52367