1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

159262 commits

Author SHA1 Message Date
Mattias Engdegård
965fad0d36 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.
2022-08-21 16:26:59 +02:00
Mattias Engdegård
563ec6abc4 ; Complete renaming to pos-bol and pos-eol 2022-08-21 16:18:03 +02:00
Mattias Engdegård
f57297c8b2 * lisp/emacs-lisp/shortdoc.el (buffer): Add missing functions
Add preceding-char and char-before because following-char and
char-after were already there.
2022-08-21 16:18:03 +02:00
Gerd Möllmann
a6ccb82fda Fix src-depending-on-lisp target
* Makefile.in (src-depending-on-lisp): Pass BIN_DESTDIR and
ELN_DESTDIR to make -C src (bug#57309).
2022-08-21 15:57:40 +02:00
Lars Ingebrigtsen
ae2199258f 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.
2022-08-21 15:32:34 +02:00
Eli Zaretskii
982bd69520 ; * src/xterm.c (handle_one_xevent): Avoid compiler warning. 2022-08-21 16:12:03 +03:00
Lars Ingebrigtsen
2614e53216 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.
2022-08-21 14:04:52 +02:00
Po Lu
8d4789c072 Minor optimization to x_query_pointer_1
* src/xterm.c (x_query_pointer_1): Clear client pointer if it
disappeared.
2022-08-21 14:06:22 +08:00
Lars Ingebrigtsen
07c04da010 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).
2022-08-20 12:42:02 +02:00
Lars Ingebrigtsen
3312710fd6 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.
2022-08-20 11:54:33 +02:00
Lars Ingebrigtsen
84082a0e84 Tweak admin/emacs output 2022-08-20 11:12:16 +02:00
Michael Albinus
428950fc3c Improve Tramp's manual
* doc/misc/tramp.texi (Frequently Asked Questions):
Improve recommendations for speeding up.
2022-08-20 08:44:57 +02:00
Protesilaos Stavrou
3173eb53aa
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.
2022-08-20 09:22:50 +03:00
Po Lu
b2f9c4c6d4 Fix crash when the keymap changes
* src/xterm.c (handle_one_xevent): Call
XkbRefreshKeyboardMapping first before trying to update the map.
2022-08-20 10:32:09 +08:00
Mattias Engdegård
9a7b3673e0 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.
2022-08-19 21:23:48 +02:00
Stefan Kangas
a936335aa0 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.
2022-08-19 20:36:12 +02:00
Stefan Kangas
935e4da0e1 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.
2022-08-19 19:00:24 +02:00
Stefan Kangas
021ae515f9 * lisp/bookmark.el (bookmark-menu-heading): Delete face. 2022-08-19 18:24:42 +02:00
Stefan Kangas
ec62bb7799 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.
2022-08-19 18:18:32 +02:00
Stefan Kangas
da635838f2 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.
2022-08-19 18:14:41 +02:00
Stefan Kangas
b7d6ebff07 ; Delete not-useful comments referring to Emacs 19. 2022-08-19 18:05:51 +02:00
Stefan Kangas
043ae1f53a 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.
2022-08-19 17:57:42 +02:00
Stefan Kangas
d0bb333efc 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
2022-08-19 17:30:18 +02:00
Stefan Kangas
f2c0fb2615 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.
2022-08-19 17:29:05 +02:00
Alan Mackenzie
9c0eec4ed8 * src/window.c (select_window): Fix assert for buffer = non-active minibuffer 2022-08-19 15:06:38 +00:00
Stefan Kangas
986440aaad 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.
2022-08-19 16:48:53 +02:00
Robert Pluim
7c793c55cf Improve 'ns-read-file-name' docstring
* src/nsfns.m (Fns_read_file_name): Use '-' instead of '_' when naming
args.
2022-08-19 16:05:40 +02:00
Robert Pluim
ddbab83070 Mark only VS-16 as emoji
* admin/unidata/blocks.awk: Only mark U+FE0F as belonging to the
'emoji' script.  (Bug#57072)
2022-08-19 16:05:40 +02:00
Eli Zaretskii
6a1e3e8684 ; * src/editfns.c (Fline_beginning_position): Remove redundant parens. 2022-08-19 16:55:19 +03:00
Lars Ingebrigtsen
962cb44eea Fix underscores in argument names in ns-win
* lisp/term/ns-win.el (x-file-dialog): Don't use underscores in
argument names.
2022-08-19 15:37:43 +02:00
Augusto Stoffel
705c45041f 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.
2022-08-19 15:36:40 +02:00
Lars Ingebrigtsen
f117b5df4d 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'.
2022-08-19 15:22:36 +02:00
Augusto Stoffel
503112d1f0 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)
2022-08-19 14:59:27 +02:00
Augusto Stoffel
275cef9e06 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)
2022-08-19 14:59:27 +02:00
Augusto Stoffel
ec347aec0f 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)
2022-08-19 14:59:27 +02:00
Paul A. Patience
6fca17270a 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
2022-08-19 14:04:31 +02:00
Mattias Engdegård
e5695faec4 * 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.
2022-08-19 13:41:31 +02:00
Lars Ingebrigtsen
054f553b9c Fix region-extract-function compilation warning
* lisp/simple.el (region-extract-function): Clean up the logic
slightly to avoid a warning.
2022-08-19 13:05:46 +02:00
Lars Ingebrigtsen
088171e053 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.
2022-08-19 13:05:46 +02:00
Protesilaos Stavrou
dd97bff219
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/>.
2022-08-19 12:40:47 +03:00
Gerd Möllmann
16dfe04be2 Find libgccjit on macOS with Homebrew differently
* configure.ac (MAC_LIBS): Find libgccjit's directory slightly
differently for brew installations.
2022-08-19 11:02:20 +02:00
Andrea Corallo
5dc2745939 * src/pdumper.c (dump_native_comp_unit): Error if CU is not fixed-up 2022-08-19 10:22:32 +02:00
Andrea Corallo
9297a9c45e * src/alloc.c (pure_alloc): Warn for pure space overflow 2022-08-19 10:09:38 +02:00
Andrea Corallo
095ea82120 * src/pdumper.c (Fdump_emacs_portable): Check and warn for pure space overflow 2022-08-19 10:09:38 +02:00
Morgan Smith
8f1d0295bc 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)
2022-08-19 07:37:05 +02:00
Stefan Kangas
1a9175a0de Merge from origin/emacs-28
e64d811b51 Improve image-mode-as-hex docstring
2022-08-19 06:30:21 +02:00
Po Lu
b90192b50e 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.
2022-08-19 10:06:29 +08:00
Stefan Kangas
f1f2bbbc08 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'.
2022-08-18 23:47:47 +02:00
Andrea Corallo
0bd96806ef * Rename `comp--typeof-builtin-types'
* lisp/emacs-lisp/comp-cstr.el (comp--typeof-builtin-types): Rename.
(comp-normalize-valset, comp-common-supertype-2): Update.
2022-08-18 23:41:39 +02:00
Andrea Corallo
715f1ebea3 * lisp/emacs-lisp/comp-cstr.el (comp--all-builtin-types): Remove 2022-08-18 23:36:19 +02:00