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.
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...
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.
Po Lu [Fri, 26 Aug 2022 01:37:47 +0000 (09:37 +0800)]
; * src/xterm.h (struct x_display_info): Update comment.
Paul Eggert [Thu, 25 Aug 2022 23:16:56 +0000 (18:16 -0500)]
Update from Gnulib by running admin/merge-gnulib
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.
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.
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 ...).
Eli Zaretskii [Thu, 25 Aug 2022 18:56:50 +0000 (21:56 +0300)]
; * etc/NEWS: Fix wording of a recently-added entry.
Eli Zaretskii [Thu, 25 Aug 2022 18:51:23 +0000 (21:51 +0300)]
; * lisp/progmodes/grep.el (grep-command-position): Doc fix.
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.
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
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.
Stefan Kangas [Thu, 25 Aug 2022 15:15:39 +0000 (17:15 +0200)]
* lisp/wdired.el: Improve "Commentary" section.
Stefan Kangas [Thu, 25 Aug 2022 15:11:05 +0000 (17:11 +0200)]
* lisp/wdired.el: Doc fix; don't mention obsolete variable.
Stefan Kangas [Tue, 23 Aug 2022 14:18:57 +0000 (16:18 +0200)]
* lisp/progmodes/etags.el (next-file): Minor doc fix.
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).
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).
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'.
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).
Lars Ingebrigtsen [Thu, 25 Aug 2022 14:00:27 +0000 (16:00 +0200)]
Mention C-x C-q + revert change in NEWS
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)
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)
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).
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.
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.
Lars Ingebrigtsen [Thu, 25 Aug 2022 12:29:43 +0000 (14:29 +0200)]
Add hideshow-test.el file (bug#56635)
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).
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).
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.
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)
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'.
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)
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'.
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).
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.
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.
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.
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
Eli Zaretskii [Wed, 24 Aug 2022 11:45:07 +0000 (14:45 +0300)]
; * lisp/simple.el (read-only-mode): Fix wording of doc string.
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).
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.
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.
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'.
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)
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.
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.
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.
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.
Eli Zaretskii [Tue, 23 Aug 2022 16:30:18 +0000 (19:30 +0300)]
; * src/buffer.h (struct buffer_text): Improve commentary.
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.
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.
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.
Lars Ingebrigtsen [Tue, 23 Aug 2022 15:04:43 +0000 (17:04 +0200)]
Add NEWS entry about obsoleted generalized variables
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.
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.
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.
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.
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)
Po Lu [Tue, 23 Aug 2022 12:56:12 +0000 (20:56 +0800)]
; * src/xterm.c (x_free_frame_resources): Fix typo.
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)
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.
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.
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.
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.
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).
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).
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.
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)
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
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.
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.
Eli Zaretskii [Mon, 22 Aug 2022 16:24:29 +0000 (19:24 +0300)]
; * doc/lispref/commands.texi (Interactive Codes): Fix punctuation.
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)
Stefan Kangas [Mon, 22 Aug 2022 14:30:29 +0000 (16:30 +0200)]
; * doc/misc/htmlfontify.texi: Fix version.
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.
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.
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.
Stefan Kangas [Sun, 21 Aug 2022 16:21:46 +0000 (18:21 +0200)]
; * lisp/emacs-lisp/shortdoc.el (buffer): Improve sorting.
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).
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).
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.
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.
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.
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).
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.
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
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#...
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.
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).
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.
Lars Ingebrigtsen [Sun, 21 Aug 2022 22:14:07 +0000 (00:14 +0200)]
Revert "Make the generalized buffer-local-variable obsolete"
This reverts commit
bfe222288e02472bff0e1ab5ba7ef26af6a2769a.
This led to the local modes not working.
Lars Ingebrigtsen [Sun, 21 Aug 2022 21:38:20 +0000 (23:38 +0200)]
Regenerated ldefs-boot.el
Lars Ingebrigtsen [Sun, 21 Aug 2022 21:38:09 +0000 (23:38 +0200)]
Make the generalized buffer-local-variable obsolete
* lisp/paren.el (show-paren-local-mode):
* lisp/electric.el (electric-indent-local-mode)
(electric-layout-local-mode, electric-quote-local-mode):
* lisp/elec-pair.el (electric-pair-local-mode): Don't use it.
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Autoload.
* lisp/emacs-lisp/gv.el (buffer-local-variable): Make obsolete
(bug#26624).
* lisp/emacs-lisp/gv.el (make-obsolete-generalized-variable): Move
to allow usage.
Kyle Meyer [Sun, 21 Aug 2022 21:25:39 +0000 (17:25 -0400)]
Update to Org 9.5.4-19-g4dff42
Stefan Kangas [Sun, 21 Aug 2022 20:31:05 +0000 (22:31 +0200)]
; * lisp/find-file.el (ff-other-file-alist): Fix typo.
Lars Ingebrigtsen [Sun, 21 Aug 2022 20:18:49 +0000 (22:18 +0200)]
Adjust autorevert tests to recent change
* test/lisp/autorevert-tests.el (auto-revert--wait-for-revert):
Adjust test to code change.
Lars Ingebrigtsen [Sun, 21 Aug 2022 20:12:43 +0000 (22:12 +0200)]
Make many seldom-used generalized variables obsolete
The vast majority of these are unused in-tree, and many of them
perform actions that aren't obvious when reading the code.
* lisp/server.el (server-ensure-safe-dir): Prefer with-file-modes
over letf-ing default-file-modes.
(server-start): Ditto.
* lisp/winner.el (winner-set-conf): Don't use generalized variable
window-height.
* lisp/emacs-lisp/gv.el: Make most little-used generalized
variables obsolete.
* lisp/org/oc-basic.el (org-cite-basic--set-keymap): Adjust
buffer-substring generalized variable usage.
Lars Ingebrigtsen [Sun, 21 Aug 2022 19:46:14 +0000 (21:46 +0200)]
Make it possible to mark generalized variables as obsolete
* doc/lispref/variables.texi (Adding Generalized Variables):
Document it.
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Alter
the interface so that it can also be used by generalized variable
warnings.
(byte-compile-function-warn): Adjust caller.
(byte-compile-check-variable): Adjust caller.
* lisp/emacs-lisp/gv.el (gv-get): Warn about obsolete generalized
variables (bug#49730).
(make-obsolete-generalized-variable): New function.
Eli Zaretskii [Sun, 21 Aug 2022 19:06:34 +0000 (22:06 +0300)]
; * lisp/find-file.el (ff-other-file-alist): Another doc fix. (Bug#57325)