1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-28 19:42:02 +00:00
Commit Graph

150719 Commits

Author SHA1 Message Date
Eli Zaretskii
cf95962092 ; * doc/lispref/processes.texi (Filter Functions): Fix last change. 2021-10-14 14:51:04 +03:00
Lars Ingebrigtsen
1ad4ad0c11 Document the t value for set-process-filter in the manual
* doc/lispref/processes.texi (Filter Functions): Mention what t
means (bug#51177).
2021-10-14 13:10:05 +02:00
Michael Albinus
b014efa1e5 * doc/misc/tramp.texi (Frequently Asked Questions): Add reference
to ELPA Installation node.
2021-10-14 11:50:47 +02:00
Eli Zaretskii
b9b78b2631 Fix Help functions for clicks on tool bar and tab bar
* lisp/mouse.el (mouse-minibuffer-check): Don't assume posn-window
returns a window.  (Bug#5199)
2021-10-14 12:29:43 +03:00
Eli Zaretskii
74deafe921 ; * etc/DEBUG: Add a section about debugging native-compilation. 2021-10-14 12:14:14 +03:00
Martin Rudalics
8153f70b9c In make_lispy_position fix Bug#50993 in rudimentary fashion
* src/keyboard.c (make_lispy_position): Do not set posn to
tool- or tab-bar when track_mouse is enabled (Bug#50993).
2021-10-14 10:39:27 +02:00
Dmitry Gutov
0aa52e94f3 Mark vc-switch-backend as obsolete
* etc/NEWS: Mention the change.

* lisp/vc/vc.el (vc-switch-backend): Mark as obsolete (bug#50344).
(vc-transfer-file): Wrap the calls in 'with-suppressed-warnings'.
2021-10-14 02:29:27 +03:00
Yan
568e479c59 Add missing parentheses in the Emacs manual
* doc/emacs/maintaining.texi (Xref Commands): Add missing
parentheses (bug#51195).

Copyright-paperwork-exempt: yes
2021-10-14 01:28:47 +02:00
Stefan Kangas
44ce50b0df Improve tooltip of mode-line-position again
* lisp/bindings.el (mode-line-position): Improve tooltip again.
This change was discussed in
https://lists.gnu.org/r/emacs-devel/2021-10/msg00952.html
2021-10-14 00:27:49 +02:00
Philip Kaludercic
9b1adf8b4f Use browse-url-button-regexp for rcirc-url-regexp
* rcirc.el (rcirc-url-regexp): Copy improved regexp from browse-url
2021-10-13 21:49:28 +02:00
Juri Linkov
9ed53b022d * lisp/help.el (help--analyze-key): Avoid mouse-set-point for non-mouse events
(bug#51173)
2021-10-13 22:17:27 +03:00
Eli Zaretskii
efb1cd7fa9 ; * etc/charsets/README: Update the format documentation. 2021-10-13 20:02:23 +03:00
Michael Albinus
cc796b7409 Tramp doc cleanup
* doc/misc/tramp.texi (Overview, Bug Reports)
(Frequently Asked Questions): Stylistic changes.
(Bug Reports): Mention tramp buffers appended to bug report.
2021-10-13 18:59:10 +02:00
Lars Ingebrigtsen
a338d46060 Make emacs-lisp-byte-compile-and-load load the .elc file again
* lisp/progmodes/elisp-mode.el (emacs-lisp-byte-compile-and-load):
Load the compiled file instead of the source (bug#51180).
2021-10-13 13:41:32 +02:00
Peter Münster
3eac7dc780 Fix point movement in image-dired
* lisp/image-dired.el (image-dired-thumb-file-marked-p): Don't
move point in associated dired buffer.
(image-dired-delete-marked): Revert "Fix deletion of associated image"
because it was wrong and introduced another problem (bug#51152).
2021-10-13 13:41:32 +02:00
Stefan Kangas
4e9452a399 Improve shortdoc for vector
* lisp/emacs-lisp/shortdoc.el (vector): Improve shortdoc with titles.
Add mapc.  Fix typo where 'seq-reduce' is incorrectly written as
'reduce'.
2021-10-13 05:04:34 +02:00
Paul Eggert
f223ac6ef9 Fix test bug when calloc returns null
* test/src/emacs-module-resources/mod-test.c (Fmod_test_userptr_make):
Don’t dump core if calloc returns null and signal_errno returns.
2021-10-12 17:22:07 -07:00
Paul Eggert
ebeaa54f19 Pacify GCC 11 -fanalyzer on x86-64
* src/buffer.c (fix_overlays_before):
Redo slightly to work around GCC bug 102692
<https://gcc.gnu.org/bugzilla//show_bug.cgi?id=102692>.
2021-10-12 11:54:32 -07:00
Gregory Heytings
56d1f42f30 Improve handling of non-character events in input methods
* lisp/international/quail.el (quail-add-unread-command-events):
Handle non-vector event arguments.  Fixes bug#51118.
2021-10-12 19:50:41 +03:00
João Távora
3fbe6fd367 ; Fix mistakes in last doc rewording about shorthands
bug#51089

1. The 'punctuation' syntax class is actually empty in Emacs Lisp.
   The class used in the implementation is 'symbol constituents';

2) The prefix to escape shorthands is '#_' together, not '#' or '_'.

* doc/lispref/symbols.texi (Shorthands): Fix exception.
2021-10-12 16:58:01 +01:00
Eli Zaretskii
66b8dfd060 ; Fix last change related to shorthands
* src/lread.c (read1): Minor stylistic fixes of the last change,
including the wording of the comment.

* doc/lispref/symbols.texi (Shorthands): Fix wording and typos.
2021-10-12 16:20:47 +03:00
Martin Rudalics
3832b983cf In Fdelete_other_windows_internal fix new total window sizes (Bug#51007)
* src/window.c (Fdelete_other_windows_internal): Assign the
new total sizes of windows _after_ the new window configuration
is in place (Bug#51007).
2021-10-12 09:25:57 +02:00
Stephen Gildea
5deb0ec14f * lisp/mh-e/mh-show.el (mh-junk-whitelist): Custom obsolescence message. 2021-10-11 18:20:36 -07:00
João Távora
cf1409db71 Don't apply shorthands to punctuation-only symbols (bug#51089)
This includes symbols used for arithmetic functions such as -, /=,
etc.  Using "-" or "/=" is still possible but doing so won't shadow
those functions.

* doc/lispref/symbols.texi (Shorthand, Exceptions): New
subsubsection.

* src/lread.c (read1): Exempt punctionation-only symbols from
oblookup_considering_shorthand.

* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Tweak test.
2021-10-11 22:29:16 +01:00
Stefan Kangas
b3d0f53b29 * lisp/progmodes/python.el: Bump package version to 0.28. 2021-10-11 21:24:38 +02:00
Stefan Kangas
392d6708a5 Fontify "print" and "exec" as functions in python-mode
This change was first made on master, but on closer consideration it
is better to fix this bug already in Emacs 28.1.

* lisp/progmodes/python.el (python-font-lock-keywords-level-2):
Fontify "print" and "exec" as functions, which is the case in
Python 3.  (Bug#43298)  Do not merge to master.
2021-10-11 21:24:38 +02:00
Juri Linkov
47e09d1855 Copy parent face attributes to tab-line-tab-current instead of inheriting face
* lisp/tab-line.el (tab-line-tab-current): Don't inherit face from
'tab-line-tab' to not inherit the face attribute :height from 'tab-line',
because :height of mouse-face is added to the base face.
Copy here most of the parent face attributes (bug#50798).
2021-10-11 21:27:50 +03:00
Martin Rudalics
d96f8b22c0 Another fix for 'ibuffer-shrink-to-fit' (Bug#7218, Bug#51029)
* lisp/ibuffer.el (ibuffer-shrink-to-fit): Fit window only if its
buffer is in 'ibuffer-mode' (Bug#7218, Bug#51029).
2021-10-11 18:58:10 +02:00
Michael Albinus
665a184f87 Backport: * doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.
(cherry picked from commit 978e5339e0)
2021-10-11 18:42:56 +02:00
Paul Eggert
0d374b1b83 Work around GCC bug 102671
This is for --enable-gcc-warnings on GCC 11.2.1.
* src/window.c, src/timefns.c: Disable -Wanalyzer-null-dereference.
2021-10-11 09:24:56 -07:00
Amin Bandali
ac06608878
Release ERC 5.4
* lisp/erc/erc.el (Version, erc-version): Bump to 5.4.
(customize-package-emacs-version-alist): Add entry for 5.4.
2021-10-11 10:29:35 -04:00
Amin Bandali
a1a589d07b
* etc/ERC-NEWS: Announce ERC's addition to GNU ELPA. 2021-10-11 10:25:08 -04:00
Amin Bandali
6c7947f0a1
* etc/ERC-NEWS: Fix outline level for the recent additions. 2021-10-11 10:13:56 -04:00
Amin Bandali
c480b68644
Add ERC entries for 'customize-package-emacs-version-alist'
* lisp/erc/erc.el (customize-package-emacs-version-alist): Add entries
for existing ERC versions.
2021-10-11 10:04:44 -04:00
Dmitry Gutov
4afff515c8 Expand the full file name
* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Expand the full file name, not just the local part (bug#51112).
2021-10-11 16:43:55 +03:00
Stefan Kangas
36a485a1af
Obsolete XEmacs compat convention in 'erc-button-press-button'
* lisp/erc/erc-button.el (erc-button-press-button): Advertise new
calling convention without XEmacs compatibility.
2021-10-11 09:39:17 -04:00
F. Jason Park
31d60488ac
Backport: Add ERC version to protocol log
* lisp/erc/erc.el (erc-toggle-debug-irc-protocol): Include the erc
version in the debug logs (bug#51107).

(cherry picked from commit 1341134620)
2021-10-11 09:29:01 -04:00
Eli Zaretskii
1a1b206a8b Adapt the recent 'num_processors' change to MS-Windows
* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_nproc): Omit nproc.

* src/w32.c (num_processors): New function.
* src/w32proc.c (Fw32_get_nproc): Remove.
2021-10-11 15:56:31 +03:00
Stefan Kangas
7cb4637923 Minor fix to clarify a sentence in emacs-lisp-intro
* doc/lispintro/emacs-lisp-intro.texi (Simple Extension): Add the word
"that" for clarity.  (Bug#43965)
2021-10-11 14:44:13 +02:00
Basil L. Contovounesios
ab60144ea3 ; Pacify recent shorthand unused lexarg warnings. 2021-10-11 11:55:40 +01:00
Lars Ingebrigtsen
e9df86004f Make tty-run-terminal-initialization load the .elc file (if any)
* lisp/faces.el (tty-run-terminal-initialization):
`locate-library' may have found the .el.gz file (bug#51116).
2021-10-11 11:22:05 +02:00
Lars Ingebrigtsen
07edc28bdb Fix ert errors when there's a test that binds `debug-on-error'
* lisp/emacs-lisp/ert.el (ert--run-test-internal): Don't infloop
on errors when signalling errors (bug#51131).
2021-10-11 11:14:26 +02:00
Paul Eggert
96278de8ac New function num-processors
This addresses a FIXME comment in lisp/emacs-lisp/comp.el,
relating to the number of subsidiary processes used by
comp-run-async-workers in native compilation.
* admin/merge-gnulib (GNULIB_MODULES): Add nproc.
* doc/lispref/processes.texi (Process Information), etc/NEWS:
Document num-processors.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/nproc.c, lib/nproc.h, m4/nproc.m4:
New files, copied from Gnulib by admin/merge-gnulib.
* lisp/emacs-lisp/comp.el (w32-get-nproc): Remove decl.
(comp-effective-async-max-jobs): Use num-processors.
* src/process.c: Include nproc.h.
(Fnum_processors): New function.
(syms_of_process): Define ‘all’, ‘current’, ‘num-processors’.
* src/w32proc.c (Fw32_get_nproc): Add FIXME comment.
* test/src/process-tests.el (process-num-processors): New test.
2021-10-10 14:00:26 -07:00
Juri Linkov
575e626105 Add symbol property 'save-some-buffers-function' (bug#46374)
* lisp/files.el (save-some-buffers-root): Put non-nil
symbol property 'save-some-buffers-function'.
(save-some-buffers): Check pred for the
symbol property 'save-some-buffers-function'.
(save-some-buffers-default-predicate): Mention
symbol property 'save-some-buffers-function'.
2021-10-10 20:38:12 +03:00
Juri Linkov
a3e10af95c Keep reading when typed RET in read-char-from-minibuffer and y-or-n-p
* lisp/subr.el (read-char-from-minibuffer-map):
Remap exit-minibuffer to read-char-from-minibuffer-insert-other.
(y-or-n-p-map): Remap 'exit' to y-or-n-p-insert-other.
(y-or-n-p): Don't mention RET in docstring.  (Bug#51101)
2021-10-10 20:31:15 +03:00
David M. Koppelman
013e3be832 * lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.
(Bug#51101)
2021-10-10 20:27:29 +03:00
Eli Zaretskii
ae61d7a57d Fix point positioning on mouse clicks with non-zero line-height
* src/xdisp.c (move_it_to): After passing a newline, reset
it->override_ascent, like 'display_line' does (in
'append_space_for_newline').  (Bug#51111)
2021-10-10 17:14:55 +03:00
João Távora
4c7e74c386 Complete shorthands to longhands for symbol-completing tables
Shorthands aren't symbols, they're text forms that 'read' into
symbols.  As such, shorthands aren't candidates in these tables of
symbols.  But in some situations, if no other candidates match the
pattern, we can e.g. complete "x-foo" to "xavier-foo" if the shorthand

  (("x-" . "xavier-"))

is set up in the buffer of origin.

bug#50959

* lisp/help-fns.el (help--symbol-completion-table): Report
`symbol-help' category.

* lisp/minibuffer.el (completion-styles-alist): New 'shorthand'
style.
(completion-category-defaults): Link 'symbol-help' category with
'shorthand' style.
(minibuffer--original-buffer): New variable.
(completing-read-default): Setup minibuffer--original-buffer.
(completion-shorthand-try-completion)
(completion-shorthand-all-completions): New helpers.
2021-10-10 14:33:23 +01:00
João Távora
c2513c5d0d Add new failing test for bug#51089
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Add new failing test.
2021-10-10 14:29:37 +01:00
Stefan Kangas
1d1e96377c ; * lisp/emacs-lisp/shortdoc.el: Fix typo. 2021-10-10 13:53:55 +02:00