]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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.

2 years agoRevert "Make the generalized buffer-local-variable obsolete"
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.

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Sun, 21 Aug 2022 21:38:20 +0000 (23:38 +0200)]
Regenerated ldefs-boot.el

2 years agoMake the generalized buffer-local-variable obsolete
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.

2 years agoUpdate to Org 9.5.4-19-g4dff42
Kyle Meyer [Sun, 21 Aug 2022 21:25:39 +0000 (17:25 -0400)]
Update to Org 9.5.4-19-g4dff42

2 years ago; * lisp/find-file.el (ff-other-file-alist): Fix typo.
Stefan Kangas [Sun, 21 Aug 2022 20:31:05 +0000 (22:31 +0200)]
; * lisp/find-file.el (ff-other-file-alist): Fix typo.

2 years agoAdjust autorevert tests to recent change
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.

2 years agoMake many seldom-used generalized variables obsolete
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.

2 years agoMake it possible to mark generalized variables as obsolete
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.

2 years ago; * lisp/find-file.el (ff-other-file-alist): Another doc fix. (Bug#57325)
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)

2 years ago* lisp/find-file.el (ff-other-file-alist): Doc fix. (Bug#57325)
Eli Zaretskii [Sun, 21 Aug 2022 18:48:58 +0000 (21:48 +0300)]
* lisp/find-file.el (ff-other-file-alist): Doc fix.  (Bug#57325)

2 years agoMention delete-line in shortdoc
Lars Ingebrigtsen [Sun, 21 Aug 2022 16:17:56 +0000 (18:17 +0200)]
Mention delete-line in shortdoc

* lisp/emacs-lisp/shortdoc.el (buffer): Mention delete-line.

2 years agoSimplify `delete-line'
Lars Ingebrigtsen [Sun, 21 Aug 2022 16:13:00 +0000 (18:13 +0200)]
Simplify `delete-line'

* lisp/subr.el (delete-line): Simplify.

2 years agoPrefer pos-bol and pos-eol in bookmark.el
Stefan Kangas [Sun, 21 Aug 2022 16:00:53 +0000 (18:00 +0200)]
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.

2 years agoRemove a newline from the end of an error message
Lars Ingebrigtsen [Sun, 21 Aug 2022 16:01:22 +0000 (18:01 +0200)]
Remove a newline from the end of an error message

* src/pdumper.c (dump_native_comp_unit): Remove newline from end
of error message.

2 years agoFix eshell-pipe-broken signalling
Mattias Engdegård [Sun, 21 Aug 2022 15:50:42 +0000 (17:50 +0200)]
Fix eshell-pipe-broken signalling

* lisp/eshell/esh-io.el (eshell-output-object-to-target):
Second argument to `signal` should be a list.

2 years agoMark another esh-proc test as unstable
Stefan Kangas [Sun, 21 Aug 2022 15:48:03 +0000 (17:48 +0200)]
Mark another esh-proc test as unstable

* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/pipeline-connection-type/middle): Mark test as unstable
as it fails quite a lot.

2 years agoPrefer pos-bol and pos-eol in tests
Stefan Kangas [Sun, 21 Aug 2022 15:33:55 +0000 (17:33 +0200)]
Prefer pos-bol and pos-eol in tests

* test/lisp/calendar/todo-mode-tests.el
(todo-test-toggle-item-header02, todo-test-edit-item-date-month)
(todo-test-multiline-item-indentation-1)
(todo-test-multiline-item-indentation-2)
(todo-test-multiline-item-indentation-3):
* test/lisp/cedet/semantic-utest-ia.el (semantic-ia-utest-buffer)
(semantic-sr-utest-buffer-refs):
* test/lisp/cedet/semantic-utest.el (semantic-utest-kill-indicator)
(semantic-utest-unkill-indicator):
* test/lisp/dired-tests.el (dired-test-bug27968):
* test/lisp/emacs-lisp/backtrace-tests.el
(backtrace-tests--verify-single-and-multi-line):
* test/lisp/emacs-lisp/find-func-tests.el
(find-func-tests--find-library-verbose):
* test/lisp/erc/erc-tests.el (erc-ring-previous-command)
(erc-log-irc-protocol):
* test/lisp/gnus/message-tests.el (message-mode-propertize):
* test/lisp/info-xref-tests.el (info-xref-test-emacs-manuals):
* test/lisp/mail/footnote-tests.el (footnote-tests-same-place):
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-shorthand-completion-at-point):
* test/lisp/progmodes/f90-tests.el (f90-test-bug38415):
* test/lisp/progmodes/python-tests.el
(python-indent-electric-comma-inside-multiline-string)
(python-indent-electric-comma-after-multiline-string)
(python-indent-electric-colon-1, python-indent-electric-colon-2)
(python-indent-electric-colon-3, python-indent-electric-colon-4)
(python-mark-defun-2, python-mark-defun-3, python-mark-defun-4)
(python-mark-defun-5, python-nav-end-of-defun-2)
(python-nav-end-of-statement-1, python-nav-end-of-block-1)
(python-indent-dedent-line-backspace-2)
(python-indent-dedent-line-backspace-3)
(python-eldoc--get-symbol-at-point-1)
(python-info-beginning-of-statement-p-1)
(python-info-beginning-of-statement-p-2):
* test/lisp/replace-tests.el (replace-occur-revert-bug32543)
(replace-occur-revert-bug32987):
* test/lisp/simple-tests.el (simple-delete-indentation-boundaries)
(simple-delete-indentation-region)
(line-number-at-pos-in-narrow-buffer)
(line-number-at-pos-keeps-restriction):
* test/lisp/textmodes/css-mode-tests.el (css-mode-test-selectors)
(scss-mode-test-selectors):
* test/lisp/textmodes/fill-tests.el (fill-test-unbreakable-paragraph)
(fill-test-breakable-paragraph):
* test/lisp/time-stamp-tests.el (time-stamp-custom-pattern):
* test/src/lread-tests.el (lread-tests--last-message):
* test/src/process-tests.el (set-process-filter-t):
* test/src/undo-tests.el (undo-test-skip-invalidated-markers): Prefer
pos-bol and pos-eol.

2 years agoDon't end autorevert message with a period
Stefan Kangas [Sun, 21 Aug 2022 15:28:14 +0000 (17:28 +0200)]
Don't end autorevert message with a period

* lisp/autorevert.el (auto-revert-handler): Don't end message with
a period.

2 years agoTweak emacs-bug--system-description
Lars Ingebrigtsen [Sun, 21 Aug 2022 15:14:46 +0000 (17:14 +0200)]
Tweak emacs-bug--system-description

* lisp/mail/emacsbug.el (emacs-bug--system-description): Fill the
commonly-overlong Emacs version bit.

2 years agoUpdate function properties and optimisations
Mattias Engdegård [Sun, 21 Aug 2022 14:17:45 +0000 (16:17 +0200)]
Update function properties and optimisations

* lisp/emacs-lisp/byte-opt.el (byte-opt--bool-value-form):
Recognise boolean identity in aset, put, function-put and puthash.
* lisp/emacs-lisp/byte-opt.el (byte-compile-trueconstp):
Mark more functins as non-nil-returning, including the new
pos-bol and pos-eol.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns):
Mark pos-bol and pos-eol as side-effect-free.

2 years ago; Complete renaming to pos-bol and pos-eol
Mattias Engdegård [Sun, 21 Aug 2022 13:56:26 +0000 (15:56 +0200)]
; Complete renaming to pos-bol and pos-eol

2 years ago* lisp/emacs-lisp/shortdoc.el (buffer): Add missing functions
Mattias Engdegård [Sun, 21 Aug 2022 13:48:08 +0000 (15:48 +0200)]
* lisp/emacs-lisp/shortdoc.el (buffer): Add missing functions

Add preceding-char and char-before because following-char and
char-after were already there.

2 years agoFix src-depending-on-lisp target
Gerd Möllmann [Sun, 21 Aug 2022 13:57:40 +0000 (15:57 +0200)]
Fix src-depending-on-lisp target

* Makefile.in (src-depending-on-lisp): Pass BIN_DESTDIR and
ELN_DESTDIR to make -C src (bug#57309).

2 years agoMark esh-proc test as unstable
Lars Ingebrigtsen [Sun, 21 Aug 2022 13:32:34 +0000 (15:32 +0200)]
Mark esh-proc test as unstable

* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/pipeline-connection-type/last): Mark test as
unstable as it fails quite a lot.

2 years ago; * src/xterm.c (handle_one_xevent): Avoid compiler warning.
Eli Zaretskii [Sun, 21 Aug 2022 13:12:03 +0000 (16:12 +0300)]
; * src/xterm.c (handle_one_xevent): Avoid compiler warning.

2 years agoRename newly-added eol/bol functions to pos-eol/pos-bol
Lars Ingebrigtsen [Sun, 21 Aug 2022 12:04:52 +0000 (14:04 +0200)]
Rename newly-added eol/bol functions to pos-eol/pos-bol

* lisp/emacs-lisp/shortdoc.el (buffer):
* doc/lispref/positions.texi (Text Lines): Adjust.
* src/editfns.c (Fpos_bol): Rename from Fpos.
(Fpos_eol): Rename from Feol.

2 years agoMinor optimization to x_query_pointer_1
Po Lu [Sun, 21 Aug 2022 06:06:22 +0000 (14:06 +0800)]
Minor optimization to x_query_pointer_1

* src/xterm.c (x_query_pointer_1): Clear client pointer if it
disappeared.

2 years agoDon't use the system-file-manager icon in the toolbar
Lars Ingebrigtsen [Sat, 20 Aug 2022 10:42:02 +0000 (12:42 +0200)]
Don't use the system-file-manager icon in the toolbar

* lisp/term/x-win.el (x-gtk-stock-map):
* lisp/term/pgtk-win.el (x-gtk-stock-map): Don't use
n:system-file-manager, because it's larger than the other Gtk
icons in some themes (bug#56627).

2 years agoMake conf-javaprop-mode only claim that # lines are comments
Lars Ingebrigtsen [Sat, 20 Aug 2022 09:54:33 +0000 (11:54 +0200)]
Make conf-javaprop-mode only claim that # lines are comments

* lisp/textmodes/conf-mode.el (conf-javaprop-mode-syntax-table):
Make obsolete and remove syntax entries for // and /* (bug#49077),
because only # are comments in javaprop files.
(conf-javaprop-mode): Adjust doc string to just mention #
comments.

2 years agoTweak admin/emacs output
Lars Ingebrigtsen [Sat, 20 Aug 2022 09:12:16 +0000 (11:12 +0200)]
Tweak admin/emacs output

2 years agoImprove Tramp's manual
Michael Albinus [Sat, 20 Aug 2022 06:44:57 +0000 (08:44 +0200)]
Improve Tramp's manual

* doc/misc/tramp.texi (Frequently Asked Questions):
Improve recommendations for speeding up.

2 years agoFix typos in modus-themes.org
Protesilaos Stavrou [Sat, 20 Aug 2022 06:22:50 +0000 (09:22 +0300)]
Fix typos in modus-themes.org

* modus-themes.org (Option for inhibiting theme reload)
(Option for completion framework aesthetics, Advanced customization)
(Remap face with local value, Cycle through arbitrary colors)
(Custom Org emphasis faces, Note on git-gutter in Doom Emacs): Fix
typographic errors.

2 years agoFix crash when the keymap changes
Po Lu [Sat, 20 Aug 2022 02:32:09 +0000 (10:32 +0800)]
Fix crash when the keymap changes

* src/xterm.c (handle_one_xevent): Call
XkbRefreshKeyboardMapping first before trying to update the map.

2 years agoMove `while` syntax check from optimiser to macroexpand
Mattias Engdegård [Wed, 17 Aug 2022 18:29:27 +0000 (20:29 +0200)]
Move `while` syntax check from optimiser to macroexpand

* lisp/emacs-lisp/byte-opt.el (byte-optimize-while): Move check...
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): ...here.

2 years agoFix return value of help--key-description-fontified
Stefan Kangas [Fri, 19 Aug 2022 18:19:59 +0000 (20:19 +0200)]
Fix return value of help--key-description-fontified

This fixes a bug with warning about obsolete commands in
`command-execute', where we incorrectly showed empty parenthesis
instead of the empty string when there was no keybinding for the new
command.

* lisp/help.el (help--key-description-fontified): Return nil instead
of the empty string if KEYS argument is nil.
* test/lisp/help-tests.el (help--key-description-fontified): New test.
(with-substitute-command-keys-test): Fix indentation.

2 years agoDisplay new keybinding in obsolete command warning
Stefan Kangas [Fri, 19 Aug 2022 17:00:24 +0000 (19:00 +0200)]
Display new keybinding in obsolete command warning

* lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
* lisp/simple.el (command-execute): When warning about an obsolete
command, display the keybinding for the new command.

2 years ago* lisp/bookmark.el (bookmark-menu-heading): Delete face.
Stefan Kangas [Fri, 19 Aug 2022 16:24:42 +0000 (18:24 +0200)]
* lisp/bookmark.el (bookmark-menu-heading): Delete face.

2 years agoIgnore variable Info-fontify, deleted in 22.1
Stefan Kangas [Fri, 19 Aug 2022 16:18:32 +0000 (18:18 +0200)]
Ignore variable Info-fontify, deleted in 22.1

* lisp/info.el (Info-mode-hook): Don't obey variable Info-fontify,
deleted in Emacs 22.1.

2 years agoMake two compat aliases obsolete in cc-defs.el
Stefan Kangas [Fri, 19 Aug 2022 16:14:12 +0000 (18:14 +0200)]
Make two compat aliases obsolete in cc-defs.el

* lisp/progmodes/cc-defs.el (c-regexp-opt, c-regexp-opt-depth):
Make compat alias obsolete.

2 years ago; Delete not-useful comments referring to Emacs 19.
Stefan Kangas [Fri, 19 Aug 2022 15:59:13 +0000 (17:59 +0200)]
; Delete not-useful comments referring to Emacs 19.

2 years agoDelete two functions obsolete since Emacs 23
Stefan Kangas [Fri, 19 Aug 2022 15:17:41 +0000 (17:17 +0200)]
Delete two functions obsolete since Emacs 23

These were announced as removed in Emacs 28.1 NEWS, but apparently
never actually deleted: only their obsoletion warning was removed.
So the warnings were reintroduced in Emacs 28.2, and we now actually
delete them here instead.

* src/process.c (Fset_process_filter_multibyte)
(Fprocess_filter_multibyte_p): Delete functions obsolete since
Emacs 23.
(syms_of_process): Delete corresponding defsubrs.
* lisp/subr.el (process-filter-multibyte-p)
(set-process-filter-multibyte): Delete obsoletion.
* lisp/erc/erc-dcc.el (erc-dcc-server): Don't use obsolete functions.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 19 Aug 2022 15:30:18 +0000 (17:30 +0200)]
Merge from origin/emacs-28

f2c0fb2615 Resurrect obsoletion warning for two functions
9c0eec4ed8 * src/window.c (select_window): Fix assert for buffer = no...
16dfe04be2 Find libgccjit on macOS with Homebrew differently

# Conflicts:
# etc/NEWS

2 years agoResurrect obsoletion warning for two functions
Stefan Kangas [Fri, 19 Aug 2022 15:29:05 +0000 (17:29 +0200)]
Resurrect obsoletion warning for two functions

These were supposed to have been deleted, but never were.  Resurrect
their obsoletion warning and let's delete them in Emacs 29 instead.

* lisp/subr.el (process-filter-multibyte-p)
(set-process-filter-multibyte): Resurrect obsoletion warning.
* etc/NEWS: Don't announce their deletion.

2 years ago* src/window.c (select_window): Fix assert for buffer = non-active minibuffer
Alan Mackenzie [Fri, 19 Aug 2022 15:06:38 +0000 (15:06 +0000)]
* src/window.c (select_window): Fix assert for buffer = non-active minibuffer

2 years agoPrefer defvar-keymap in doc-view.el
Stefan Kangas [Fri, 19 Aug 2022 14:46:21 +0000 (16:46 +0200)]
Prefer defvar-keymap in doc-view.el

* lisp/doc-view.el (doc-view-mode-map, doc-view-minor-mode-map)
(doc-view-presentation-mode-map): Prefer defvar-keymap.

2 years agoImprove 'ns-read-file-name' docstring
Robert Pluim [Fri, 19 Aug 2022 14:01:22 +0000 (16:01 +0200)]
Improve 'ns-read-file-name' docstring

* src/nsfns.m (Fns_read_file_name): Use '-' instead of '_' when naming
args.

2 years agoMark only VS-16 as emoji
Robert Pluim [Wed, 17 Aug 2022 13:05:29 +0000 (15:05 +0200)]
Mark only VS-16 as emoji

* admin/unidata/blocks.awk: Only mark U+FE0F as belonging to the
'emoji' script.  (Bug#57072)

2 years ago; * src/editfns.c (Fline_beginning_position): Remove redundant parens.
Eli Zaretskii [Fri, 19 Aug 2022 13:55:19 +0000 (16:55 +0300)]
; * src/editfns.c (Fline_beginning_position): Remove redundant parens.

2 years agoFix underscores in argument names in ns-win
Lars Ingebrigtsen [Fri, 19 Aug 2022 13:37:35 +0000 (15:37 +0200)]
Fix underscores in argument names in ns-win

* lisp/term/ns-win.el (x-file-dialog): Don't use underscores in
argument names.

2 years agopython.el: Add completion-predicate symbol property to commands
Augusto Stoffel [Sat, 13 Aug 2022 16:10:14 +0000 (18:10 +0200)]
python.el: Add completion-predicate symbol property to commands

* lisp/progmodes/python.el: Add a completion-predicate property to
most commands defined in this file; some are only useful in
python-mode, others in inferior-python mode as well.  (Bug#53913)
(python-skeleton-define, python-define-auxiliary-skeleton): Add
appropriate completion-predicate properties.
(python--completion-predicate): New function.

2 years agoAdd new functions eol and bol
Lars Ingebrigtsen [Fri, 19 Aug 2022 13:22:29 +0000 (15:22 +0200)]
Add new functions eol and bol

* doc/lispref/positions.texi (Text Lines): Document them
* lisp/emacs-lisp/shortdoc.el: Mention them, and also the
buffer/line predicates.

* src/editfns.c (bol): New function.
(Fbol): New defun.
(Fline_beginning_position): Use `bol'.
(eol): New function.
(Feol): New defun.
(Fline_end_position): Use `eol'.

2 years agopython-mode: Remove special outline-heading-end-regexp
Augusto Stoffel [Sat, 13 Aug 2022 16:55:48 +0000 (18:55 +0200)]
python-mode: Remove special outline-heading-end-regexp

It doesn't work well with the new type annotation syntax introduced in
Python 3.5.

* lisp/progmodes/python.el (python-mode): Remove buffer-local setting
of outline-heading-end-regexp.  (Bug#53913)