]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoFix build issue with smerge-mode
Lars Ingebrigtsen [Mon, 18 Oct 2021 07:13:51 +0000 (09:13 +0200)]
Fix build issue with smerge-mode

* lisp/vc/smerge-mode.el (easy-mmode): Require.

3 years agoAllow :filter t in make-process to work as with set-process-filter
Lars Ingebrigtsen [Mon, 18 Oct 2021 06:58:02 +0000 (08:58 +0200)]
Allow :filter t in make-process to work as with set-process-filter

* src/process.c (create_process):
(create_pty):
(Fmake_pipe_process):
(Fmake_serial_process): Don't add the read_fd if the filter is t
(which means that we don't accept output from the filter).

3 years agoDo kbd-valid-p prefix comparisons case-sensitively
Lars Ingebrigtsen [Mon, 18 Oct 2021 05:37:08 +0000 (07:37 +0200)]
Do kbd-valid-p prefix comparisons case-sensitively

* lisp/subr.el (kbd-valid-p): Compare case-sensitively.

3 years agoRecommend against using uce.el
Stefan Kangas [Sat, 16 Oct 2021 12:39:04 +0000 (14:39 +0200)]
Recommend against using uce.el

* lisp/mail/uce.el (uce-reply-to-uce): Recommend against its use on
the first invocation.  (Bug#46472)

3 years ago* lisp/erc/erc-compat.el (format-spec): Remove redundant require.
Stefan Kangas [Sun, 17 Oct 2021 23:49:39 +0000 (01:49 +0200)]
* lisp/erc/erc-compat.el (format-spec): Remove redundant require.

3 years agoPrefer defvar-local in MH-E
Stefan Kangas [Sun, 17 Oct 2021 23:33:21 +0000 (01:33 +0200)]
Prefer defvar-local in MH-E

* lisp/mh-e/mh-comp.el (mh-insert-auto-fields-done-local):
* lisp/mh-e/mh-e.el (mh-thread-scan-line-map)
(mh-thread-scan-line-map-stack):
* lisp/mh-e/mh-identity.el (mh-identity-pgg-default-user-id)
(mh-identity-local):
* lisp/mh-e/mh-scan.el (mh-cmd-note):
* lisp/mh-e/mh-seq.el (mh-non-seq-mode-line-annotation):
* lisp/mh-e/mh-thread.el (mh-thread-id-hash)
(mh-thread-subject-hash, mh-thread-id-table)
(mh-thread-index-id-map, mh-thread-id-index-map)
(mh-thread-subject-container-hash, mh-thread-duplicates)
(mh-thread-history): Prefer defvar-local.

3 years agoMake thumbs-image-type obsolete
Stefan Kangas [Sun, 17 Oct 2021 23:28:49 +0000 (01:28 +0200)]
Make thumbs-image-type obsolete

* lisp/thumbs.el (thumbs-image-type): Make into obsolete function
alias for 'image-type-from-file-name'.  Update callers.

3 years agoUse define-keymap in pcvs and pcvs-defs.el
Lars Ingebrigtsen [Sun, 17 Oct 2021 23:27:27 +0000 (01:27 +0200)]
Use define-keymap in pcvs and pcvs-defs.el

* lisp/vc/pcvs-defs.el (cvs-mode-diff-map):
* lisp/vc/pcvs.el (pcvs-defs):
(cvs-mode-diff-map): Move maps to pcvs (because the commands are
defined in pcvs.el and #' gives us checking) and transform from
easy-mmode-defmap to define-keymap.

3 years agoConvert diff-mode.el from easy-mmode-defmap to define-keymap
Lars Ingebrigtsen [Sun, 17 Oct 2021 22:49:56 +0000 (00:49 +0200)]
Convert diff-mode.el from easy-mmode-defmap to define-keymap

* lisp/vc/diff-mode.el (diff-mode-shared-map, diff-mode-map)
(diff-minor-mode-map): Convert from easy-mmode-defmap to
defvar-keymap.

3 years agoConvert smerge-mode.el from easy-mmode-defmap to define-keymap
Lars Ingebrigtsen [Sun, 17 Oct 2021 22:35:32 +0000 (00:35 +0200)]
Convert smerge-mode.el from easy-mmode-defmap to define-keymap

* lisp/vc/smerge-mode.el (smerge-basic-map, smerge-mode-map):
Convert form easy-mmode-defmap to define-keymap.

3 years agoAdd kbd examples to the doc string
Lars Ingebrigtsen [Sun, 17 Oct 2021 20:27:13 +0000 (22:27 +0200)]
Add kbd examples to the doc string

* lisp/subr.el (kbd): Add some examples to the doc string.

3 years agoReverse the edmacro-parse-keys/kbd vector/string logic
Lars Ingebrigtsen [Sun, 17 Oct 2021 20:14:30 +0000 (22:14 +0200)]
Reverse the edmacro-parse-keys/kbd vector/string logic

* lisp/edmacro.el (edmacro-parse-keys): Convert to a vector if
needed.
* lisp/subr.el (kbd): Remove the NEED-VECTOR parameter.

3 years agoAllow <mouse-1> in kbd-valid-p
Lars Ingebrigtsen [Sun, 17 Oct 2021 19:49:43 +0000 (21:49 +0200)]
Allow <mouse-1> in kbd-valid-p

* lisp/subr.el (kbd-valid-p): Allow (kbd-valid-p "<mouse-1>").

3 years agoReinstate defvar-keymap expansion
Lars Ingebrigtsen [Sun, 17 Oct 2021 19:29:59 +0000 (21:29 +0200)]
Reinstate defvar-keymap expansion

* lisp/emacs-lisp/byte-opt.el
(byte-optimize-define-keymap--define): Make more robust.

3 years agoBack out `define-keymap' optimization -- it leads to a build error
Lars Ingebrigtsen [Sun, 17 Oct 2021 19:06:26 +0000 (21:06 +0200)]
Back out `define-keymap' optimization -- it leads to a build error

3 years agoConvert cvs-status-mode-map to new syntax
Lars Ingebrigtsen [Sun, 17 Oct 2021 18:48:34 +0000 (20:48 +0200)]
Convert cvs-status-mode-map to new syntax

* lisp/vc/cvs-status.el (cvs-status-mode-map): Convert a small
keymap to the new ["..."] syntax.

3 years agoSupport a new ["..."] key binding syntax
Lars Ingebrigtsen [Sun, 17 Oct 2021 18:48:01 +0000 (20:48 +0200)]
Support a new ["..."] key binding syntax

* doc/lispref/keymaps.texi (Key Sequences):
(Changing Key Bindings): Document the various key syntaxes.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-define-key)
(byte-optimize-define-keymap)
(byte-optimize-define-keymap--define): New functions to check and
expand ["..."] syntax at compile time.

* src/keymap.c (Fdefine_key): Understand the ["..."] syntax.
(syms_of_keymap): Define `kbd' symbols.

3 years agoPacify gcc -Wsuggest-attribute=malloc
Paul Eggert [Sun, 17 Oct 2021 17:51:56 +0000 (10:51 -0700)]
Pacify gcc -Wsuggest-attribute=malloc

Problem found with gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 x86-64.
* src/sysstdio.h (emacs_fopen): Mark with ATTRIBUTE_MALLOC.

3 years agoRewrite kbd-valid-p to not use seq
Lars Ingebrigtsen [Sun, 17 Oct 2021 17:25:52 +0000 (19:25 +0200)]
Rewrite kbd-valid-p to not use seq

* lisp/subr.el (kbd-valid-p): Rewrite to not use seq.

3 years ago* src/image.c: Fix comment.
Stefan Kangas [Sun, 17 Oct 2021 14:07:59 +0000 (16:07 +0200)]
* src/image.c: Fix comment.

3 years ago; Fix typos in last change.
Eli Zaretskii [Sun, 17 Oct 2021 12:13:28 +0000 (15:13 +0300)]
; Fix typos in last change.

3 years agoMinor stylistic changes in last commit
Eli Zaretskii [Sun, 17 Oct 2021 12:10:04 +0000 (15:10 +0300)]
Minor stylistic changes in last commit

* src/xdisp.c (adjust_glyph_width_for_mouse_face): Renamed from
'get_glyph_pixel_width_delta_for_mouse_face'; all callers
changed.

3 years agoFix minor issues with text display when cursor is in mouse face
Po Lu [Thu, 14 Oct 2021 10:38:26 +0000 (18:38 +0800)]
Fix minor issues with text display when cursor is in mouse face

 * src/xdisp.c (get_cursor_offset_for_mouse_face): Don't calculate
offsets for the glyph the cursor is on, and move some logic to
get_glyph_pixel_width_delta_for_mouse_face.
(fill_composite_glyph_string)
(fill_gstring_glyph_string)
(fill_glyphless_glyph_string)
(fill_glyph_string)
(fill_image_glyph_string)
(fill_xwidget_glyph_string)
(fill_stretch_glyph_string): Set s->face to mouse face whenever
appropriate.
(get_glyph_pixel_width_delta_for_mouse_face): New function.
(set_glyph_string_background_width): Update background width and
s->width to take into account differing :box properties of the mouse
face, when producing strings for the cursor.
(erase_phys_cursor): Redraw mouse face when erasing a cursor on top of
the mouse face.
 * src/xterm.c (x_set_mouse_face_gc): Stop setting s->face when under
mouse face because redisplay now does that for us.
 * src/w32term.c (w32_set_mouse_face_gc): Likewise.

3 years agoFix up recent kbd simplification
Lars Ingebrigtsen [Sun, 17 Oct 2021 10:56:54 +0000 (12:56 +0200)]
Fix up recent kbd simplification

* lisp/subr.el (kbd): Fix breakage with X-<foo> from previous change.

3 years agoWarn about `file-notify-rm-all-watches' side effects
Michael Albinus [Sun, 17 Oct 2021 07:36:59 +0000 (09:36 +0200)]
Warn about `file-notify-rm-all-watches' side effects

* doc/lispref/os.texi (File Notifications): Warn about
`file-notify-rm-all-watches' side effects.

3 years agoSimplify condition in kbd
Stefan Kangas [Sat, 16 Oct 2021 20:09:54 +0000 (22:09 +0200)]
Simplify condition in kbd

* lisp/subr.el (kbd): Simplify condition.  This was discussed in:
https://lists.gnu.org/r/emacs-devel/2021-10/msg01136.html

3 years ago; Merge from origin/emacs-28
Glenn Morris [Sat, 16 Oct 2021 16:18:37 +0000 (09:18 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

1dfe9d6285 (origin/emacs-28) Recommend against using uce.el

3 years agoMerge from origin/emacs-28
Glenn Morris [Sat, 16 Oct 2021 16:18:37 +0000 (09:18 -0700)]
Merge from origin/emacs-28

e8488808df Avoid aborts when a thread is signaled while "waiting for ...
21397cce51 Improve documentation string for 'compilation-error-regexp...
2971a6890f * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix t...
e842d7f29a Fix removal of fringe indication of bookmarks
b5a0eda978 Prefer "graphical displays" to "X terminals" in documentation
4ad0fc0dd0 Precise documentation of file-notify-add-watch
f5b8df14c6 Fixes to account for windows' tab lines
ced72b6e4c * Fix `native-compile-target-directory' effectiveness on t...
502788bc3d Add missing single quotes in the Emacs manual
1af45ad04e ; * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix...
12654b7423 * lisp/menu-bar.el (yank-menu-length): Fix docstring (bug#...

# Conflicts:
# lisp/gnus/gnus-undo.el
# lisp/menu-bar.el

3 years agoSet EMACS_TEST_TIMEOUT for emba
Michael Albinus [Sat, 16 Oct 2021 16:08:25 +0000 (18:08 +0200)]
Set EMACS_TEST_TIMEOUT for emba

* test/Makefile.in: Support EMACS_TEST_TIMEOUT environment variable.

* test/README: Mention EMACS_TEST_TIMEOUT environment variable.

* test/infra/gitlab-ci.yml (variables): Set default value of
EMACS_TEST_TIMEOUT.
(.job-template): Propagate EMACS_TEST_TIMEOUT and EMACS_TEST_VERBOSE.
(test-all-inotify): Set specific EMACS_TEST_TIMEOUT.

3 years agoAdd new function 'kbd-valid-p'
Lars Ingebrigtsen [Sat, 16 Oct 2021 15:50:36 +0000 (17:50 +0200)]
Add new function 'kbd-valid-p'

* doc/lispref/keymaps.texi (Key Sequences): New function
'kbd-valid-p'.

* lisp/subr.el (kbd-valid-p): Document it.

3 years agoFix :version of new faces in term.el
Michael Albinus [Sat, 16 Oct 2021 15:23:57 +0000 (17:23 +0200)]
Fix :version of new faces in term.el

* lisp/term.el (term-faint, term-italic, term-slow-blink)
(term-fast-blink): Set proper :version.

3 years agoRemove duplicate code in edmacro-parse-keys
Stefan Kangas [Wed, 13 Oct 2021 20:54:47 +0000 (22:54 +0200)]
Remove duplicate code in edmacro-parse-keys

* lisp/subr.el (kbd): Add argument NEED-VECTOR and make it suitable
for calling from 'edmacro-parse-keys'.
* lisp/edmacro.el (edmacro-parse-keys): Replace definition with a
call to 'kbd'.

This change was discussed in:
https://lists.gnu.org/r/emacs-devel/2021-10/msg00909.html

3 years agoMake kbd usable during bootstrap
Stefan Kangas [Tue, 12 Oct 2021 23:40:14 +0000 (01:40 +0200)]
Make kbd usable during bootstrap

* lisp/subr.el (kbd): Make 'kbd' usable during bootstrap by copying
the definition of 'read-kbd-macro' into it, and adjusting it to no
longer use CL-Lib functions.

This change was discussed in:
https://lists.gnu.org/r/emacs-devel/2021-10/msg00909.html

3 years agoAdd command `file-notify-rm-all-watches'
Michael Albinus [Sat, 16 Oct 2021 12:33:52 +0000 (14:33 +0200)]
Add command `file-notify-rm-all-watches'

* doc/lispref/os.texi (File Notifications):
Add `file-notify-rm-all-watches'.

* etc/NEWS: Mention 'file-notify-rm-all-watches'.  Fix typos.

* lisp/filenotify.el (file-notify-rm-all-watches): New defun.

* test/lisp/filenotify-tests.el (file-notify--test-cleanup):
Use `file-notify-rm-all-watches'.
(file-notify-test02-rm-watch): Test also `file-notify-rm-all-watches'.

3 years agoRecommend against using uce.el
Stefan Kangas [Tue, 12 Oct 2021 04:30:20 +0000 (06:30 +0200)]
Recommend against using uce.el

* lisp/mail/uce.el: Recommend against its use.  (Bug#46472)
Do not merge to master.

3 years ago* src/emacs.c (standard_args): Sort --fingerprint second.
Andreas Schwab [Sat, 16 Oct 2021 11:58:13 +0000 (13:58 +0200)]
* src/emacs.c (standard_args): Sort --fingerprint second.
(bug#51238)

3 years agoAvoid aborts when a thread is signaled while "waiting for input".
Eli Zaretskii [Sat, 16 Oct 2021 11:47:32 +0000 (14:47 +0300)]
Avoid aborts when a thread is signaled while "waiting for input".

* src/process.c (kbd_is_ours): New function.
(wait_reading_process_output): Set 'waiting_for_input' only if the
current thread is monitoring the keyboard descriptor.  See also
https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg01180.html.
(Bug#51229)

3 years ago; * src/emacs.c (load_pdump): Adjust comment to recent code changes.
Eli Zaretskii [Sat, 16 Oct 2021 11:00:52 +0000 (14:00 +0300)]
; * src/emacs.c (load_pdump): Adjust comment to recent code changes.

3 years agoImprove documentation string for 'compilation-error-regexp-alist'.
Philipp Stephani [Sat, 16 Oct 2021 09:46:49 +0000 (11:46 +0200)]
Improve documentation string for 'compilation-error-regexp-alist'.

* lisp/progmodes/compile.el (compilation-error-regexp-alist): Clarify
behavior when TYPE is a cons cell.

3 years ago* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix target dir.
Andrea Corallo [Sat, 16 Oct 2021 08:55:43 +0000 (10:55 +0200)]
* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix target dir.

3 years agoFix removal of fringe indication of bookmarks
Eli Zaretskii [Sat, 16 Oct 2021 07:10:06 +0000 (10:10 +0300)]
Fix removal of fringe indication of bookmarks

* lisp/bookmark.el (bookmark--remove-fringe-mark): Fix off-by-one
error in looking for bookmark-related overlays.  (Bug#51233)

3 years ago* lisp/menu-bar.el (menu-bar-edit-menu): Expose lambdas to the compiler
Stefan Monnier [Sat, 16 Oct 2021 04:07:03 +0000 (00:07 -0400)]
* lisp/menu-bar.el (menu-bar-edit-menu): Expose lambdas to the compiler

3 years agoRelease ERC 5.4.1
Amin Bandali [Fri, 15 Oct 2021 20:51:59 +0000 (16:51 -0400)]
Release ERC 5.4.1

* doc/misc/erc.texi (ERCVER): Bump to 5.4.1.
* etc/ERC-NEWS: Add entry for 5.4.1 with explanations.
* lisp/erc/erc.el (Version, erc-version): Bump to 5.4.1.
(customize-package-emacs-version-alist): Add entry for 5.4.1.

3 years agoPrefer "graphical displays" to "X terminals" in documentation
Stefan Kangas [Fri, 15 Oct 2021 18:22:11 +0000 (20:22 +0200)]
Prefer "graphical displays" to "X terminals" in documentation

* doc/lispref/objects.texi (Ctl-Char Syntax): Fix incorrect remark;
some text terminals can generate ASCII control characters.
(Other Char Bits):
* lisp/bindings.el:
* lisp/gnus/gnus-undo.el (gnus-undo-mode-map): Say "graphical display"
and "GUI display" instead of "X terminal"; the latter term is
archaic.  (Bug#51217)

3 years agoPrecise documentation of file-notify-add-watch
Michael Albinus [Fri, 15 Oct 2021 14:29:11 +0000 (16:29 +0200)]
Precise documentation of file-notify-add-watch

* doc/lispref/os.texi (File Notifications):
* lisp/filenotify.el (file-notify-add-watch): Precise, that
watching a directory includes reports on file changes for some
backends.  (Bug#51146)

3 years ago; Move timeout in gitlab-ci.yml
Michael Albinus [Fri, 15 Oct 2021 14:10:53 +0000 (16:10 +0200)]
; Move timeout in gitlab-ci.yml

3 years agoConvert two `easy-mmode-defmap' usages to `defvar-keymap'
Lars Ingebrigtsen [Fri, 15 Oct 2021 12:19:32 +0000 (14:19 +0200)]
Convert two `easy-mmode-defmap' usages to `defvar-keymap'

* lisp/vc/log-edit.el (log-edit-mode-map):
* lisp/vc/cvs-status.el (cvs-status-mode-map): Convert
`easy-mmode-defmap' to `defvar-keymap'.

3 years ago; Fix last change on gitlab-ci.yml
Michael Albinus [Fri, 15 Oct 2021 12:15:28 +0000 (14:15 +0200)]
; Fix last change on gitlab-ci.yml

3 years agoAdd new option to rename eww buffers
Protesilaos Stavrou [Fri, 15 Oct 2021 12:12:32 +0000 (14:12 +0200)]
Add new option to rename eww buffers

* etc/NEWS: Document the new user options.

* lisp/net/eww.el (eww-auto-rename-buffer, eww-buffer-name-length):
Add new user options.
(eww--rename-buffer): Introduce new function that performs the
renaming of buffers.
(eww--after-page-change): Add new wrapper function which calls
'eww-update-header-line-format' and 'eww--rename-buffer'.
(eww, eww-render, eww-tag-title, eww-readable, eww-restore-history):
Include eww--after-page-change.

Fix bug#51176.

Co-authored-by: Abhiseck Paira <abhiseckpaira@disroot.org>
Co-authored-by: Protesilaos Stavrou <info@protesilaos.com>
3 years agoSpecial-case the "Permission denied" messages
Dmitry Gutov [Fri, 15 Oct 2021 12:02:23 +0000 (15:02 +0300)]
Special-case the "Permission denied" messages

* lisp/progmodes/project.el (project--files-in-directory):
Special-case the "Permission denied" messages, to make sure the
user sees the unreadable directory's name
(https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg01015.html).

3 years agoCalc: mend math-nth-root-float (bug#51209)
Mattias Engdegård [Fri, 15 Oct 2021 10:04:02 +0000 (12:04 +0200)]
Calc: mend math-nth-root-float (bug#51209)

Reported by Iñaki Cornejo.

* lisp/calc/calc-math.el (math-nth-root-float):
Fix old refactoring mistake.
* test/lisp/calc/calc-tests.el (calc-nth-root): New test.

3 years agoFurther gitlab-ci.yml changes
Michael Albinus [Fri, 15 Oct 2021 09:01:55 +0000 (11:01 +0200)]
Further gitlab-ci.yml changes

* test/infra/gitlab-ci.yml (.job-template): Add --timeout.
(.test-template): Adapt artifact paths.

3 years agoSimplify functions dealing with preserving the size of windows
Martin Rudalics [Fri, 15 Oct 2021 08:28:15 +0000 (10:28 +0200)]
Simplify functions dealing with preserving the size of windows

* lisp/window.el (window--preservable-size): Remove function.
(window-preserve-size, window-preserved-size)
(window--preserve-size): Simplify.  Use 'window-body-height'
etc. instead of 'window--preservable-size'.

3 years agoFixes to account for windows' tab lines
Martin Rudalics [Fri, 15 Oct 2021 08:21:05 +0000 (10:21 +0200)]
Fixes to account for windows' tab lines

* doc/lispref/display.texi (Size of Displayed Text): Fix entry
on 'window-text-pixel-size'.
* lisp/window.el (window--dump-window): Dump tab-line-height and
scroll-bar-height too.
(window--min-size-1): Take 'window-tab-line-height' into account.
* src/xdisp.c (Fwindow_text_pixel_size): Fix doc-string of
'window-text-pixel-size'.  Rename last argument to 'MODE-LINES'.

3 years ago* Fix `native-compile-target-directory' effectiveness on trampolines
Andrea Corallo [Fri, 15 Oct 2021 07:26:24 +0000 (09:26 +0200)]
* Fix `native-compile-target-directory' effectiveness on trampolines

* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix
`native-compile-target-directory' effectiveness on trampoline
compilation.

3 years agoAdd missing single quotes in the Emacs manual
Jan Synacek [Fri, 15 Oct 2021 06:20:40 +0000 (08:20 +0200)]
Add missing single quotes in the Emacs manual

* lisp/mwheel.el (mouse-wheel-scroll-amount): Add missing single
quotes.  (Bug#51223)

Copyright-paperwork-exempt: yes.

3 years ago; * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix comment.
Andrea Corallo [Fri, 15 Oct 2021 07:18:54 +0000 (09:18 +0200)]
; * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix comment.

3 years ago* lisp/menu-bar.el (yank-menu-length): Fix docstring (bug#51138).
Juri Linkov [Fri, 15 Oct 2021 06:58:29 +0000 (09:58 +0300)]
* lisp/menu-bar.el (yank-menu-length): Fix docstring (bug#51138).

3 years ago* doc/misc/erc.texi: Add 'ERCVER' and 'ERCDIST'.
Amin Bandali [Fri, 15 Oct 2021 02:02:02 +0000 (22:02 -0400)]
* doc/misc/erc.texi: Add 'ERCVER' and 'ERCDIST'.

To mention the ERC version in the manual, and to allow for more easily
overriding the distribution description when building for GNU ELPA.

3 years ago; verilog-mode.el documentation and regexp cleanup from upstream.
Wilson Snyder [Fri, 15 Oct 2021 01:36:59 +0000 (21:36 -0400)]
; verilog-mode.el documentation and regexp cleanup from upstream.

3 years agoUse `define-keymap' in log-view.el
Lars Ingebrigtsen [Thu, 14 Oct 2021 18:11:51 +0000 (20:11 +0200)]
Use `define-keymap' in log-view.el

* lisp/vc/log-view.el (log-view-mode-map): Convert a
`easy-mmode-defmap' to `define-keymap'.

3 years agodefine-key doc string improvement
Lars Ingebrigtsen [Thu, 14 Oct 2021 17:53:00 +0000 (19:53 +0200)]
define-key doc string improvement

* src/keymap.c (Fdefine_key): Explain what the STRING is used for.

(local-set-key "\C-c\C-c"
       (define-keymap
 :name "Zot"
 "a" '("foo" . ignore)
 "b" '("gazonk" . ignore)))

3 years ago; Instrument gitlab-ci.yml
Michael Albinus [Thu, 14 Oct 2021 17:38:53 +0000 (19:38 +0200)]
; Instrument gitlab-ci.yml

3 years agoMerge from origin/emacs-28
Glenn Morris [Thu, 14 Oct 2021 14:50:29 +0000 (07:50 -0700)]
Merge from origin/emacs-28

9ff6999a06 (origin/emacs-28) Accept process-filter t in Tramp
cf95962092 ; * doc/lispref/processes.texi (Filter Functions): Fix las...
1ad4ad0c11 Document the t value for set-process-filter in the manual
b014efa1e5 * doc/misc/tramp.texi (Frequently Asked Questions): Add re...
b9b78b2631 Fix Help functions for clicks on tool bar and tab bar
74deafe921 ; * etc/DEBUG: Add a section about debugging native-compil...
8153f70b9c In make_lispy_position fix Bug#50993 in rudimentary fashion
0aa52e94f3 Mark vc-switch-backend as obsolete
568e479c59 Add missing parentheses in the Emacs manual
44ce50b0df Improve tooltip of mode-line-position again
9b1adf8b4f Use browse-url-button-regexp for rcirc-url-regexp
9ed53b022d * lisp/help.el (help--analyze-key): Avoid mouse-set-point ...

# Conflicts:
# etc/NEWS

3 years agoAccept process-filter t in Tramp
Michael Albinus [Thu, 14 Oct 2021 12:32:47 +0000 (14:32 +0200)]
Accept process-filter t in Tramp

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Filter can be t.

* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Test filter equal t.

3 years ago; * doc/lispref/processes.texi (Filter Functions): Fix last change.
Eli Zaretskii [Thu, 14 Oct 2021 11:51:04 +0000 (14:51 +0300)]
; * doc/lispref/processes.texi (Filter Functions): Fix last change.

3 years agoDocument the t value for set-process-filter in the manual
Lars Ingebrigtsen [Thu, 14 Oct 2021 11:10:00 +0000 (13:10 +0200)]
Document the t value for set-process-filter in the manual

* doc/lispref/processes.texi (Filter Functions): Mention what t
means (bug#51177).

3 years ago* doc/misc/tramp.texi (Frequently Asked Questions): Add reference
Michael Albinus [Thu, 14 Oct 2021 09:50:47 +0000 (11:50 +0200)]
* doc/misc/tramp.texi (Frequently Asked Questions): Add reference

to ELPA Installation node.

3 years agoFix Help functions for clicks on tool bar and tab bar
Eli Zaretskii [Thu, 14 Oct 2021 09:29:43 +0000 (12:29 +0300)]
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)

3 years ago; * etc/DEBUG: Add a section about debugging native-compilation.
Eli Zaretskii [Thu, 14 Oct 2021 09:14:14 +0000 (12:14 +0300)]
; * etc/DEBUG: Add a section about debugging native-compilation.

3 years agoFix display of cursor in mouse-highlighted face with ':box'
Eli Zaretskii [Thu, 14 Oct 2021 08:57:07 +0000 (11:57 +0300)]
Fix display of cursor in mouse-highlighted face with ':box'

* src/xdisp.c (erase_phys_cursor, show_mouse_face): Adjust
phys_cursor.x as needed if the cursor is inside mouse-highlight.
(get_cursor_offset_for_mouse_face): New function.
* src/dispnew.c (gui_update_window_end): Set
'mouse_face_overwritten_p' if the cursor is in mouse-face, to
trigger more thorough redisplay of the cursor.
(Bug#50660)

3 years agoIn make_lispy_position fix Bug#50993 in rudimentary fashion
Martin Rudalics [Thu, 14 Oct 2021 08:39:27 +0000 (10:39 +0200)]
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).

3 years agoIn 'window--display-buffer' handle nil size values as intended (Bug#51062)
Martin Rudalics [Thu, 14 Oct 2021 08:21:17 +0000 (10:21 +0200)]
In 'window--display-buffer' handle nil size values as intended (Bug#51062)

* lisp/window.el (window--display-buffer): Make sure
that (window-height . nil), (window-width . nil)
and (window-size . nil) action alist entries are processed
as intended.

3 years agoAdapt gitlab-ci.yml paths
Michael Albinus [Thu, 14 Oct 2021 07:37:13 +0000 (09:37 +0200)]
Adapt gitlab-ci.yml paths

* test/infra/gitlab-ci.yml (.job-template): Increase timeout.
(.job-template, .build-template, .test-template)
(.gnustep-template, .filenotify-gio-template)
(.native-comp-template): Adapt paths.

3 years agoAdd new argument INCLUDE-ALL to project-find-file
Dmitry Gutov [Thu, 14 Oct 2021 00:43:42 +0000 (03:43 +0300)]
Add new argument INCLUDE-ALL to project-find-file

* lisp/progmodes/project.el (project-find-file):
Add new argument INCLUDE-ALL.  Have 'C-u' make it non-nil.
(project-or-external-find-file): Ditto.
(project-find-file-in): Add new argument INCLUDE-ALL.
(https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg00209.html)

3 years agoMark vc-switch-backend as obsolete
Dmitry Gutov [Wed, 13 Oct 2021 23:28:00 +0000 (02:28 +0300)]
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'.

3 years agoAdd missing parentheses in the Emacs manual
Yan [Wed, 13 Oct 2021 23:28:02 +0000 (01:28 +0200)]
Add missing parentheses in the Emacs manual

* doc/emacs/maintaining.texi (Xref Commands): Add missing
parentheses (bug#51195).

Copyright-paperwork-exempt: yes

3 years agoImprove tooltip of mode-line-position again
Stefan Kangas [Wed, 13 Oct 2021 22:26:51 +0000 (00:26 +0200)]
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

3 years agoDouble the default value of kill-ring-max
Stefan Kangas [Tue, 12 Oct 2021 16:23:46 +0000 (18:23 +0200)]
Double the default value of kill-ring-max

* lisp/simple.el (kill-ring-max): Double the default to 120.
* lisp/menu-bar.el (yank-menu-length): Doc fix.
(yank-menu-max-items): New variable.
(menu-bar-update-yank-menu): Don't display more than
'yank-menu-max-items' in the yank menu.

* doc/emacs/custom.texi (Changing a Variable):
* doc/emacs/killing.texi (Kill Ring):
* doc/lispintro/emacs-lisp-intro.texi (kill-new function):
* doc/lispref/text.texi (Internals of Kill Ring): Doc fix to use
the new value.

3 years agoNew tests for kbd and edmacro-parse-keys
Stefan Kangas [Wed, 13 Oct 2021 21:13:40 +0000 (23:13 +0200)]
New tests for kbd and edmacro-parse-keys

* test/lisp/edmacro-tests.el: New file.
* test/lisp/subr-tests.el (subr-test-kbd): Expand test.

3 years agoMark def* macros for indentation
Lars Ingebrigtsen [Wed, 13 Oct 2021 19:52:50 +0000 (21:52 +0200)]
Mark def* macros for indentation

* lisp/widget.el (define-widget-keywords):
* lisp/vc/pcvs.el (defun-cvs-mode):
* lisp/subr.el (defvar-local):
(defvar-keymap):
* lisp/skeleton.el (define-skeleton):
* lisp/simple.el (define-alternatives):
* lisp/progmodes/gud.el (gdb-script-mode):
* lisp/progmodes/gdb-mi.el (def-gdb-preempt-display-buffer):
(def-gdb-auto-update-trigger):
(def-gdb-auto-update-handler):
(def-gdb-trigger-and-handler):
(def-gdb-thread-buffer-command):
(def-gdb-thread-buffer-simple-command):
(def-gdb-thread-buffer-gud-command):
(def-gdb-set-positive-number):
(def-gdb-memory-format):
(def-gdb-memory-unit):
(def-gdb-memory-show-page):
* lisp/progmodes/compile.el (define-compilation-mode):
* lisp/progmodes/cc-vars.el (defcustom-c-stylevar):
* lisp/obsolete/cl.el (define-setf-expander):
(defsetf):
(define-modify-macro):
* lisp/obsolete/cl-compat.el (defkeyword):
* lisp/net/hmac-def.el (define-hmac-function):
* lisp/international/mule-conf.el (define-iso-single-byte-charset):
* lisp/international/ccl.el (define-ccl-program):
* lisp/image.el (defimage):
* lisp/gnus/gmm-utils.el (defun-gmm):
* lisp/ezimage.el (defezimage):
* lisp/erc/erc.el (define-erc-module):
* lisp/emacs-lisp/shortdoc.el (define-short-documentation-group):
* lisp/emacs-lisp/eieio.el (defclass):
* lisp/emacs-lisp/eieio-compat.el (defgeneric):
(defmethod):
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
(define-globalized-minor-mode):
* lisp/emacs-lisp/derived.el (define-derived-mode):
* lisp/emacs-lisp/byte-run.el (defsubst):
(define-obsolete-function-alias):
(define-obsolete-variable-alias):
* lisp/custom.el (defcustom):
(defface):
(defgroup):
(deftheme):
* lisp/cedet/semantic/wisent.el (define-wisent-lexer):
* lisp/cedet/semantic/lex.el (define-lex):
(define-lex-analyzer):
(define-lex-regex-analyzer):
(define-lex-simple-regex-analyzer):
(define-lex-block-analyzer):
(define-lex-keyword-type-analyzer):
(define-lex-sexp-type-analyzer):
(define-lex-regex-type-analyzer):
(define-lex-string-type-analyzer):
(define-lex-block-type-analyzer):
* lisp/cedet/semantic/lex-spp.el
(define-lex-spp-macro-declaration-analyzer):
(define-lex-spp-macro-undeclaration-analyzer):
(define-lex-spp-include-analyzer):
* lisp/cedet/semantic/dep.el
(defcustom-mode-local-semantic-dependency-system-include-path):
* lisp/cedet/semantic/decorate/mode.el
(define-semantic-decoration-style):
* lisp/cedet/mode-local.el (define-child-mode):
(define-overloadable-function):
(define-mode-local-override):
* lisp/calc/calc.el (defcalcmodevar):
(defmath): Explicitly mark all macros that have names that start
with "def" that should indent defunly-like (bug#43329).

3 years agoMark all def* functions that should indent as `defun'
Lars Ingebrigtsen [Wed, 13 Oct 2021 19:21:23 +0000 (21:21 +0200)]
Mark all def* functions that should indent as `defun'

* lisp/abbrev.el (define-abbrev):
(define-abbrev-table): Mark all functions that have names that
start with "def" that should indent according to the current
heuristics (bug#43329).
* lisp/autoinsert.el (define-auto-insert):

* lisp/button.el (define-button-type):

* lisp/subr.el (define-key-after):
(define-mail-user-agent):
(define-keymap):

* lisp/widget.el (define-widget):

* lisp/emacs-lisp/package.el (define-package):

* lisp/international/mule-cmds.el (define-char-code-property):

* lisp/international/mule.el (define-charset):
(define-coding-system):
(define-translation-table):
(define-translation-hash-table):

3 years agoUse browse-url-button-regexp for rcirc-url-regexp
Philip Kaludercic [Wed, 13 Oct 2021 19:49:28 +0000 (21:49 +0200)]
Use browse-url-button-regexp for rcirc-url-regexp

* rcirc.el (rcirc-url-regexp): Copy improved regexp from browse-url

3 years ago* lisp/help.el (help--analyze-key): Avoid mouse-set-point for non-mouse events
Juri Linkov [Wed, 13 Oct 2021 19:17:27 +0000 (22:17 +0300)]
* lisp/help.el (help--analyze-key): Avoid mouse-set-point for non-mouse events

(bug#51173)

3 years agoPacify gcc -Warray-parameter
Paul Eggert [Wed, 13 Oct 2021 18:16:54 +0000 (11:16 -0700)]
Pacify gcc -Warray-parameter

* src/pdumper.h: Declare array parameter with the same signature
that the function definition uses.

3 years agoPacify GCC -Wanalyzer-possible-null-dereference
Paul Eggert [Wed, 13 Oct 2021 18:16:33 +0000 (11:16 -0700)]
Pacify GCC -Wanalyzer-possible-null-dereference

This fixes the only remaining GCC diagnostics when emacs-28 is
configured with --enable-gcc-warnings.  It does so by adding
ATTRIBUTE_RETURNS_NONNULL so that GCC knows certain functions
return nonnull.  It also arranges for three of those functions to
always return nonnull; I thought these functions already were
doing so, but apparently not, and it is conceivable (though I
haven’t checked this) that changing these functions to always
return nonnull even on non-GNU platforms may fix unlikely
portability bugs elsewhere in Emacs.  I used GCC 11.2.1 20210728
(Red Hat 11.2.1-1) on x86-64 when checking the diagnostics.
* configure.ac: Invoke gl_EEMALLOC before gl_INIT, in case
the regex code doesn't invoke gl_EEMALLOC; needed for src/alloc.c’s
use of MALLOC_0_IS_NONNULL.
* src/alloc.c (xmalloc, xzalloc, xrealloc): Don’t worry about the
special case where SIZE == 0, since lmalloc and lrealloc now
return null only on allocation failure.
(lmalloc, lrealloc): Return null only on allocation failure,
instead of having special cases that treat malloc (0) and
realloc (X, 0) as successes even when they return null.
* src/lisp.h: Add ATTRIBUTE_RETURNS_NONNULL to a few functions
that always return nonnull pointers, so that gcc -fanalyzer
does not issue diagnostics like “alloc.c: In function
‘allocate_vector_block’: alloc.c:2985:15: warning: dereference of
possibly-NULL ‘block’ [CWE-690] [-Wanalyzer-possible-null-dereference]”
as per <https://cwe.mitre.org/data/definitions/690.html>.

3 years agoMerge from origin/emacs-28
Paul Eggert [Wed, 13 Oct 2021 18:19:12 +0000 (11:19 -0700)]
Merge from origin/emacs-28

efb1cd7fa9 ; * etc/charsets/README: Update the format documentation.
cc796b7409 Tramp doc cleanup
a338d46060 Make emacs-lisp-byte-compile-and-load load the .elc file a...
3eac7dc780 Fix point movement in image-dired
4e9452a399 Improve shortdoc for vector
f223ac6ef9 Fix test bug when calloc returns null
ebeaa54f19 Pacify GCC 11 -fanalyzer on x86-64
56d1f42f30 Improve handling of non-character events in input methods
3fbe6fd367 ; Fix mistakes in last doc rewording about shorthands

3 years agoChange release branch to emacs-28
Paul Eggert [Wed, 13 Oct 2021 18:14:59 +0000 (11:14 -0700)]
Change release branch to emacs-28

* admin/notes/git-workflow:
* Makefile.in (PREFERRED_BRANCH): emacs-27 → emacs-28

3 years ago; * etc/charsets/README: Update the format documentation.
Eli Zaretskii [Wed, 13 Oct 2021 17:02:23 +0000 (20:02 +0300)]
; * etc/charsets/README: Update the format documentation.

3 years agoUpdate Emacs requirement after removing compat code
Lars Ingebrigtsen [Wed, 13 Oct 2021 17:01:48 +0000 (19:01 +0200)]
Update Emacs requirement after removing compat code

3 years agoAllow inhibiting `not-unused' warnings
Lars Ingebrigtsen [Wed, 13 Oct 2021 17:00:25 +0000 (19:00 +0200)]
Allow inhibiting `not-unused' warnings

* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types): Allow
inhibiting the `not-unused' warning (bug#31641).  (There has been
some discussion about removing the `not-unused' warning, but it's
still in there, so making it possible to inhibit it seems like the
right thing to do.)
* lisp/emacs-lisp/cconv.el (cconv--analyze-use): Don't warn about
`not-unused'.

3 years agoFix problem with multiline fontification in interactive Python
Lars Ingebrigtsen [Wed, 13 Oct 2021 16:44:35 +0000 (18:44 +0200)]
Fix problem with multiline fontification in interactive Python

* lisp/progmodes/python.el
(python-shell-font-lock-post-command-hook): When doing multi-line
(`C-c SPC') inputs, remove all the preceding lines when doing
fontification (bug#47657).

3 years agoContinue to work on emba integration
Michael Albinus [Wed, 13 Oct 2021 16:59:58 +0000 (18:59 +0200)]
Continue to work on emba integration

* test/infra/Dockerfile.emba: Remove instrumentation.

* test/infra/gitlab-ci.yml (.job-template): Specify timeout signal.
(.job-template, .test-template): Improve wildcard.

3 years agoTramp doc cleanup
Michael Albinus [Wed, 13 Oct 2021 16:59:10 +0000 (18:59 +0200)]
Tramp doc cleanup

* doc/misc/tramp.texi (Overview, Bug Reports)
(Frequently Asked Questions): Stylistic changes.
(Bug Reports): Mention tramp buffers appended to bug report.

3 years agoRemove some compat code from python.el
Lars Ingebrigtsen [Wed, 13 Oct 2021 16:34:58 +0000 (18:34 +0200)]
Remove some compat code from python.el

* lisp/progmodes/python.el
(python-shell-font-lock-post-command-hook): Remove Emacs 24.3 and
earlier compat code.

3 years agoMake emacs-lisp-byte-compile-and-load load the .elc file again
Lars Ingebrigtsen [Wed, 13 Oct 2021 11:41:21 +0000 (13:41 +0200)]
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).

3 years agoFix point movement in image-dired
Peter Münster [Tue, 12 Oct 2021 12:31:58 +0000 (14:31 +0200)]
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).

3 years ago* src/pdumper.h: Include <stdio.h>.
Andreas Schwab [Wed, 13 Oct 2021 08:04:33 +0000 (10:04 +0200)]
* src/pdumper.h: Include <stdio.h>.

3 years agoImprove 'display-buffer' 'temp-buffer-resize-mode' cohabitation (Bug#51062)
Martin Rudalics [Wed, 13 Oct 2021 07:51:27 +0000 (09:51 +0200)]
Improve 'display-buffer' 'temp-buffer-resize-mode' cohabitation (Bug#51062)

* doc/lispref/display.texi (Temporary Displays): Explain how
to override the effect of 'temp-buffer-resize-mode' with a
suitable 'display-buffer' action alist entry.
* doc/lispref/windows.texi (Buffer Display Action Alists):
Mention that an 'inhibit-switch-frame' entry might not work
with every WM.  Describe the 'window-size' entry.  Describe
how automatic window resizing can be overridden.
* lisp/help.el (resize-temp-buffer-window-inhibit): New variable.
(resize-temp-buffer-window): Handle case where user overrides
automatic resizing.
* lisp/window.el (temp-buffer-window-show): Bind
'resize-temp-buffer-window-inhibit' to nil around
'display-buffer'.  Do not raise frame automatically to avoid
defeating 'inhibit-switch-frame'.
(window--display-buffer): Set 'resize-temp-buffer-window-inhibit'
to t when the action alist contains a 'window-height',
'window-width' or 'window-size' entry.  Use
'modify-frame-parameters' instead of 'set-frame-height' and
'set-frame-width' to avoid that the latter step on each others
toes.
(display-buffer): Fix 'inhibit-switch-frame' part in and add
'window-size' part to doc-string.

3 years agoImprove shortdoc for vector
Stefan Kangas [Wed, 13 Oct 2021 03:00:10 +0000 (05:00 +0200)]
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'.