]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoNew option 'thrifty' for Man-notify-method
Augusto Stoffel [Fri, 26 Aug 2022 11:12:28 +0000 (13:12 +0200)]
New option 'thrifty' for Man-notify-method

* lisp/man.el (Man-notify-when-ready): Accept new 'thrifty' notify
method.
(Man-notify-method): Explain what 'thrifty' does (bug#57408).

2 years agoDelete blank lines at the start of the cited text in message-indent-citation
Lars Ingebrigtsen [Fri, 26 Aug 2022 10:30:30 +0000 (12:30 +0200)]
Delete blank lines at the start of the cited text in message-indent-citation

* lisp/gnus/message.el (message-indent-citation): Fix thinko in
the fix for the previous thinko.

2 years agoFix recent gamegrid.el change for nox build
Basil L. Contovounesios [Fri, 26 Aug 2022 10:12:15 +0000 (13:12 +0300)]
Fix recent gamegrid.el change for nox build

* lisp/play/gamegrid.el (gamegrid-make-glyph): Declare
image-scaling-factor as special before dynamically binding it, for
the sake of --without-x builds which do not preload lisp/image.el.

2 years agoPacify obsolete gv warnings in xt-mouse-tests.el
Basil L. Contovounesios [Fri, 26 Aug 2022 09:53:49 +0000 (12:53 +0300)]
Pacify obsolete gv warnings in xt-mouse-tests.el

* test/lisp/xt-mouse-tests.el (with-xterm-mouse-mode): Replace
deprecated generalized variables frame-width and frame-height with
direct calls to set-frame-width and set-frame-height, respectively.

2 years agoKill the buffer for the temp file after using '$<command>' in Eshell
Jim Porter [Sat, 20 Aug 2022 17:48:32 +0000 (10:48 -0700)]
Kill the buffer for the temp file after using '$<command>' in Eshell

* lisp/eshell/esh-var.el (eshell-parse-variable-ref): Kill the temp
file's buffer when we're done.

Ref: https://lists.gnu.org/archive/html/bug-gnu-emacs/2022-08/msg01444.html

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 26 Aug 2022 04:30:30 +0000 (06:30 +0200)]
Merge from origin/emacs-28

e3b8577525 ; * etc/DEBUG: Fix wording of "X protocol errors" section.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Fri, 26 Aug 2022 04:30:30 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

ba64d09156 Treat smtp-auth method from auth-info as a symbol

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 26 Aug 2022 04:30:29 +0000 (06:30 +0200)]
Merge from origin/emacs-28

9e03e29c4e * lisp/wdired.el: Improve "Commentary" section.
92e90297f9 * lisp/wdired.el: Doc fix; don't mention obsolete variable.
2ccefef4c7 * lisp/progmodes/etags.el (next-file): Minor doc fix.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Fri, 26 Aug 2022 04:30:29 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

82bcd44378 * configure.ac: Move AC_LANG_PUSH/POP out of AC_CACHE_CHEC...

2 years agoRestore old code in x_sync_trigger_fence
Po Lu [Fri, 26 Aug 2022 01:42:35 +0000 (09:42 +0800)]
Restore old code in x_sync_trigger_fence

* src/xterm.c (x_sync_trigger_fence): Restore old code, since that
makes it easier to adapt to more than 2 sync fences (which might be
necessary in the future, if we ever decide to do frame handling
asynchronously), and is much more recognizable for people coming from
other programs.

2 years ago; * src/xterm.h (struct x_display_info): Update comment.
Po Lu [Fri, 26 Aug 2022 01:37:47 +0000 (09:37 +0800)]
; * src/xterm.h (struct x_display_info): Update comment.

2 years agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Thu, 25 Aug 2022 23:16:56 +0000 (18:16 -0500)]
Update from Gnulib by running admin/merge-gnulib

2 years agoFix overflows in HAVE_XSYNC timestamp handling
Paul Eggert [Wed, 24 Aug 2022 01:18:13 +0000 (18:18 -0700)]
Fix overflows in HAVE_XSYNC timestamp handling

Also, port to platforms lacking CLOCK_MONOTONIC and int64_t, and
use 0 more consistently to represent missing timestamps.
* src/xterm.h (struct x_display_info):
Omit server_time_monotonic_p and server_time_offset if
!HAVE_CLOCK_GETTIME since they are unused in that case.
* src/xterm.h (struct x_display_info, struct x_output):
* src/xterm.c (x_sync_get_monotonic_time)
(x_sync_current_monotonic_time, x_sync_note_frame_times):
Use int_fast64_t instead of int64_t as POSIX doesn't
guarantee the latter.  Similarly for uint_fast64_t.
(x_sync_get_monotonic_time, x_sync_current_monotonic_time)
(x_sync_note_frame_times, x_display_set_last_user_time):
Check for integer overflow in time arithmetic.
(CLOCK_MONOTONIC): Define to CLOCK_REALTIME if absent.
(x_sync_current_monotonic_time): Check for clock_gettime failure
and fall back on CLOCK_REALTIME if CLOCK_MONOTONIC does not work,
which POSIX allows.
(x_sync_current_monotonic_time, x_sync_note_frame_times)
(x_display_set_last_user_time):
Use 0 more consistently to represent missing timestamps.

2 years agoFix unlikely core dump with Xaw
Paul Eggert [Tue, 23 Aug 2022 23:25:40 +0000 (16:25 -0700)]
Fix unlikely core dump with Xaw

* lwlib/lwlib-Xaw.c (make_dialog): Don’t dump core if calloc fails.
Caught with --enable-gcc-warnings.

2 years ago* lisp/progmodes/cc-langs.el (c-make-no-parens-syntax-table): Fix bug#57065
Stefan Monnier [Thu, 25 Aug 2022 20:59:30 +0000 (16:59 -0400)]
* lisp/progmodes/cc-langs.el (c-make-no-parens-syntax-table): Fix bug#57065

(c-lang-const c-make-mode-syntax-table) already returns a function,
so quote it to avoid double evaluation since it could fail if the
function is not self-evaluating, such as when it's a symbol or
a value of the form (closure ...).

2 years ago; * etc/DEBUG: Fix wording of "X protocol errors" section.
Eli Zaretskii [Thu, 25 Aug 2022 19:07:04 +0000 (22:07 +0300)]
; * etc/DEBUG: Fix wording of "X protocol errors" section.

2 years ago; * etc/NEWS: Fix wording of a recently-added entry.
Eli Zaretskii [Thu, 25 Aug 2022 18:56:50 +0000 (21:56 +0300)]
; * etc/NEWS: Fix wording of a recently-added entry.

2 years ago; * lisp/progmodes/grep.el (grep-command-position): Doc fix.
Eli Zaretskii [Thu, 25 Aug 2022 18:51:23 +0000 (21:51 +0300)]
; * lisp/progmodes/grep.el (grep-command-position): Doc fix.

2 years ago; Delete some commented out code from linum.el
Stefan Kangas [Thu, 25 Aug 2022 18:01:00 +0000 (20:01 +0200)]
; Delete some commented out code from linum.el

* lisp/linum.el (linum-mode): Delete code commented out since
2009.

2 years agoImprove explanation of init file in FAQ
Stefan Kangas [Thu, 25 Aug 2022 16:46:48 +0000 (18:46 +0200)]
Improve explanation of init file in FAQ

* doc/misc/efaq.texi (Setting up a customization file): Improve
and update section to reflect current behavior.  Add
cross-references back to this section.
* doc/emacs/custom.texi (Init File): Add comment to remind about
also updating the FAQ.
Ref: https://lists.gnu.org/r/emacs-devel/2022-08/msg01056.html

2 years agoDon't refer to Emacs 24.3 or older in FAQ
Stefan Kangas [Thu, 25 Aug 2022 16:06:30 +0000 (18:06 +0200)]
Don't refer to Emacs 24.3 or older in FAQ

* doc/misc/efaq.texi: Don't say that the FAQ has been edited.
(Displaying the current line or column, Automatic indentation)
(Problems with very large files, Emacs for other operating systems)
(Right-to-left alphabets, Expanding aliases when sending mail): Remove
references to Emacs 24.3 or older.

(Learning how to do something): Don't include the reference card
price; it is currently incorrect and is likely to be incorrect again
in the future.

2 years agoTreat smtp-auth method from auth-info as a symbol
Robert Pluim [Thu, 25 Aug 2022 16:13:16 +0000 (18:13 +0200)]
Treat smtp-auth method from auth-info as a symbol

The lookup of the SMTP auth method is done based on symbols, but
sometimes the requested value comes from `auth-info', in which case it
is a string, so call `intern-soft' to convert it to a symbol (which
does nothing if it's already a symbol).

* lisp/mail/smtpmail.el (smtpmail-try-auth-methods): Call
`intern-soft' on the smtp-auth key's value.  (Bug#57373)

Do not merge to master

2 years ago* lisp/wdired.el: Improve "Commentary" section.
Stefan Kangas [Thu, 25 Aug 2022 15:15:39 +0000 (17:15 +0200)]
* lisp/wdired.el: Improve "Commentary" section.

2 years ago* lisp/wdired.el: Doc fix; don't mention obsolete variable.
Stefan Kangas [Thu, 25 Aug 2022 15:11:05 +0000 (17:11 +0200)]
* lisp/wdired.el: Doc fix; don't mention obsolete variable.

2 years ago* lisp/progmodes/etags.el (next-file): Minor doc fix.
Stefan Kangas [Tue, 23 Aug 2022 14:18:57 +0000 (16:18 +0200)]
* lisp/progmodes/etags.el (next-file): Minor doc fix.

2 years agoAdd a new user option grep-command-position
Lars Ingebrigtsen [Thu, 25 Aug 2022 15:02:34 +0000 (17:02 +0200)]
Add a new user option grep-command-position

* lisp/progmodes/grep.el (grep-command): Mention it.
(grep-command-position): New user option.
(grep): Use it (bug#50502).

2 years agoDocument how :map and :scale interacts in image maps
Lars Ingebrigtsen [Thu, 25 Aug 2022 14:38:14 +0000 (16:38 +0200)]
Document how :map and :scale interacts in image maps

* doc/lispref/display.texi (Image Descriptors): Mention problems
with scaling (bug#50487).

2 years agoFix generalized variable documentation for recent change
Stefan Kangas [Thu, 25 Aug 2022 14:23:50 +0000 (16:23 +0200)]
Fix generalized variable documentation for recent change

* doc/lispref/variables.texi (Setting Generalized Variables): Delete
obsolete generalized variable 'frame-width'.

2 years agoMake a prefix go to the previous error
Lars Ingebrigtsen [Thu, 25 Aug 2022 14:20:07 +0000 (16:20 +0200)]
Make a prefix go to the previous error

* lisp/textmodes/flyspell.el (flyspell-goto-next-error): Make a
prefix find the previous error (bug#50443).

2 years agoMention C-x C-q + revert change in NEWS
Lars Ingebrigtsen [Thu, 25 Aug 2022 14:00:27 +0000 (16:00 +0200)]
Mention C-x C-q + revert change in NEWS

2 years agoTreat smtp-auth method from auth-info as a symbol
Robert Pluim [Thu, 25 Aug 2022 09:47:57 +0000 (11:47 +0200)]
Treat smtp-auth method from auth-info as a symbol

The lookup of the SMTP auth method is done based on symbols, but
sometimes the requested value comes from `auth-info', in which case it
is a string, so call `intern-soft' to convert it to a symbol (which
does nothing if it's already a symbol).

* lisp/mail/smtpmail.el (smtpmail-try-auth-methods): Call
`intern-soft' on the smtp-auth key's value.  (Bug#57373)

2 years agoAllow symlink creation on MS-Windows without Administrator privileges
Kien Nguyen [Wed, 24 Aug 2022 14:19:35 +0000 (23:19 +0900)]
Allow symlink creation on MS-Windows without Administrator privileges

* src/w32.c (symlink): Use the
SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE flag when available.
(Bug#57386)

2 years agoFix warning about obsoleted generalized variables
Lars Ingebrigtsen [Thu, 25 Aug 2022 12:54:49 +0000 (14:54 +0200)]
Fix warning about obsoleted generalized variables

* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete):
Autoload so that the call here from gv.el (about obsolete
generalized variables) doesn't bug out (bug#57394).

2 years agoMake frame-width obsolete as a generalized variable
Lars Ingebrigtsen [Thu, 25 Aug 2022 12:42:59 +0000 (14:42 +0200)]
Make frame-width obsolete as a generalized variable

* lisp/emacs-lisp/gv.el (frame-width): Make obsolete as
generalized variable.

2 years agoFix instrumented eval-defun not printing "Edebug:" to the echo area
Daniel Martín [Thu, 25 Aug 2022 12:37:36 +0000 (14:37 +0200)]
Fix instrumented eval-defun not printing "Edebug:" to the echo area

* lisp/progmodes/elisp-mode.el (elisp--eval-defun): Determine if we're
instrumenting a function and call eval-region with PRINTFLAG set to
nil if so (Bug#50245).

* test/lisp/progmodes/elisp-mode-tests.el
(eval-defun-prints-edebug-when-instrumented): Add a new test.

2 years agoAdd hideshow-test.el file (bug#56635)
Lars Ingebrigtsen [Thu, 25 Aug 2022 12:29:43 +0000 (14:29 +0200)]
Add hideshow-test.el file (bug#56635)

2 years agoAdd Python blocks support for hideshow
kobarity [Thu, 25 Aug 2022 12:29:10 +0000 (14:29 +0200)]
Add Python blocks support for hideshow

* lisp/progmodes/python.el (python-nav-beginning-of-block-regexp):
New variable.
(python-hideshow-forward-sexp-function): Change to call
`python-nav-end-of-block'.
(python-hideshow-find-next-block): New function to be used as
FIND-NEXT-BLOCK-FUNC in `hs-special-modes-alist'.
(python-info-looking-at-beginning-of-block): New function to be
used as LOOKING-AT-BLOCK-START-P-FUNC in `hs-special-modes-alist'.
(python-mode): Change settings of `hs-special-modes-alist'.

* test/lisp/progmodes/python-tests.el
(python-hideshow-hide-levels-1): Fix to keep empty lines.
(python-info-looking-at-beginning-of-block-1)
(python-hideshow-hide-levels-3, python-hideshow-hide-levels-4)
(python-hideshow-hide-all-1, python-hideshow-hide-all-2)
(python-hideshow-hide-all-3, python-hideshow-hide-block-1): New
tests (bug#56635).

2 years agoExtend `hs-special-modes-alist' for languages such as Python
kobarity [Thu, 25 Aug 2022 12:28:22 +0000 (14:28 +0200)]
Extend `hs-special-modes-alist' for languages such as Python

* lisp/progmodes/hideshow.el (hs-special-modes-alist): Add
elements FIND-BLOCK-BEGINNING-FUNC, FIND-NEXT-BLOCK-FUNC, and
LOOKING-AT-BLOCK-START-P-FUNC.
(hs-find-block-beginning-func): New variable to hold
FIND-BLOCK-BEGINNING-FUNC.
(hs-find-next-block-func): New variable to hold
FIND-NEXT-BLOCK-FUNC.
(hs-looking-at-block-start-p-func): New variable to hold
LOOKING-AT-BLOCK-START-P-FUNC.
(hs-grok-mode-type): Set new variables from
`hs-special-modes-alist'.
(hs-find-next-block): New function.
(Misc.): Update callers of the above functions.

* test/lisp/progmodes/hideshow-tests.el: New test file (bug#56635).

2 years agoAllow not deleting the config.cache file with "make FAST=true bootstrap"
Lars Ingebrigtsen [Thu, 25 Aug 2022 12:18:45 +0000 (14:18 +0200)]
Allow not deleting the config.cache file with "make FAST=true bootstrap"

* Makefile.in: Add some commentary about make bootstrap,
./configure -C and FASTo
(top_bootclean): Don't delete config.cache here.
(top_distclean): Delete it here instead.
(bootstrap-clean): Allow not deleting the cache file.

* admin/emake (cores): Adjust.

2 years ago* configure.ac: Move AC_LANG_PUSH/POP out of AC_CACHE_CHECK. (Bug#57380)
Andreas Schwab [Thu, 25 Aug 2022 07:51:40 +0000 (09:51 +0200)]
* configure.ac: Move AC_LANG_PUSH/POP out of AC_CACHE_CHECK.  (Bug#57380)

(cherry picked from commit ce82300221f270241fdda1f5dfb567bdb1208543)

2 years agoMinor fixes in tramp-tests.el
Michael Albinus [Thu, 25 Aug 2022 09:08:48 +0000 (11:08 +0200)]
Minor fixes in tramp-tests.el

* test/lisp/net/tramp-tests.el (tramp--test-deftest-with-stat)
(tramp--test-deftest-with-perl)
(tramp--test-deftest-with-ls): Skip if underlying test didn't run
or lasted too long.
(tramp--test-shell-file-name): Do not depend on `tramp--test-adb-p'.

2 years ago* configure.ac: Move AC_LANG_PUSH/POP out of AC_CACHE_CHECK. (Bug#57380)
Andreas Schwab [Thu, 25 Aug 2022 07:51:40 +0000 (09:51 +0200)]
* configure.ac: Move AC_LANG_PUSH/POP out of AC_CACHE_CHECK.  (Bug#57380)

2 years agoFix various problems with mouse highlight on XI2 builds
Po Lu [Thu, 25 Aug 2022 04:24:34 +0000 (12:24 +0800)]
Fix various problems with mouse highlight on XI2 builds

* src/dispextern.h (reset_mouse_highlight): Fix coding style.
* src/xterm.c (xi_position_changed): New functions.
(xi_report_motion_window_clear, handle_one_xevent): Don't report
motion events if the pixel position did not actually change.

* src/xterm.h (struct xi_device_t): New fields
`last_motion_window', `last_motion_x' and `last_motion_y'.

2 years agovc-merge: Look for 'merge-file' instead of 'merge'
Dmitry Gutov [Wed, 24 Aug 2022 22:15:24 +0000 (01:15 +0300)]
vc-merge: Look for 'merge-file' instead of 'merge'

* lisp/vc/vc.el (vc-merge):
Look for 'merge-file' in second clause (bug#50258).

2 years agoC++ Mode - Fontify "class Foo {\n ~Foo() noexcept;" correctly
Alan Mackenzie [Wed, 24 Aug 2022 19:27:32 +0000 (19:27 +0000)]
C++ Mode - Fontify "class Foo {\n  ~Foo() noexcept;" correctly

This fixes bug #49787.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): (In `if' form just
before CASE 8) Remove the (not ...) around the (looking-at
c-after-suffixed-type-maybe-decl-key).

* lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare): Add
`c-not-decl' to the values of c-type which are erased at the start of a
fontification.

2 years agoFix handling of UNCs in 'parse-colon-path
Eli Zaretskii [Wed, 24 Aug 2022 16:19:33 +0000 (19:19 +0300)]
Fix handling of UNCs in 'parse-colon-path

* lisp/files.el (parse-colon-path): Don't remove the second
leading slash on systems that support UNCs.  (Bug#57353)

* test/lisp/files-tests.el (files-tests-bug-21454): Update
expected results.
(files-colon-path): Add a new test pattern.

2 years agoCC Mode: Fontify args correctly when arglist closing ) is not on the same line
Alan Mackenzie [Wed, 24 Aug 2022 14:42:11 +0000 (14:42 +0000)]
CC Mode: Fontify args correctly when arglist closing ) is not on the same line

This fixes bug #56841.

* lisp/progmodes/cc-engine.el (c-forward-declarator): Fix an off-by-one
comparing the position after a c-forward-name with a limit.

* lisp/progmodes/cc-mode.el (c-fl-decl-end): Handle correctly point starting
inside a literal.  Insert a missing c-backward-syntactic-ws in the handling of
C++ attributes.  Correctly handle an unmatched (.  Better handle point
starting inside a [ or (.  Tidy up the handling of syntactic whitespace at the
end of the buffer.

2 years agoFix string padding in gdb-mi
Santiago Calandrino [Wed, 24 Aug 2022 11:54:28 +0000 (13:54 +0200)]
Fix string padding in gdb-mi

* lisp/progmodes/gdb-mi.el (gdb-table): Fix string padding in
gdb-mi (bug#57362).
(gdb-pad-string): Unobsolete.
(gdb-table-string): Re-fix string padding.

Copyright-paperwork-exempt: yes

2 years ago; * lisp/simple.el (read-only-mode): Fix wording of doc string.
Eli Zaretskii [Wed, 24 Aug 2022 11:45:07 +0000 (14:45 +0300)]
; * lisp/simple.el (read-only-mode): Fix wording of doc string.

2 years agoDon't lose read-only marking when reverting a view-mode buffer
Lars Ingebrigtsen [Wed, 24 Aug 2022 11:39:08 +0000 (13:39 +0200)]
Don't lose read-only marking when reverting a view-mode buffer

* lisp/view.el (view--enable): Don't lose read-only-ness when
reverting (bug#35166).

2 years agoWhen reverting, preserve the readedness state set by `C-x C-q'
Lars Ingebrigtsen [Wed, 24 Aug 2022 11:33:02 +0000 (13:33 +0200)]
When reverting, preserve the readedness state set by `C-x C-q'

* lisp/files.el (revert-buffer): Save the user's intention in a
variable (bug#50431).

* lisp/simple.el (read-only-mode): Use it.

2 years agoFix input extension focus tracking with some window managers
Po Lu [Wed, 24 Aug 2022 11:10:44 +0000 (19:10 +0800)]
Fix input extension focus tracking with some window managers

* src/xterm.c (handle_one_xevent): If a window manager sends us
FocusIn and FocusOut with XSendEvent (they do that), don't
detect focus changes when XInput 2 is enabled.  The X server
will tell us the actual truth if the focus really did change.

2 years agoMake mh-colors-available-p obsolete
Stefan Kangas [Wed, 24 Aug 2022 04:38:36 +0000 (06:38 +0200)]
Make mh-colors-available-p obsolete

* lisp/mh-e/mh-utils.el (mh-colors-available-p): Redefine as
obsolete function alias for 'display-color-p'.

2 years agoPrefer saying "init file" to ".emacs" in FAQ
Stefan Kangas [Wed, 24 Aug 2022 04:06:39 +0000 (06:06 +0200)]
Prefer saying "init file" to ".emacs" in FAQ

* doc/misc/efaq.texi: Prefer saying "init file" to
".emacs".  (Bug#49424)

2 years ago; Sort list of generalized variables
Stefan Kangas [Wed, 24 Aug 2022 03:26:18 +0000 (05:26 +0200)]
; Sort list of generalized variables

* doc/lispref/variables.texi (Setting Generalized Variables): Sort
list of generalized variables alphabetically.

2 years agoUse substitute-command-keys in a few more places
Stefan Kangas [Tue, 5 Oct 2021 17:52:23 +0000 (19:52 +0200)]
Use substitute-command-keys in a few more places

* lisp/indent.el (edit-tab-stops):
* lisp/printing.el (pr-help-message, pr-show-setup):
* lisp/progmodes/cperl-mode.el (cperl-narrow-to-here-doc): Use
substitute-command-keys.

2 years agoMove generalized variable `substring' doc to elisp manual
Stefan Kangas [Tue, 23 Aug 2022 18:27:56 +0000 (20:27 +0200)]
Move generalized variable `substring' doc to elisp manual

* doc/misc/cl.texi (Setf Extensions): Move documentation on
'substring' generalized variable from here...
* doc/lispref/variables.texi (Setting Generalized Variables):
...to here.

2 years agoMove generalized variable docs to elisp manual
Stefan Kangas [Tue, 23 Aug 2022 18:15:49 +0000 (20:15 +0200)]
Move generalized variable docs to elisp manual

* doc/misc/cl.texi (Setf Extensions): Delete documentation on obsolete
generalized variable 'buffer-substring'.  Move documentation on
generalized variables from here...
* doc/lispref/variables.texi (Setting Generalized Variables):
...to here.  These variables have already been moved to gv.el.

2 years ago; * src/buffer.h (struct buffer_text): Improve commentary.
Eli Zaretskii [Tue, 23 Aug 2022 16:30:18 +0000 (19:30 +0300)]
; * src/buffer.h (struct buffer_text): Improve commentary.

2 years agoUpdate documentation for obsolete generalized variables
Stefan Kangas [Tue, 23 Aug 2022 16:16:01 +0000 (18:16 +0200)]
Update documentation for obsolete generalized variables

* doc/misc/cl.texi (Setf Extensions): Delete obsolete generalized
variables from list.
* etc/NEWS: Fix sorting of obsolete generalized variables.

2 years agoImprove detection of long lines.
Gregory Heytings [Tue, 23 Aug 2022 15:41:05 +0000 (15:41 +0000)]
Improve detection of long lines.

* src/buffer.h (struct buffer_text): New field.
(BUF_CHARS_UNCHANGED_MODIFIED, CHARS_UNCHANGED_MODIFIED): New macros.

* src/buffer.c (Fget_buffer_create): Initialize the new field.

* src/xdisp.c (mark_window_display_accurate_1): Set the new field.
(redisplay_window): Use it, together with CHARS_MODIFF, instead of
MODIFF and UNCHANGED_MODIFIED to decide whether to check for long
lines.

* src/pdumper.c (dump_buffer): Dump the new field.

2 years ago; * etc/NEWS: Remove redundant headlines.
Stefan Kangas [Tue, 23 Aug 2022 15:41:47 +0000 (17:41 +0200)]
; * etc/NEWS: Remove redundant headlines.

This is all about the new Haiku support, so it can be under the same
headline.

2 years agoAdd NEWS entry about obsoleted generalized variables
Lars Ingebrigtsen [Tue, 23 Aug 2022 15:04:43 +0000 (17:04 +0200)]
Add NEWS entry about obsoleted generalized variables

2 years agoMake XEmacs compat alias face-background-pixmap obsolete
Stefan Kangas [Tue, 23 Aug 2022 14:34:01 +0000 (16:34 +0200)]
Make XEmacs compat alias face-background-pixmap obsolete

* lisp/faces.el (face-background-pixmap)
(set-face-background-pixmap): Make XEmacs compat aliases obsolete in
favor of 'face-stipple' and 'set-face-stipple'.  Update callers.

* lisp/emacs-lisp/gv.el (face-background-pixmap): Make XEmacs
alias obsolete as a generalized variable.
(face-stipple): New generalized variable.
* doc/misc/cl.texi (Setf Extensions): Refer to above new generalized
variable instead of the obsolete one.

2 years ago; Minor doc fix in easy-menu-{add,remove}
Stefan Kangas [Tue, 23 Aug 2022 14:20:25 +0000 (16:20 +0200)]
; Minor doc fix in easy-menu-{add,remove}

* lisp/emacs-lisp/easymenu.el (easy-menu-remove, easy-menu-add):
Minor doc fix: don't explain what this does in XEmacs.

2 years ago* lisp/progmodes/elisp-mode.el (elisp--local-variables-1): Fix bug#50034
Stefan Monnier [Tue, 23 Aug 2022 14:15:48 +0000 (10:15 -0400)]
* lisp/progmodes/elisp-mode.el (elisp--local-variables-1): Fix bug#50034

Don't burp if the arg list of a function is not actually a list.

2 years agoMake Emacs 20 compat alias obsolete in eudcb-ldap.el
Stefan Kangas [Tue, 23 Aug 2022 13:56:32 +0000 (15:56 +0200)]
Make Emacs 20 compat alias obsolete in eudcb-ldap.el

* lisp/net/eudcb-ldap.el (eudc-ldap-get-host-parameter): Make
Emacs 20 compat alias obsolete.

2 years agoFix pixel-scroll-precision in a corner case
Gerd Möllmann [Tue, 23 Aug 2022 13:50:25 +0000 (15:50 +0200)]
Fix pixel-scroll-precision in a corner case

* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-up-page): Handle
case that point cannot be found.
(pixel-scroll-precision-scroll-up): Handle case that window is one line high
(bug#57349)

2 years ago; * src/xterm.c (x_free_frame_resources): Fix typo.
Po Lu [Tue, 23 Aug 2022 12:56:12 +0000 (20:56 +0800)]
; * src/xterm.c (x_free_frame_resources): Fix typo.

2 years agoMake frame synchronization conditional on clock_gettime
Po Lu [Tue, 23 Aug 2022 12:52:41 +0000 (20:52 +0800)]
Make frame synchronization conditional on clock_gettime

* src/xfns.c (x_set_parent_frame)
(x_set_use_frame_synchronization):
* src/xterm.c (x_update_begin, show_back_buffer, x_update_end)
(x_display_set_last_user_time, handle_one_xevent):
* src/xterm.h (struct x_output): Define out vsync code when
!HAVE_CLOCK_GETTIME.  (bug#57346)

2 years agoMake frame synchronization conditional on clock_gettime
Po Lu [Tue, 23 Aug 2022 12:42:28 +0000 (20:42 +0800)]
Make frame synchronization conditional on clock_gettime

* src/xfns.c (x_set_parent_frame)
(x_set_use_frame_synchronization):
* src/xterm.c (x_update_begin, show_back_buffer, x_update_end)
(x_display_set_last_user_time, handle_one_xevent):
* src/xterm.h (struct x_output): Define out vsync code when
!HAVE_CLOCK_GETTIME.

2 years agoDisable a lisp-mode test that now fails
Lars Ingebrigtsen [Tue, 23 Aug 2022 10:49:13 +0000 (12:49 +0200)]
Disable a lisp-mode test that now fails

* test/lisp/emacs-lisp/lisp-mode-tests.el
(test-lisp-current-defun-name): Comment-out now-failing tests.

2 years agoRevert the changes to lisp-current-defun-name
Lars Ingebrigtsen [Tue, 23 Aug 2022 10:26:24 +0000 (12:26 +0200)]
Revert the changes to lisp-current-defun-name

* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): Revert
back to the old version before bug#49592.  The new approach just
doesn't work well enough -- we don't really have the data to know
that, say, `make-obsolete-variable' is about the second symbol and
not the first.

2 years agoDon't mention obsolete generalized variables in *Help*
Lars Ingebrigtsen [Tue, 23 Aug 2022 10:23:09 +0000 (12:23 +0200)]
Don't mention obsolete generalized variables in *Help*

* lisp/help-fns.el (help-fns--generalized-variable): Don't mention
obsolete ones.

2 years agoMake buffer-local-value obsolete as a generalized variable
Lars Ingebrigtsen [Tue, 23 Aug 2022 10:22:42 +0000 (12:22 +0200)]
Make buffer-local-value obsolete as a generalized variable

* lisp/electric.el (electric-indent-local-mode)
(electric-layout-local-mode, electric-quote-local-mode):
* lisp/elec-pair.el (electric-pair-local-mode): Adjust usage.
* lisp/emacs-lisp/gv.el (make-obsolete-generalized-variable): Move
since we're using it earlier in the file.
(buffer-local-value): Make obsolete as a generalized variable
since the semantics are unclear (bug#26624).

2 years agoFix wdired with (dired '(dir f1 f2 ...))
Thierry Volpiatto [Tue, 23 Aug 2022 10:03:22 +0000 (12:03 +0200)]
Fix wdired with (dired '(dir f1 f2 ...))

* lisp/wdired.el (wdired-finish-edit): Fix wdired with (dired
'(dir f1 f2 ...)) (bug#57334).

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 23 Aug 2022 04:30:36 +0000 (06:30 +0200)]
Merge from origin/emacs-28

1dd0a5c5db ; * doc/misc/htmlfontify.texi: Fix version.

2 years agoFix completion-predicate of Python shell commands
Augusto Stoffel [Mon, 22 Aug 2022 16:16:50 +0000 (18:16 +0200)]
Fix completion-predicate of Python shell commands

* lisp/progmodes/python.el:  Change some completion predicates.
(python-shell--completion-predicate): New completion predicate
function.  (Bug#57184)

2 years agoMake point-at-eol and point-at-bol obsolete
Stefan Kangas [Tue, 23 Aug 2022 02:54:57 +0000 (04:54 +0200)]
Make point-at-eol and point-at-bol obsolete

* lisp/subr.el (point-at-eol, point-at-bol): Make XEmacs compat
aliases obsolete in favor of `pos-bol'/'line-beginning-position' or
'pos-eol'/'line-end-position'.  Update callers.
Ref: https://lists.gnu.org/r/emacs-devel/2022-08/msg00853.html

2 years agoAllow disabling the input extension at runtime on GTK 3
Po Lu [Tue, 23 Aug 2022 01:30:25 +0000 (09:30 +0800)]
Allow disabling the input extension at runtime on GTK 3

* src/xterm.c (xi_check_toolkit): New function.
(x_term_init): Do not enable the input extension should that
fail.

2 years agoFix some no-X build warnings
Lars Ingebrigtsen [Mon, 22 Aug 2022 17:22:27 +0000 (19:22 +0200)]
Fix some no-X build warnings

* lisp/cus-edit.el (fringe-bitmap-p): Autoload.

* lisp/image.el (clear-image-cache): Declare.

* lisp/mouse.el (dnd-begin-file-dram): Autoload.

* lisp/thumbs.el (image-supported-file-p): Declare (bug#57342).

* lisp/mail/rmailmm.el (rmail-mime-set-bulk-data):
* lisp/emacs-lisp/icons.el (icons--create): Avoid warnings on no-X
builds.

2 years ago; * doc/lispref/commands.texi (Interactive Codes): Fix punctuation.
Eli Zaretskii [Mon, 22 Aug 2022 16:24:29 +0000 (19:24 +0300)]
; * doc/lispref/commands.texi (Interactive Codes): Fix punctuation.

2 years agoauth-source: Fix wrong-type-argument when searching secret services
Michael Albinus [Mon, 22 Aug 2022 14:56:57 +0000 (16:56 +0200)]
auth-source: Fix wrong-type-argument when searching secret services

`auth-source-search' can be called with an integer port number,
while the backend implementation doesn't allow non-string attributes.

* doc/misc/auth.texi (Secret Service API): Attribute values are
stringified.

* lisp/auth-source.el (auth-source-secrets-search):
Ensure attributes are string.  (Bug#55199)

2 years ago; * doc/misc/htmlfontify.texi: Fix version.
Stefan Kangas [Mon, 22 Aug 2022 14:30:29 +0000 (16:30 +0200)]
; * doc/misc/htmlfontify.texi: Fix version.

2 years agoLink the "f" interactive spec to `read-file-name' in the manual
Lars Ingebrigtsen [Mon, 22 Aug 2022 14:02:50 +0000 (16:02 +0200)]
Link the "f" interactive spec to `read-file-name' in the manual

* doc/lispref/commands.texi (Interactive Codes): Link to the
Reading File Names node.

2 years agoUse the attributes of frame's monitor for gamegrid
Robert Pluim [Mon, 22 Aug 2022 12:33:02 +0000 (14:33 +0200)]
Use the attributes of frame's monitor for gamegrid

* lisp/play/gamegrid.el (gamegrid-calculate-glyph-size): Use the
monitor where the current frame is displayed rather than the primary
monitor.

2 years agoPrefer pos-bol and pos-eol in tabulated-list.el
Stefan Kangas [Sun, 21 Aug 2022 16:28:43 +0000 (18:28 +0200)]
Prefer pos-bol and pos-eol in tabulated-list.el

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print)
(tabulated-list-print-entry, tabulated-list-delete-entry)
(tabulated-list-set-col, tabulated-list-previous-column): Prefer
pos-bol and pos-eol.

2 years ago; * lisp/emacs-lisp/shortdoc.el (buffer): Improve sorting.
Stefan Kangas [Sun, 21 Aug 2022 16:21:46 +0000 (18:21 +0200)]
; * lisp/emacs-lisp/shortdoc.el (buffer): Improve sorting.

2 years agoMake ispell-find-hunspell-dictionaries more resilient
Lars Ingebrigtsen [Mon, 22 Aug 2022 12:57:34 +0000 (14:57 +0200)]
Make ispell-find-hunspell-dictionaries more resilient

* lisp/textmodes/ispell.el (ispell-find-hunspell-dictionaries):
Try harder to find the dictionary (bug#49982).

2 years agoFix indent-tabs-mode globality
Lars Ingebrigtsen [Mon, 22 Aug 2022 12:02:34 +0000 (14:02 +0200)]
Fix indent-tabs-mode globality

* lisp/simple.el (indent-tabs-mode): This is not a global mode, so
don't claim it is (bug#49971).

2 years agoMake the size of elements the same in pgtk and X in tetris
Lars Ingebrigtsen [Mon, 22 Aug 2022 11:53:33 +0000 (13:53 +0200)]
Make the size of elements the same in pgtk and X in tetris

* lisp/play/gamegrid.el (gamegrid-glyph-height-mm): Decrease
height a bit (since it wasn't really that height).
(gamegrid-calculate-glyph-size): Change calculation to work on
both X and pgtk (bug#49937).
(gamegrid-make-glyph): Inhibit image scaling.

2 years agoRemove probably debugging code in reb-fontify-string-re
Lars Ingebrigtsen [Mon, 22 Aug 2022 11:00:36 +0000 (13:00 +0200)]
Remove probably debugging code in reb-fontify-string-re

* lisp/emacs-lisp/re-builder.el (reb-fontify-string-re): Remove
code that looks like left-over debugging code.  This fixes a
compilation warning.

2 years agoMake start/end in libxml-parse-html-region optional
Lars Ingebrigtsen [Mon, 22 Aug 2022 10:48:37 +0000 (12:48 +0200)]
Make start/end in libxml-parse-html-region optional

* doc/lispref/text.texi (Parsing HTML/XML): Adjust.

* src/xml.c (parse_region): Default start/end to point-min/point-max.
(Flibxml_parse_html_region, Flibxml_parse_xml_region): Make
start/end optional.

2 years agoFix defcustom type of auto-save-file-name-transforms
Lars Ingebrigtsen [Mon, 22 Aug 2022 10:18:09 +0000 (12:18 +0200)]
Fix defcustom type of auto-save-file-name-transforms

* lisp/files.el (auto-save-file-name-transforms): Fix the
defcustom type (bug#57321).

2 years agoLLDB support: handle unsorted enum member lists
Gerd Möllmann [Mon, 22 Aug 2022 09:18:30 +0000 (11:18 +0200)]
LLDB support: handle unsorted enum member lists

* etc/emacs_lldb.py (enumerator_name): Handle the case that enum
member list is not sorted by value.

2 years ago* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix some type spec
Andrea Corallo [Mon, 22 Aug 2022 08:29:18 +0000 (10:29 +0200)]
* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix some type spec

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

582ea6a1e9 Update to Org 9.5.4-19-g4dff42
7a3ae3cb62 ; * lisp/find-file.el (ff-other-file-alist): Fix typo.
c3087b59f0 ; * lisp/find-file.el (ff-other-file-alist): Another doc f...
1e1263b00b * lisp/find-file.el (ff-other-file-alist): Doc fix.  (Bug#...

2 years agoFix child frame focus for MPX environments
Po Lu [Mon, 22 Aug 2022 01:50:45 +0000 (09:50 +0800)]
Fix child frame focus for MPX environments

* src/xterm.c (handle_one_xevent): Set child frame click-to
focus on the pointer device's attachment.

2 years agoFix more lexical-binding fallout in vhdl-speedbar-insert-hierarchy
Gonzalo Larumbe [Sun, 21 Aug 2022 23:29:08 +0000 (01:29 +0200)]
Fix more lexical-binding fallout in vhdl-speedbar-insert-hierarchy

* lisp/progmodes/vhdl-mode.el (vhdl-speedbar-insert-hierarchy):
Check the input arguments, not the dynamically bound `end-arglist'
(bug#57327).

2 years agoMake *Help* display info about generalized variables
Lars Ingebrigtsen [Sun, 21 Aug 2022 22:37:29 +0000 (00:37 +0200)]
Make *Help* display info about generalized variables

* lisp/help-fns.el (help-fns--generalized-variable): New function
to document generalized variables.