Stefan Kangas
4ee8a6c124
; 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.
2022-08-23 16:24:54 +02:00
Stefan Monnier
3b72b47cbd
* 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.
2022-08-23 10:16:05 -04:00
Stefan Kangas
1a4a12a2a8
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.
2022-08-23 15:57:20 +02:00
Gerd Möllmann
1f990d1cf9
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)
2022-08-23 15:53:10 +02:00
Po Lu
76982f0868
; * src/xterm.c (x_free_frame_resources): Fix typo.
2022-08-23 20:56:12 +08:00
Po Lu
a328bf65ef
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)
2022-08-23 20:53:24 +08:00
Po Lu
3b7fb723e6
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.
2022-08-23 20:53:24 +08:00
Lars Ingebrigtsen
b448fbec4b
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.
2022-08-23 12:49:13 +02:00
Lars Ingebrigtsen
48b0f2606b
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.
2022-08-23 12:26:24 +02:00
Lars Ingebrigtsen
9d9798521e
Don't mention obsolete generalized variables in *Help*
...
* lisp/help-fns.el (help-fns--generalized-variable): Don't mention
obsolete ones.
2022-08-23 12:23:09 +02:00
Lars Ingebrigtsen
915efbff98
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).
2022-08-23 12:22:42 +02:00
Thierry Volpiatto
66040fbeed
Fix wdired with (dired '(dir f1 f2 ...))
...
* lisp/wdired.el (wdired-finish-edit): Fix wdired with (dired
'(dir f1 f2 ...)) (bug#57334).
2022-08-23 12:03:22 +02:00
Stefan Kangas
e2c766a20d
Merge from origin/emacs-28
...
1dd0a5c5db ; * doc/misc/htmlfontify.texi: Fix version.
2022-08-23 06:30:36 +02:00
Augusto Stoffel
fd97cc8e0d
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)
2022-08-23 05:06:32 +02:00
Stefan Kangas
b7e867b841
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
2022-08-23 04:54:57 +02:00
Po Lu
e425b7d231
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.
2022-08-23 09:30:25 +08:00
Lars Ingebrigtsen
06d7161476
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.
2022-08-22 19:22:33 +02:00
Eli Zaretskii
a0fa6bd547
; * doc/lispref/commands.texi (Interactive Codes): Fix punctuation.
2022-08-22 19:24:29 +03:00
Michael Albinus
f579cd472c
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)
2022-08-22 16:56:57 +02:00
Stefan Kangas
1dd0a5c5db
; * doc/misc/htmlfontify.texi: Fix version.
2022-08-22 16:30:29 +02:00
Lars Ingebrigtsen
6c9696e3de
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.
2022-08-22 16:03:00 +02:00
Robert Pluim
0dd51d8ebf
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.
2022-08-22 15:22:07 +02:00
Stefan Kangas
ac90530a0a
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.
2022-08-22 15:08:48 +02:00
Stefan Kangas
a7557f2483
; * lisp/emacs-lisp/shortdoc.el (buffer): Improve sorting.
2022-08-22 15:08:48 +02:00
Lars Ingebrigtsen
9681ebf125
Make ispell-find-hunspell-dictionaries more resilient
...
* lisp/textmodes/ispell.el (ispell-find-hunspell-dictionaries):
Try harder to find the dictionary (bug#49982).
2022-08-22 14:57:34 +02:00
Lars Ingebrigtsen
c202f22f4d
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).
2022-08-22 14:02:34 +02:00
Lars Ingebrigtsen
f421efdb5f
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.
2022-08-22 13:53:33 +02:00
Lars Ingebrigtsen
d921424891
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.
2022-08-22 13:00:36 +02:00
Lars Ingebrigtsen
cc33c6cf3a
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.
2022-08-22 12:48:37 +02:00
Lars Ingebrigtsen
b04ec9a7d3
Fix defcustom type of auto-save-file-name-transforms
...
* lisp/files.el (auto-save-file-name-transforms): Fix the
defcustom type (bug#57321).
2022-08-22 12:18:09 +02:00
Gerd Möllmann
a680a9fc64
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.
2022-08-22 11:18:30 +02:00
Andrea Corallo
a5e36575ae
* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix some type spec
2022-08-22 10:29:18 +02:00
Stefan Kangas
0c410206aa
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#...
2022-08-22 06:30:29 +02:00
Po Lu
e154ba196a
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.
2022-08-22 09:50:45 +08:00
Gonzalo Larumbe
15d628f196
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).
2022-08-22 01:29:08 +02:00
Lars Ingebrigtsen
643990336f
Make *Help* display info about generalized variables
...
* lisp/help-fns.el (help-fns--generalized-variable): New function
to document generalized variables.
2022-08-22 00:37:29 +02:00
Lars Ingebrigtsen
ae5fe348fb
Revert "Make the generalized buffer-local-variable obsolete"
...
This reverts commit bfe222288e .
This led to the local modes not working.
2022-08-22 00:14:07 +02:00
Lars Ingebrigtsen
29a989c020
Regenerated ldefs-boot.el
2022-08-21 23:38:20 +02:00
Lars Ingebrigtsen
bfe222288e
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.
2022-08-21 23:38:09 +02:00
Kyle Meyer
582ea6a1e9
Update to Org 9.5.4-19-g4dff42
2022-08-21 17:35:35 -04:00
Stefan Kangas
7a3ae3cb62
; * lisp/find-file.el (ff-other-file-alist): Fix typo.
2022-08-21 22:31:05 +02:00
Lars Ingebrigtsen
efd95300c7
Adjust autorevert tests to recent change
...
* test/lisp/autorevert-tests.el (auto-revert--wait-for-revert):
Adjust test to code change.
2022-08-21 22:18:49 +02:00
Lars Ingebrigtsen
48aacbf292
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.
2022-08-21 22:12:43 +02:00
Lars Ingebrigtsen
6ddcf67052
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.
2022-08-21 21:46:14 +02:00
Eli Zaretskii
c3087b59f0
; * lisp/find-file.el (ff-other-file-alist): Another doc fix. (Bug#57325)
2022-08-21 22:06:34 +03:00
Eli Zaretskii
1e1263b00b
* lisp/find-file.el (ff-other-file-alist): Doc fix. (Bug#57325)
2022-08-21 21:48:58 +03:00
Lars Ingebrigtsen
958924a812
Mention delete-line in shortdoc
...
* lisp/emacs-lisp/shortdoc.el (buffer): Mention delete-line.
2022-08-21 18:17:56 +02:00
Lars Ingebrigtsen
102258fe1c
Simplify `delete-line'
...
* lisp/subr.el (delete-line): Simplify.
2022-08-21 18:13:12 +02:00
Stefan Kangas
52b240b29b
Prefer pos-bol and pos-eol in bookmark.el
...
* lisp/bookmark.el (bookmark--set-fringe-mark)
(bookmark--remove-fringe-mark, bookmark-kill-line)
(bookmark--jump-via): Prefer pos-bol and pos-eol.
2022-08-21 18:04:40 +02:00
Lars Ingebrigtsen
fe194f179d
Remove a newline from the end of an error message
...
* src/pdumper.c (dump_native_comp_unit): Remove newline from end
of error message.
2022-08-21 18:01:40 +02:00