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

2 years agopython.el: Adjustments to Flymake backend
Augusto Stoffel [Sat, 13 Aug 2022 15:39:57 +0000 (17:39 +0200)]
python.el: Adjustments to Flymake backend

* lisp/progmodes/python (python-flymake-command): Advertise possiblity
to use pylint.
(python-flymake-command-output-pattern): Make compatible with recent
versions of pyflakes.  (Bug#53913)

2 years agopython-check-command: Don't use absolute file names
Augusto Stoffel [Sat, 13 Aug 2022 15:04:17 +0000 (17:04 +0200)]
python-check-command: Don't use absolute file names

Absolute executable file names are incompatible with Tramp and
packages that switch between virtualenvs.

* lisp/progmodes/python.el (python-check-command): Don't use absolute
file names.  (Bug#53913)

2 years agoFix mis-spelling of c-awk-old-ByLL and really make it buffer-local
Paul A. Patience [Fri, 19 Aug 2022 12:04:31 +0000 (14:04 +0200)]
Fix mis-spelling of c-awk-old-ByLL and really make it buffer-local

* lisp/progmodes/cc-awk.el (c-awk-old-ByLL): Make the
correct variable buffer-local (bug#57294).

Copyright-paperwork-exempt: yes

2 years ago* lisp/edmacro.el (edmacro-sanitize-for-string): Fix condition.
Mattias Engdegård [Fri, 19 Aug 2022 11:27:53 +0000 (13:27 +0200)]
* lisp/edmacro.el (edmacro-sanitize-for-string): Fix condition.

This is of little consequence in practice since the input is always a
vector of keys representing a prefix, where bit 7 isn't likely to be
set when higher bits are set, but it silences a (justified) warning.

2 years agoFix region-extract-function compilation warning
Lars Ingebrigtsen [Thu, 18 Aug 2022 21:05:17 +0000 (23:05 +0200)]
Fix region-extract-function compilation warning

* lisp/simple.el (region-extract-function): Clean up the logic
slightly to avoid a warning.

2 years agoFix ns-win.el (x-file-dialog) declaration
Lars Ingebrigtsen [Thu, 18 Aug 2022 20:58:39 +0000 (22:58 +0200)]
Fix ns-win.el (x-file-dialog) declaration

* lisp/term/ns-win.el (x-file-dialog): Give the function the same
signature here as other definitions.

2 years agoUpdate the modus-themes to their 2.6.0 version
Protesilaos Stavrou [Fri, 19 Aug 2022 09:40:47 +0000 (12:40 +0300)]
Update the modus-themes to their 2.6.0 version

* doc/misc/modus-themes.org (Sample configuration with and without
use-package): Add missing parenthesis to the manual.
(Option for completion framework aesthetics)
(Custom Org emphasis faces): Minor rewording.
(Custom hl-todo colors): Add instructions on how to add user-level
support for the 'solaire' package, as the modus-themes no longer
support it.
(Full support for packages or face groups): Remove 'solaire' from the
list of supported packages.
(Note on git-gutter in Doom Emacs)
(Note on php-mode multiline comments)
(Note on highlight-parentheses.el): Clarify need to re-load the
theme for changes to take effect.
(Acknowledgements): Update acknowledgements.

* etc/themes/modus-themes.el (modus-themes-faces): Fix typo.
(modus-themes--version): Reword docstring and update to current value.
(modus-themes--weight): Stop using deprecated alias of symbol.

* etc/themes/modus-operandi-theme.el:
* etc/themes/modus-vivendi-theme.el: Bump version number.

Detailed release notes:
<https://protesilaos.com/codelog/2022-08-19-modus-themes-2-6-0/>.

2 years agoFind libgccjit on macOS with Homebrew differently
Gerd Möllmann [Fri, 19 Aug 2022 08:52:52 +0000 (10:52 +0200)]
Find libgccjit on macOS with Homebrew differently

* configure.ac (MAC_LIBS): Find libgccjit's directory slightly
differently for brew installations.

2 years ago* src/pdumper.c (dump_native_comp_unit): Error if CU is not fixed-up
Andrea Corallo [Fri, 19 Aug 2022 08:21:38 +0000 (10:21 +0200)]
* src/pdumper.c (dump_native_comp_unit): Error if CU is not fixed-up

2 years ago* src/alloc.c (pure_alloc): Warn for pure space overflow
Andrea Corallo [Thu, 18 Aug 2022 14:41:26 +0000 (16:41 +0200)]
* src/alloc.c (pure_alloc): Warn for pure space overflow

2 years ago* src/pdumper.c (Fdump_emacs_portable): Check and warn for pure space overflow
Andrea Corallo [Wed, 17 Aug 2022 20:48:59 +0000 (22:48 +0200)]
* src/pdumper.c (Fdump_emacs_portable): Check and warn for pure space overflow

2 years agoSpeed up image-dired-display-image
Morgan Smith [Thu, 18 Aug 2022 23:51:42 +0000 (01:51 +0200)]
Speed up image-dired-display-image

* lisp/image-dired.el (image-dired-display-image): Open file literally
so we don't run image-mode twice.  (Bug#57281)

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

e64d811b51 Improve image-mode-as-hex docstring

2 years agoFix more calls to XQueryPointer for MPX
Po Lu [Fri, 19 Aug 2022 02:06:29 +0000 (10:06 +0800)]
Fix more calls to XQueryPointer for MPX

* src/xterm.c (x_dnd_begin_drag_and_drop): Set DND devices to -1
if XI2 is not supported on the given display.
(x_query_pointer): Make wrapper around x_query_pointer_1.
(x_query_pointer_1): Split off most of x_query_pointer to this
function.  Allow a specific client pointer to be specified.
(x_dnd_update_tooltip_now, x_dnd_update_state): Use
x_query_pointer_1 with the right device instead of
XQueryPointer.

2 years agoImprove obsoletion of image-transform-fit-to-{height,width}
Stefan Kangas [Thu, 18 Aug 2022 21:47:47 +0000 (23:47 +0200)]
Improve obsoletion of image-transform-fit-to-{height,width}

* lisp/image-mode.el (image-transform-fit-to-height)
(image-transform-fit-to-width): Change obsoletion to refer to new
command 'image-transform-fit-to-window'.

2 years ago* Rename `comp--typeof-builtin-types'
Andrea Corallo [Thu, 18 Aug 2022 21:41:39 +0000 (23:41 +0200)]
* Rename `comp--typeof-builtin-types'

* lisp/emacs-lisp/comp-cstr.el (comp--typeof-builtin-types): Rename.
(comp-normalize-valset, comp-common-supertype-2): Update.

2 years ago* lisp/emacs-lisp/comp-cstr.el (comp--all-builtin-types): Remove
Andrea Corallo [Thu, 18 Aug 2022 21:35:33 +0000 (23:35 +0200)]
* lisp/emacs-lisp/comp-cstr.el (comp--all-builtin-types): Remove

2 years agoAdjust the environment name for the minted package
Arash Esbati [Thu, 18 Aug 2022 20:55:18 +0000 (22:55 +0200)]
Adjust the environment name for the minted package

* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Fix
the name of the environment which can contain a \label macro.

2 years agoImprove image-mode-as-hex docstring
Stefan Kangas [Thu, 18 Aug 2022 18:13:34 +0000 (20:13 +0200)]
Improve image-mode-as-hex docstring

* lisp/image-mode.el: Fix typos.
(image-mode-as-hex): Doc fix; say that it uses 'hexl-mode' and reflow.

2 years agoDo interactive mode tagging in image-mode.el
Stefan Kangas [Thu, 18 Aug 2022 17:58:39 +0000 (19:58 +0200)]
Do interactive mode tagging in image-mode.el

* lisp/image-mode.el (image-forward-hscroll)
(image-backward-hscroll, image-next-line, image-previous-line)
(image-scroll-up, image-scroll-down, image-scroll-left)
(image-scroll-right, image-bol, image-eol, image-bob, image-eob)
(image-mode-fit-frame, image-kill-buffer, image-next-file)
(image-previous-file, image-mode-copy-file-name-as-kill)
(image-mode-mark-file, image-mode-unmark-file)
(image-transform-set-percent, image-transform-set-scale)
(image-transform-fit-to-height, image-transform-fit-to-width)
(image-transform-fit-both, image-transform-fit-to-window)
(image-transform-set-rotation, image-transform-set-smoothing)
(image-transform-original, image-transform-reset): Add interactive tag
for image-mode.

2 years agoMake toggling between image, hex and text more consistent
Stefan Kangas [Thu, 18 Aug 2022 16:46:10 +0000 (18:46 +0200)]
Make toggling between image, hex and text more consistent

* lisp/image-mode.el (image-toggle-hex-display, image-toggle-display):
Ensure commands work correctly also in `hexl-mode'.
(image-mode-to-text):
(image-mode-as-hex, image-mode-as-text): Enable image-minor-mode also
in hexl-mode, which adds the "C-c C-x" keybinding for easier toggling.

2 years ago; * lisp/image-mode.el (image-minor-mode): Reflow docstring.
Stefan Kangas [Thu, 18 Aug 2022 16:06:56 +0000 (18:06 +0200)]
; * lisp/image-mode.el (image-minor-mode): Reflow docstring.

2 years agoNew command image-transform-set-percent
Stefan Kangas [Thu, 28 Oct 2021 01:36:28 +0000 (03:36 +0200)]
New command image-transform-set-percent

* lisp/image-mode.el (image-transform-set-percent): New command.
(image-mode-map): Bind above new command to "s p".
* doc/emacs/files.texi (Image Mode): Document it.

2 years agoPrefer defvar-keymap in image-mode.el
Stefan Kangas [Thu, 18 Aug 2022 15:23:03 +0000 (17:23 +0200)]
Prefer defvar-keymap in image-mode.el

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

2 years ago; * lisp/image-mode.el: Delete commented out image-transform-mode.
Stefan Kangas [Thu, 18 Aug 2022 15:29:53 +0000 (17:29 +0200)]
; * lisp/image-mode.el: Delete commented out image-transform-mode.

This mode was added in 2010 but never implemented.  It was
subsequently commented out in 2012.

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

ef1e68f11d * lisp/image-mode.el (image-mode-as-hex): Fix toggle instr...
dc0fce3a7d ; lisp/image-mode.el: Fix typo.
254ba1d3e5 * lisp/image-mode.el: Improve commentary.
ac43ac1af9 cl-reduce doc string improvement

2 years ago* lisp/image-mode.el (image-mode-as-hex): Fix toggle instructions.
Stefan Kangas [Thu, 18 Aug 2022 16:41:18 +0000 (18:41 +0200)]
* lisp/image-mode.el (image-mode-as-hex): Fix toggle instructions.

2 years agoFix encoding problem in tramp-sh.el
Michael Albinus [Thu, 18 Aug 2022 16:30:35 +0000 (18:30 +0200)]
Fix encoding problem in tramp-sh.el

* lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy):
Compute inline coding only if needed.

2 years ago* doc/misc/cl.texi (Macro Bindings): Fix bug#57263
Stefan Monnier [Thu, 18 Aug 2022 16:28:26 +0000 (12:28 -0400)]
* doc/misc/cl.texi (Macro Bindings): Fix bug#57263

Update `cl-symbol-macrolet` according to the change in response to bug#26073.

2 years ago; lisp/image-mode.el: Fix typo.
Stefan Kangas [Thu, 18 Aug 2022 15:50:13 +0000 (17:50 +0200)]
; lisp/image-mode.el: Fix typo.

2 years ago* lisp/image-mode.el: Improve commentary.
Stefan Kangas [Thu, 18 Aug 2022 15:36:54 +0000 (17:36 +0200)]
* lisp/image-mode.el: Improve commentary.

2 years agoFix string-to-syntax signature in comp-known-type-specifiers
Mattias Engdegård [Thu, 18 Aug 2022 15:25:41 +0000 (17:25 +0200)]
Fix string-to-syntax signature in comp-known-type-specifiers

* lisp/emacs-lisp/comp.el (comp-known-type-specifiers):
`string-to-syntax` can return nil.

2 years ago* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix some type
Andrea Corallo [Thu, 18 Aug 2022 15:09:36 +0000 (17:09 +0200)]
* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix some type

2 years agoMore non-nil-returning functions in source optimisation
Mattias Engdegård [Thu, 18 Aug 2022 10:33:40 +0000 (12:33 +0200)]
More non-nil-returning functions in source optimisation

This change was partially generated and mechanically cross-validated
with function type information from comp-known-type-specifiers in
comp.el.

* lisp/emacs-lisp/byte-opt.el (byte-compile-trueconstp):
Extend list of functions and fix a typo (logxor).

2 years agoCopy-edit doc strings and comments wrt bignum and fixnum
Mattias Engdegård [Thu, 18 Aug 2022 10:08:24 +0000 (12:08 +0200)]
Copy-edit doc strings and comments wrt bignum and fixnum

Don't say that a value is a fixnum if small enough and a bignum
otherwise, because that is now how Lisp integers always work,
and we generally don't expose the fixnum/bignum difference to the user
unless really necessary.

* src/charset.c (Fencode_char):
* src/editfns.c (Fuser_uid, Fuser_real_uid, Fgroup_gid)
(Fgroup_real_gid, Femacs_pid):
* src/font.c (Ffont_variation_glyphs):
* src/process.c (Fprocess_id):
Edit doc strings.
* src/pgtkselect.c:
* src/xselect.c: Edit comments.

2 years ago; Fix a typo in autoload.el
Eli Zaretskii [Thu, 18 Aug 2022 13:30:32 +0000 (16:30 +0300)]
; Fix a typo in autoload.el

* lisp/obsolete/autoload.el (update-directory-autoloads): Fix
obsolescence version.  (Bug#57276)

2 years agoFix Python indentation of block continuation
kobarity [Thu, 18 Aug 2022 13:16:08 +0000 (15:16 +0200)]
Fix Python indentation of block continuation

* lisp/progmodes/python.el (python-indent--calculate-indentation):
Fix indentation of :after-backslash-block-continuation.

* test/lisp/progmodes/python-tests.el
(python-indent-after-backslash-6): New test (bug#57262).

2 years agoMake GEN message from loaddefs-generate nicer
Lars Ingebrigtsen [Thu, 18 Aug 2022 13:12:55 +0000 (15:12 +0200)]
Make GEN message from loaddefs-generate nicer

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Shorten the
informational GEN file relative to the stated directory
(bug#57265).  This makes the message nicer for ELPA packages.

2 years agocl-reduce doc string improvement
Colin Woodbury [Thu, 18 Aug 2022 13:06:56 +0000 (15:06 +0200)]
cl-reduce doc string improvement

* lisp/emacs-lisp/cl-seq.el (cl-reduce): Explain what happens when
using :from-end (bug#57273).

2 years agoRebuild the Emacs executable if loaddefs.el has changed
Gerd Möllmann [Thu, 18 Aug 2022 12:44:11 +0000 (14:44 +0200)]
Rebuild the Emacs executable if loaddefs.el has changed

* Makefile.in (src-depending-on-lisp): Ensure that we check
whether we need to rebuild the Emacs executable if loaddefs.el has
been updated.

2 years agoImprove update-directory-autoloads deprecation message
Stefan Kangas [Thu, 18 Aug 2022 11:36:46 +0000 (13:36 +0200)]
Improve update-directory-autoloads deprecation message

* lisp/obsolete/autoload.el (update-directory-autoloads): Improve
deprecation message.  (Bug#57276)

2 years agoImprove cryptic syntax switch message in re-builder
Stefan Kangas [Thu, 18 Aug 2022 11:17:11 +0000 (13:17 +0200)]
Improve cryptic syntax switch message in re-builder

* lisp/emacs-lisp/re-builder.el (reb-restart-font-lock): Move message
from here...
* lisp/emacs-lisp/re-builder.el (reb-change-syntax): ...to here.
Change it to be less cryptic.

2 years ago* lisp/loadup.el: Always fix-up all loaded compilation units
Andrea Corallo [Wed, 17 Aug 2022 20:47:05 +0000 (22:47 +0200)]
* lisp/loadup.el: Always fix-up all loaded compilation units

2 years ago* Expose `comp-loaded-comp-units-h'
Andrea Corallo [Wed, 17 Aug 2022 20:29:33 +0000 (22:29 +0200)]
* Expose `comp-loaded-comp-units-h'

* src/comp.c : remove 'all_loaded_comp_units_h'.
(syms_of_comp): Define `comp-loaded-comp-units-h'.
(register_native_comp_unit, Fnative_elisp_load): Use it.