]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 1 May 2021 13:29:15 +0000 (06:29 -0700)]
; Auto-commit of loaddefs files.

3 years agoFix GUD overlay arrows in gdb-mi when debugging over Tramp
Jim Porter [Sat, 1 May 2021 10:09:36 +0000 (12:09 +0200)]
Fix GUD overlay arrows in gdb-mi when debugging over Tramp

* lisp/progmodes/gdb-mi.el (gdb-frame-handler): Use local part of
file name when setting `gud-last-frame'.

3 years agoAdvertise PgUp/PgDn instead of SPC/DEL in help-for-help
Stefan Kangas [Fri, 30 Apr 2021 17:30:28 +0000 (19:30 +0200)]
Advertise PgUp/PgDn instead of SPC/DEL in help-for-help

* lisp/help-macro.el (make-help-screen):
* lisp/help.el (help-for-help): Advertise PgUp/PgDn instead of
SPC/DEL.

3 years agoDon't signal scan-error in interactive sexp-based commands
Mattias Engdegård [Fri, 30 Apr 2021 15:09:21 +0000 (17:09 +0200)]
Don't signal scan-error in interactive sexp-based commands

This takes care of unfinished business from df0f32f04850 (bug#43489).

* lisp/emacs-lisp/lisp.el (end-of-defun, mark-defun):
* lisp/reposition.el (reposition-window):
* lisp/simple.el (transpose-sexps): Convert nasty-looking scan-error
into a human-readable message.

3 years agoFix the unexec build on MS-Windows
Eli Zaretskii [Fri, 30 Apr 2021 11:22:29 +0000 (14:22 +0300)]
Fix the unexec build on MS-Windows

* src/buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: If dumped
with unexec, be sure to map new memory also for the " prin1"
buffer.  For the reasons and discussion, see
https://lists.gnu.org/archive/html/emacs-devel/2021-04/msg01401.html.

3 years agoAlter `gnus-article-show-images' to re-display with images installed
Lars Ingebrigtsen [Fri, 30 Apr 2021 08:41:18 +0000 (10:41 +0200)]
Alter `gnus-article-show-images' to re-display with images installed

* lisp/gnus/gnus-art.el (gnus-article-show-images): Reselect to
display HTML images.

3 years agoImprove support for 'display-line-numbers-width-start'
Eli Zaretskii [Fri, 30 Apr 2021 07:28:50 +0000 (10:28 +0300)]
Improve support for 'display-line-numbers-width-start'

* lisp/display-line-numbers.el (display-line-numbers-width-start):
Allow the value to be a number.  (Bug#48095)
(display-line-numbers-mode): Handle
'display-line-numbers-width-start' whose value is a number.

3 years ago* src/doc.c (Fsnarf_documentation): Fix bug#48019
Stefan Monnier [Thu, 29 Apr 2021 22:11:04 +0000 (18:11 -0400)]
* src/doc.c (Fsnarf_documentation): Fix bug#48019

Don't presume that `custom-delayed-init-variables` holds a list.

3 years ago* lisp/mail/supercite.el (sc-select-attribution): Fix lexical conversion
Stefan Monnier [Thu, 29 Apr 2021 22:03:51 +0000 (18:03 -0400)]
* lisp/mail/supercite.el (sc-select-attribution): Fix lexical conversion

Mark `citation` and `attribution` as dynamically scoped around
`sc-attribs-postselect-hook`, as documented in the function's docstring.

3 years ago* Improve `comp-normalize-valset' reproducibility (bug#48021)
Andrea Corallo [Thu, 29 Apr 2021 18:56:26 +0000 (20:56 +0200)]
* Improve `comp-normalize-valset' reproducibility (bug#48021)

* lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Make
it more reproducible.

3 years agoAutomatically generate texinfo.el internal autoloads
Glenn Morris [Thu, 29 Apr 2021 18:42:03 +0000 (11:42 -0700)]
Automatically generate texinfo.el internal autoloads

* lisp/textmodes/texinfo.el: Replace manual autoloads.
* lisp/textmodes/makeinfo.el (makeinfo-region, makeinfo-buffer)
(makeinfo-recenter-compilation-buffer):
* lisp/textmodes/texnfo-upd.el (texinfo-make-menu)
(texinfo-all-menus-update, texinfo-start-menu-description)
(texinfo-indent-menu-description, texinfo-master-menu)
(texinfo-update-node, texinfo-every-node-update)
(texinfo-sequential-node-update, texinfo-insert-node-lines)
(texinfo-multiple-files-update):
Add autoload cookies, and set generated-autoload-file.

3 years agoSome Tramp corrections, Bug#48067
Michael Albinus [Thu, 29 Apr 2021 13:04:51 +0000 (15:04 +0200)]
Some Tramp corrections, Bug#48067

* doc/misc/tramp.texi (Frequently Asked Questions): Rephrase GNU
ELPA warnings.

* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Improve handling of gio warning.  (Bug#48067)

3 years ago* lisp/emacs-lisp/shortdoc.el: Doc fixes.
Stefan Kangas [Thu, 29 Apr 2021 11:32:10 +0000 (13:32 +0200)]
* lisp/emacs-lisp/shortdoc.el: Doc fixes.

3 years ago* lisp/progmodes/project.el: Also bump version.
Dmitry Gutov [Thu, 29 Apr 2021 01:59:28 +0000 (04:59 +0300)]
* lisp/progmodes/project.el: Also bump version.

3 years ago* lisp/progmodes/xref.el: Bump version.
Dmitry Gutov [Thu, 29 Apr 2021 01:53:37 +0000 (04:53 +0300)]
* lisp/progmodes/xref.el: Bump version.

3 years ago* lisp/window.el (window--state-put-2): Set next/prev-buffers even to nil.
Juri Linkov [Wed, 28 Apr 2021 20:25:08 +0000 (23:25 +0300)]
* lisp/window.el (window--state-put-2): Set next/prev-buffers even to nil.

When next-buffers or prev-buffers are nil, still use set-window-next-buffers
or set-window-prev-buffers to set next/prev-buffers to nil.  (Bug#46904)

3 years ago* Add a note related to native compilation and Dynamic Binding
Andrea Corallo [Wed, 28 Apr 2021 20:00:12 +0000 (22:00 +0200)]
* Add a note related to native compilation and Dynamic Binding

* doc/lispref/variables.texi (Dynamic Binding): Add a note
related to native compilation.

3 years agoTramp code cleanup
Michael Albinus [Wed, 28 Apr 2021 20:00:55 +0000 (22:00 +0200)]
Tramp code cleanup

* lisp/net/tramp-archive.el (tramp-archive-handle-insert-file-contents):
Code cleanup.

* lisp/net/tramp.el: Reload `tramp-compat' when we reload
`tramp-autoloads'.
(with-tramp-file-property, with-tramp-connection-property):
Use `tramp-cache-undefined'.
(tramp-autoload-file-name-handler): Do not load tramp-compat.el.
(tramp-handle-insert-file-contents): Code cleanup.

3 years agoFix gio warning in Tramp
Michael Albinus [Wed, 28 Apr 2021 17:29:36 +0000 (19:29 +0200)]
Fix gio warning in Tramp

* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Improve handling of gio warning.  (Bug#48067)

3 years agoDoc fixes in avl-tree.el
Eli Zaretskii [Wed, 28 Apr 2021 16:36:42 +0000 (19:36 +0300)]
Doc fixes in avl-tree.el

* lisp/emacs-lisp/avl-tree.el (avl-tree--root)
(avl-tree--dir-to-sign, avl-tree--sign-to-dir)
(avl-tree--del-balance, avl-tree--enter-balance)
(avl-tree--do-copy, avl-tree--stack-repopulate, avl-tree-empty)
(avl-tree-delete, avl-tree-member, avl-tree-member-p)
(avl-tree-map, avl-tree-mapc, avl-tree-mapf, avl-tree-mapcar)
(avl-tree-copy, avl-tree-clear, avl-tree-stack)
(avl-tree-stack-first): Fix doc strings to be less verbose and to
have the first line a complete sentence.

3 years ago* lisp/emacs-lisp/avl-tree.el: Minor doc fixes.
Stefan Kangas [Wed, 28 Apr 2021 14:02:42 +0000 (16:02 +0200)]
* lisp/emacs-lisp/avl-tree.el: Minor doc fixes.

3 years agoImprove add-log-current-defun-header-regexp
Michael Albinus [Wed, 28 Apr 2021 08:05:53 +0000 (10:05 +0200)]
Improve add-log-current-defun-header-regexp

* lisp/vc/add-log.el (add-log-current-defun-header-regexp):
Allow digits.  Require at least one letter.  (Bug#48037)

3 years agoAdd tests
Peter Oliver [Wed, 28 Apr 2021 02:18:40 +0000 (05:18 +0300)]
Add tests

* test/lisp/progmodes/ruby-mode-tests.el (ruby-with-temp-file): New helper.
(ruby--set-encoding-when-ascii, ruby--set-encoding-when-utf8)
(ruby--set-encoding-when-latin-15): Tests for the previous commit (bug#48043).

3 years agoDon't add magic comment to Ruby files for utf-8 encoding
Dmitry Gutov [Wed, 28 Apr 2021 02:11:36 +0000 (05:11 +0300)]
Don't add magic comment to Ruby files for utf-8 encoding

* lisp/progmodes/ruby-mode.el (ruby-encoding-map):
Add entry for utf-8 (bug#48043).
(ruby--detect-encoding): Don't convert to string too early, so
that returning nil is meaningful.
(ruby-mode-set-encoding): Convert to string here.

3 years ago* Clean-up temporary eln test-suite directory when exiting (bug#48060)
Andrea Corallo [Tue, 27 Apr 2021 21:10:05 +0000 (23:10 +0200)]
* Clean-up temporary eln test-suite directory when exiting (bug#48060)

* lisp/startup.el (normal-top-level): Remove eln test-suite temp
dir when exiting.

3 years agoHave `comp-cstr-intersection-no-mem' intersect pos neg value sets
Andrea Corallo [Tue, 27 Apr 2021 20:43:12 +0000 (22:43 +0200)]
Have `comp-cstr-intersection-no-mem' intersect pos neg value sets

* lisp/emacs-lisp/comp-cstr.el (comp-cstr-intersection-no-mem):
intersect pos and neg value sets
* test/lisp/emacs-lisp/comp-cstr-tests.el
(comp-cstr-typespec-tests-alist): Add two tests and fix some
test number.

3 years agoAvoid missing whitespace in help-for-help
Stefan Kangas [Tue, 27 Apr 2021 20:53:04 +0000 (22:53 +0200)]
Avoid missing whitespace in help-for-help

* lisp/help.el (help--for-help-make-commands): Avoid missing
whitespace before description of command.
Problem reported by Dmitry Gutov <dgutov@yandex.ru>.

3 years agoFix loading problem in Tramp
Michael Albinus [Tue, 27 Apr 2021 18:56:07 +0000 (20:56 +0200)]
Fix loading problem in Tramp

* lisp/net/tramp.el (tramp-autoload-file-name-handler): Load also
tramp-compat.el.

3 years ago; * src/comp.c: Fix typos.
Eli Zaretskii [Tue, 27 Apr 2021 18:51:57 +0000 (21:51 +0300)]
; * src/comp.c: Fix typos.

3 years ago; Fix typos
Stefan Kangas [Tue, 27 Apr 2021 16:54:37 +0000 (18:54 +0200)]
; Fix typos

3 years ago(affixation-function): Allow only three-element list elements
Daniel Mendler [Tue, 27 Apr 2021 16:44:41 +0000 (19:44 +0300)]
(affixation-function): Allow only three-element list elements

Restrict the definition of the `affixation-function`.  The function
must return a list of three element lists.  Since the
`affixation-function` is part of the widely used `completing-read` API
a simplification is helpful for both authors of completion UIs and
authors of completion tables.

* doc/lispref/minibuf.texi: Update documentation.
* lisp/minibuffer.el: Update documentation.
* lisp/simple.el (read-extended-command--affixation):
Return three-element lists.

https://lists.gnu.org/archive/html/emacs-devel/2021-04/msg01193.html

3 years agoCalc: control digits after decimal point (bug#47302)
Mattias Engdegård [Tue, 27 Apr 2021 15:36:15 +0000 (17:36 +0200)]
Calc: control digits after decimal point (bug#47302)

Calc normally displays a trailing decimal point for floats with no
fractional part, like '12.'. Some uses require at least one digit
after the point; add the governing variable calc-digit-after-point.

* lisp/calc/calc.el (calc-digit-after-point): New variable.
(math-format-number): Use it.
* test/lisp/calc/calc-tests.el (calc-display-digit-after-point):
New test.

3 years ago; * lisp/emacs-lisp/comp.el: Fix typos. Add LocalWords.
Stefan Kangas [Tue, 27 Apr 2021 12:17:44 +0000 (14:17 +0200)]
; * lisp/emacs-lisp/comp.el: Fix typos.  Add LocalWords.

3 years ago; * test/infra/gitlab-ci.yml: Add local variable.
Michael Albinus [Tue, 27 Apr 2021 10:28:02 +0000 (12:28 +0200)]
; * test/infra/gitlab-ci.yml: Add local variable.

3 years agoMajor rewrite of adjust_frame_size
Martin Rudalics [Tue, 27 Apr 2021 07:53:42 +0000 (09:53 +0200)]
Major rewrite of adjust_frame_size

Have adjust_frame_size pass native frame sizes to backends
instead of text sizes.  Expand frame size history management.
Drop PIXELWISE argument from change_frame_size and convert
native to text sizes only when calling adjust_frame_size.  Use
convention in arguments that -1 instead of 0 means that no size
change is required.  When adjusting frame sizes pick up delayed
size changes (Bug#46827).

* lisp/frame.el (frame-notice-user-settings, make-frame): Don't
set frame size history.
(frame--size-history): Rewrite doc-string.  Handle new formats
of `frame-size-history' entries.
* src/dispextern.h (delayed_size_change): Extern it.
(change_frame_size): Drop last argument from extern.
* src/dispnew.c (delayed_size_change): Make it global.
(handle_window_change_signal): Reformat.  Drop last argument
from change_frame_size call.
(do_pending_window_change, init_display_interactive): Drop last
argument from change_frame_size call.
(change_frame_size_1): NEW_WIDTH and NEW_HEIGHT now specify
native sizes.  Drop last argument PIXELWISE.  Queue a change
when it either differs from F's current pixel sizes or F's
previously queued sizes.  Inject frame_size_history_extra call
when queuing.  Adopt convention that for queued sizes -1 means
that no size change is required.  Convert from native to text
sizes when calling adjust_frame_size.
(change_frame_size): Drop last argument PIXELWISE and drop it
also in change_frame_size_1 calls.
* src/frame.c (frame_size_history_add): Remove.
(frame_inhibit_resize): Remove call to frame_size_history_add.
(set_menu_bar_lines, set_tab_bar_lines): Simplify.  Drop last
argument from change_frame_size call.
(frame_windows_min_size): No more static.
(keep_ratio): Minor rewrite using macros.
(frame_size_history_adjust, frame_size_history_plain)
(frame_size_history_extra): New functions.
(adjust_frame_size): Major rewrite.  Adopt new convention that
negative values for new sizes mean no change.  Pick up delayed
size changes from F's new_width and new_height slots
(Bug#46827).  Call set_window_size_hook with native instead of
text sizes.  Do not sanitize window sizes any more.  Call
frame_size_history_adjust instead of frame_size_history_add.
Always set F's resized_p slot to true.
(make_frame): Initialize new_width and new_height slots to -1.
Simplify setup of initial sizes and an adjust_frame_size call.
(Fframe_parameters): Drop processing F's new_pixelwise slot.
(check_frame_pixels): Reorder to make declarations appear first.
(Fset_frame_height, Fset_frame_width, Fset_frame_size): Pass
explicit width and height values to adjust_frame_size instead of
-1.
(gui_set_frame_parameters): Minor rewrite making sure that
explicit sizes and the corresponding parameter are passed to
adjust_frame_size.  Remove frame_size_history_add call.
(gui_figure_window_size): Drop last two arguments.  Simplify
assignment of initial size.  Set new_height and new_width slots
to -1.  Use adjust_frame_size to set sizes instead of returning
them to caller.
(syms_of_frame): Drop symbols used by frame size history; these
are now built on-the-fly.  Also drop some menu bar related
symbols in favor of Qmenu_bar_lines.
* src/frame.h (struct frame): Remove new_pixelwise.
(SET_FRAME_COLS, SET_FRAME_LINES, SET_FRAME_WIDTH)
(SET_FRAME_HEIGHT): Remove macros.
(frame_size_history_add): Remove externs.
(frame_windows_min_size, frame_size_history_plain)
(frame_size_history_extra): Add externs.
(FRAME_WINDOWS_WIDTH, FRAME_WINDOWS_HEIGHT): Rename to
FRAME_INNER_WIDTH and FRAME_INNER_HEIGHT.
(gui_figure_window_size): Drop last two arguments from
extern.
* src/gtkutil.c (xg_frame_resized): Rename arguments to WIDTH
and HEIGHT.  Consult delayed_size_change to handle case where
WIDTH and HEIGHT do not match F's new_width and new_height
values.  Call change_frame_size with native sizes and without
PIXELWISE argument.  Instead of frame_size_history_add call
frame_size_history_extra.
(xg_frame_set_char_size): WIDTH and HEIGHT are native sizes now;
fix adjust_frame_size call accordingly.  Instead of
frame_size_history_add call frame_size_history_extra.
(style_changed_cb): Call xg_frame_set_char_size with native
instead of text sizes.
(tb_size_cb): Remove frame_size_history_add call.  Call
adjust_frame_size with INHIBIT 5.
(free_frame_tool_bar, xg_change_toolbar_position): Remove
frame_size_history_add call.
(update_frame_tool_bar): Call adjust_frame_size with INHIBIT 2
and let it handle frame_inhibit_implied_resize and
fullheight/-width.  Remove frame_size_history_add call.
* src/keyboard.c (Fsuspend_emacs): Call change_frame_size with
native sizes.
* src/nsfns.m (ns_set_tool_bar_lines): Call adjust_frame_size
with INHIBIT 2 and let it handle frame_inhibit_implied_resize
and fullheight/-width.  Remove frame_size_history_add call.
(Fx_create_frame): Drop two last arguments in
gui_figure_window_size call.  Do not SET_FRAME_WIDTH and
SET_FRAME_HEIGHT, the adjust_frame_size in
gui_figure_window_size did that already.
* src/nsterm.m (ns_set_window_size): Drop PIXELWISE argument and
its processing; WIDTH and HEIGHT represent native pixel sizes
now.  Call change_frame_size with native sizes.  Remove call to
frame_size_history_add.
([EmacsView viewDidResize:]): Call change_frame_size with native
sizes.
* src/term.c (Fresume_tty): Call change_frame_size with native
sizes.
* src/termhooks.h (*set_window_size_hook): Drop last argument
PIXELWISE.
* src/w32fns.c (w32_change_tab_bar_height)
(w32_change_tool_bar_height): Fix handling of these in the initial
phase before they have been resized at least once.
(Fx_create_frame, w32_create_tip_frame): Drop two last arguments
in gui_figure_window_size call.  Do not SET_FRAME_WIDTH and
SET_FRAME_HEIGHT (or SET_FRAME_COLS and SET_FRAME_LINES), the
adjust_frame_size in gui_figure_window_size did that already.
* src/w32inevt.c (resize_event, maybe_generate_resize_event):
Pass native sizes to change_frame_size.
* src/w32term.c (w32_read_socket): When WM_WINDOWPOSCHANGED pass
native sizes to change_frame_size.
(w32_new_font): Recalculate FRAME_TAB_BAR_HEIGHT.  Simplify
code.
(w32fullscreen_hook): Call change_frame_size with native sizes.
(w32_set_window_size): Drop argument PIXELWISE and its
processing; WIDTH and HEIGHT are native sizes now.  Remove
frame_size_history_add calls.  Pass native sizes to
change_frame_size.
* src/widget.c (set_frame_size): Set width and height of widget
directly.  Call frame_size_history_plain instead of
frame_size_history_add.
(update_from_various_frame_slots): Call
frame_size_history_extra.
(EmacsFrameRealize): Call frame_size_history_plain.
(EmacsFrameResize): Call change_frame_size with native sizes.
Call frame_size_history_extra instead of frame_size_history_add.
(EmacsFrameSetCharSize): Call frame_size_history_extra.  Drop
PIXELWISE argument in x_set_window_size call and specify pixels.
(pixel_to_text_size): Remove function.
* src/xdisp.c (resize_mini_window): Replace FRAME_WINDOWS_HEIGHT
with FRAME_INNER_HEIGHT.
(redisplay_tab_bar): Don't set tab_bar_redisplayed when we did
not redisplay it.
(redisplay_tool_bar): Don't call it for external tool bar.
Don't set tool_bar_redisplayed when we did not redisplay it.
(redisplay_window): When the tool bar is external call
update_frame_tool_bar directly.
* src/xfns.c (x_set_menu_bar_lines): Call adjust_frame_size only
if number of menu bar lines changed and fix 6th argument.
(x_change_tab_bar_height, x_change_tool_bar_height): Fix
handling of these in the initial phase before they have been
resized at least once.
(Fx_create_frame, x_create_tip_frame): Drop two last arguments
in gui_figure_window_size call.  Do not SET_FRAME_WIDTH and
SET_FRAME_HEIGHT (or SET_FRAME_COLS and SET_FRAME_LINES), the
adjust_frame_size in gui_figure_window_size did that already.
* src/xmenu.c (update_frame_menubar): Fix 6th arg of
adjust_frame_size call.
(free_frame_menubar): For Motif frames fix fullscreen and
`frame-inhibit-implied-resize' handling.  Fix 6th arg of
adjust_frame_size calls.
* src/xterm.c (x_net_wm_state): Remove call to
frame_size_history_add.
(handle_one_xevent): For PropertyNotify and UnmapNotify events
add frame_size_history_plain calls.  For MapNotify and
ConfigureNotify events add a frame_size_history_extra call.  For
ConfigureNotify events also handle delayed size changes and call
change_frame_size with native sizes.
(x_new_font): Recalculate FRAME_TAB_BAR_HEIGHT.  Simplify code.
(x_handle_net_wm_state): Remove frame_size_history_add call.
(x_check_fullscreen): Remove frame_size_history_add call.  Call
change_frame_size with native height.
(x_set_window_size_1): WIDTH and HEIGHT are now native.  Remove
some frame_size_history_add calls and add frame_size_history_extra
calls instead.  If the frame is not visible call adjust_frame_size
directly instead of calling change_frame_size.
(x_set_window_size): Drop PIXELWISE argument.  WIDTH and HEIGHT
represent native sizes now.
(x_make_frame_visible, x_make_frame_invisible): Call
frame_size_history_plain.
* src/xterm.h (x_set_window_size): Drop last argument from
extern declaration.

3 years agoDoc fixes for comp.el
Glenn Morris [Tue, 27 Apr 2021 05:18:14 +0000 (22:18 -0700)]
Doc fixes for comp.el

* lisp/emacs-lisp/comp.el (comp-deferred-compilation-deny-list)
(comp-bootstrap-deny-list, comp-pred-to-cstr, make-comp-mvar)
(comp-mvar-used-p, comp-async-compilation): Doc fixes.

3 years agoFix some custom types in comp.el
Glenn Morris [Tue, 27 Apr 2021 05:09:46 +0000 (22:09 -0700)]
Fix some custom types in comp.el

* lisp/emacs-lisp/comp.el (comp-deferred-compilation-deny-list)
(comp-bootstrap-deny-list, comp-never-optimize-functions)
(comp-async-env-modifier-form, comp-native-driver-options):
Fix :type (`list' on its own isn't even a valid type).

3 years ago* lisp/erc/erc.el: Add past maintainer Michael Olson to Contributors.
Amin Bandali [Tue, 27 Apr 2021 03:58:05 +0000 (23:58 -0400)]
* lisp/erc/erc.el: Add past maintainer Michael Olson to Contributors.

3 years agoFix compilation warnings in non-toolkit builds
Lars Ingebrigtsen [Tue, 27 Apr 2021 02:25:23 +0000 (04:25 +0200)]
Fix compilation warnings in non-toolkit builds

* src/xterm.c (x_create_toolkit_scroll_bar)
(x_create_horizontal_toolkit_scroll_bar): String constants for
XtSetArg are defined as const strings (in
/usr/include/X11/Xaw3d/ThreeD.h, for instance), but the argument
in XtSetArg is defined as either a const char* or a regular char*
in /usr/include/X11/Intrinsic.h.  Cast the argument to String
(which should be correct on all platforms, hopefully) to avoid a
compilation warning (bug#47452).

3 years agoRename abnormal hook to comp-async-cu-done-functions
Stefan Kangas [Tue, 27 Apr 2021 01:37:43 +0000 (03:37 +0200)]
Rename abnormal hook to comp-async-cu-done-functions

* lisp/emacs-lisp/comp.el (comp-async-cu-done-functions): Rename
from 'comp-async-cu-done-hook' to reflect that it is an abnormal
hook.  Doc fix and update single caller.

3 years agoFix failing subr test
Lars Ingebrigtsen [Mon, 26 Apr 2021 23:31:52 +0000 (01:31 +0200)]
Fix failing subr test

* test/lisp/subr-tests.el (subr-tests-bug22027): Fix mocked
signature of `read-string' (bug#48022).

3 years agoFix failing auth-source test
Lars Ingebrigtsen [Mon, 26 Apr 2021 23:27:58 +0000 (01:27 +0200)]
Fix failing auth-source test

* test/lisp/auth-source-tests.el
(auth-source-test-secrets-create-secret): Fix test failing because
the mocked `read-string' had the wrong interface.

3 years agoEnsure that we get an X-Draft-From headers
Adam Sjøgren [Mon, 26 Apr 2021 23:17:57 +0000 (01:17 +0200)]
Ensure that we get an X-Draft-From headers

* lisp/gnus/gnus-msg.el (gnus-setup-message): Ensure that we get an
X-Draft-From headers (bug#48049).

3 years ago* lisp/emacs-lisp/package.el: Fix use of `find-library-name`
Stefan Monnier [Mon, 26 Apr 2021 22:40:09 +0000 (18:40 -0400)]
* lisp/emacs-lisp/package.el: Fix use of `find-library-name`

That function caused a warning for a good reason.
Don't just declare it and hope it will be available.

(package--list-of-conflicts): Require `find-func` explicitly before
declaring the function.  Also don't ignore all errors but only
the `file-error`s which will be emitted by `find-library-name`
in normal circumstances.

* lisp/emacs-lisp/find-func.el (find-library-name): Signal a `file-error`
Instead of a generic `error`.

3 years ago* lisp/emacs-lisp/comp-cstr.el (comp-ctxt): Initialize it.
Andrea Corallo [Mon, 26 Apr 2021 21:13:41 +0000 (23:13 +0200)]
* lisp/emacs-lisp/comp-cstr.el (comp-ctxt): Initialize it.

3 years agoRework where `comp-ctxt' is defined.
Andrea Corallo [Mon, 26 Apr 2021 20:58:08 +0000 (22:58 +0200)]
Rework where `comp-ctxt' is defined.

* test/lisp/emacs-lisp/comp-cstr-tests.el (comp-ctxt): Remove
`comp-ctxt' definition.
* lisp/emacs-lisp/comp.el (comp-ctxt): Likewise.
* lisp/emacs-lisp/comp-cstr.el (comp-ctxt): Define it here.

3 years ago* lisp/emacs-lisp/comp.el: Make it loadable in vanilla builds (bug#48021).
Andrea Corallo [Mon, 26 Apr 2021 20:45:08 +0000 (22:45 +0200)]
* lisp/emacs-lisp/comp.el: Make it loadable in vanilla builds (bug#48021).

3 years ago* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix string-search.
Andrea Corallo [Mon, 26 Apr 2021 20:31:08 +0000 (22:31 +0200)]
* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix string-search.

3 years agoSmall tweaks to gnus-registry reindexing messaging
Eric Abrahamsen [Fri, 5 Mar 2021 00:53:30 +0000 (16:53 -0800)]
Small tweaks to gnus-registry reindexing messaging

* lisp/gnus/gnus-registry.el (gnus-registry-fixup-registry): Use
`seq-set-equal-p' so we don't care about list element ordering.  Don't
show messages within `registry-reindex' if we aren't at gnus-verbose
level 9.

3 years agoFix previous emake adjustment
Lars Ingebrigtsen [Sun, 25 Apr 2021 19:11:48 +0000 (21:11 +0200)]
Fix previous emake adjustment

3 years agoMake use of `ert-resource-file' `ert-resource-directory' in comp-tests
Andrea Corallo [Mon, 26 Apr 2021 18:01:50 +0000 (20:01 +0200)]
Make use of `ert-resource-file' `ert-resource-directory' in comp-tests

* test/src/comp-resources/comp-test-pure.el: Rename.
* test/src/comp-resources/comp-test-funcs.el: Likewise.
* test/src/comp-resources/comp-test-funcs-dyn.el: Likewise.
* test/src/comp-resources/comp-test-45603.el: Likewise.
* test/src/comp-tests.el (comp-test-src, comp-test-dyn-src): Use
`ert-resource-file'.
(comp-tests-bootstrap): Use ert-resource-directory.
(comp-tests-45603-1, comp-tests-pure): Use `ert-resource-file'.

3 years ago* Use `expand-file-name' in place of `concat' in comp-tests.el
Andrea Corallo [Mon, 26 Apr 2021 15:28:38 +0000 (17:28 +0200)]
* Use `expand-file-name' in place of `concat' in comp-tests.el

* test/src/comp-tests.el (comp-test-src,
comp-test-dyn-src) (comp-tests-bootstrap, comp-tests-pure,
comp-test-src): Use `expand-file-name' in place of `concat'.

3 years agoMove native compiler test data into proper directory (bug#48031)
Andrea Corallo [Mon, 26 Apr 2021 15:03:19 +0000 (17:03 +0200)]
Move native compiler test data into proper directory (bug#48031)

* test/src/comp-tests-resources/comp-test-45603.el: Rename.
* test/src/comp-tests-resources/comp-test-funcs-dyn.el: Likewise.
* test/src/comp-tests-resources/comp-test-funcs.el: Likewise.
* test/src/comp-tests-resources/comp-test-pure.el: Likewise.
* test/src/comp-tests.el (comp-test-directory): Update.

3 years ago* test/src/comp-tests.el: Fix it for non native compiled build (bug#48031).
Andrea Corallo [Mon, 26 Apr 2021 14:58:36 +0000 (16:58 +0200)]
* test/src/comp-tests.el: Fix it for non native compiled build (bug#48031).

3 years ago* Fix comp-cstr tests for vanilla build (bug#48021)
Andrea Corallo [Mon, 26 Apr 2021 14:49:22 +0000 (16:49 +0200)]
* Fix comp-cstr tests for vanilla build (bug#48021)

* test/lisp/emacs-lisp/comp-cstr-tests.el (comp-ctxt): Fix tests
for vanilla build (bug#48021)

3 years ago* lisp/emacs-lisp/comp.el (comp-accept-and-process-async-output): Fix regexp.
Andrea Corallo [Mon, 26 Apr 2021 13:59:06 +0000 (15:59 +0200)]
* lisp/emacs-lisp/comp.el (comp-accept-and-process-async-output): Fix regexp.

3 years agoSome rearrangement in gitlab-ci.yml
Michael Albinus [Mon, 26 Apr 2021 13:53:59 +0000 (15:53 +0200)]
Some rearrangement in gitlab-ci.yml

* test/infra/gitlab-ci.yml (test-filenotify-gio, test-gnustep):
Add 'needs:' clause.
(build-native-bootstrap-speed0, build-native-bootstrap-speed1)
(build-native-bootstrap-speed2): Rename from 'test-*'.  Do not use
'--without-makeinfo'.

3 years agoFix typo in tramp-get-remote-gid
Dario Gjorgjevski [Mon, 26 Apr 2021 07:57:23 +0000 (09:57 +0200)]
Fix typo in tramp-get-remote-gid

* lisp/net/tramp.el (tramp-get-remote-gid): Pass the correct
operation to find-file-name-handler.  (Bug#48026)

3 years ago* src/editfns.c (Fpropertize): Doc fix; reference Info manual.
Stefan Kangas [Mon, 26 Apr 2021 02:39:51 +0000 (04:39 +0200)]
* src/editfns.c (Fpropertize): Doc fix; reference Info manual.

3 years ago; NEWS copyedits
Glenn Morris [Mon, 26 Apr 2021 00:49:42 +0000 (17:49 -0700)]
; NEWS copyedits

3 years ago; Add 2021 to copyright years
Glenn Morris [Mon, 26 Apr 2021 00:24:48 +0000 (17:24 -0700)]
; Add 2021 to copyright years

3 years ago* lisp/url/url-proxy.el (url-find-proxy-for-url): Minor simplification
Stefan Monnier [Sun, 25 Apr 2021 21:29:01 +0000 (17:29 -0400)]
* lisp/url/url-proxy.el (url-find-proxy-for-url): Minor simplification

3 years ago* lisp/startup.el (comp-eln-load-path): Silence a warning.
Andrea Corallo [Sun, 25 Apr 2021 18:56:32 +0000 (20:56 +0200)]
* lisp/startup.el (comp-eln-load-path): Silence a warning.

3 years agoHack around problems in Turkish environments in url-proxy
Lars Ingebrigtsen [Sun, 25 Apr 2021 18:54:26 +0000 (20:54 +0200)]
Hack around problems in Turkish environments in url-proxy

* lisp/url/url-proxy.el (url-find-proxy-for-url): Work around a
problem in Turkish language environments (where a downcased I is
?ı (bug#44604).

3 years ago* lisp/emacs-lisp/comp.el (no-native-compile): Minor doc fixes.
Stefan Kangas [Sun, 25 Apr 2021 18:47:20 +0000 (20:47 +0200)]
* lisp/emacs-lisp/comp.el (no-native-compile): Minor doc fixes.

3 years ago* lisp/help-macro.el: Remove stale Change Log.
Stefan Kangas [Sun, 25 Apr 2021 15:33:41 +0000 (17:33 +0200)]
* lisp/help-macro.el: Remove stale Change Log.

3 years agoAdjust regexp to extra native-comp lines
Lars Ingebrigtsen [Sun, 25 Apr 2021 18:36:01 +0000 (20:36 +0200)]
Adjust regexp to extra native-comp lines

3 years agoMerge branch 'feature/native-comp' into into trunk
Andrea Corallo [Sun, 25 Apr 2021 18:06:22 +0000 (20:06 +0200)]
Merge branch 'feature/native-comp' into into trunk

3 years agoRevert window/winner changes (Revert 0454bfd3313)
Lars Ingebrigtsen [Sun, 25 Apr 2021 17:47:06 +0000 (19:47 +0200)]
Revert window/winner changes (Revert 0454bfd3313)

See bug#23621 for an explanation.

3 years agoCC Mode: Get proper search limits in c-font-lock-cut-off-declarators
Alan Mackenzie [Sun, 25 Apr 2021 17:40:16 +0000 (17:40 +0000)]
CC Mode: Get proper search limits in c-font-lock-cut-off-declarators

* lisp/progmodes/cc-fonts.el (c-font-lock-cut-off-declarators): Instead of
using a crude 2,000 characters back limit for backward searching, which is
erroneous when that point is in a literal, use the already calculated
c-determine-limit result.

3 years agoMerge from origin/emacs-27
Glenn Morris [Sun, 25 Apr 2021 16:16:09 +0000 (09:16 -0700)]
Merge from origin/emacs-27

7d5b973959 (origin/emacs-27) * doc/misc/cl.texi (For Clauses): Minor ...
4570781f8d ; * doc/lispref/files.texi (Directory Names): Add missing ...
1b52fd538d Minor update for make-tarball.txt
8efb8491b2 * doc/misc/cl.texi (Iteration Clauses): fix `never' clause...
0873134682 ; Fix Texinfo in last change to minibuf.texi.
cad8913c89 Improve filling-related documentation
2b7eed23eb ; * doc/lispref/keymaps.texi (Easy Menu): Fix typo.
47fc92cefc Fix reference to "yanking" in the main Emacs manual
1789dcdb35 Improve documentation of 'map-y-or-n-p'

3 years agoAdd more scroll key bindings to make-help-screen
Stefan Kangas [Sun, 25 Apr 2021 14:57:47 +0000 (16:57 +0200)]
Add more scroll key bindings to make-help-screen

* lisp/help-macro.el (make-help-screen): Add bindings to scroll on
<PageUp>, <PageDown>, <up>, <down>.

3 years agoFix the handling of the Delete key in help screens.
Gregory Heytings [Sun, 25 Apr 2021 13:30:15 +0000 (13:30 +0000)]
Fix the handling of the Delete key in help screens.

* lisp/help-macro.el (make-help-screen): Handle the Delete key
in help screens as in Emacs 23 and earlier.

Copyright-paperwork-exempt: yes

3 years ago; * lisp/help.el (help-for-help): Fix thinko.
Stefan Kangas [Sun, 25 Apr 2021 11:57:32 +0000 (13:57 +0200)]
; * lisp/help.el (help-for-help): Fix thinko.

3 years ago* lisp/ses.el: Doc fixes.
Stefan Kangas [Sun, 25 Apr 2021 11:12:48 +0000 (13:12 +0200)]
* lisp/ses.el: Doc fixes.

3 years agoDon't hard-code face of "Install" button
Stefan Kangas [Sun, 25 Apr 2021 10:59:14 +0000 (12:59 +0200)]
Don't hard-code face of "Install" button

* lisp/emacs-lisp/package.el (package-make-button): Use the
'custom-button' face for the "Install" button.  (Bug#47944)

3 years agoRemove redundant #' before lambda in printing.el
Stefan Kangas [Sun, 25 Apr 2021 10:14:17 +0000 (12:14 +0200)]
Remove redundant #' before lambda in printing.el

* lisp/printing.el (pr-menu-create, pr-eval-setting-alist)
(pr-complete-alist, pr-file-list, pr-ps-file-list)
(pr-insert-section-1, pr-insert-section-2)
(pr-insert-section-4, pr-insert-section-5, pr-choice-alist)
Remove redundant #' before lambda.

3 years ago* src/keyboard.c (Flossage_size): Improve prompt.
Stefan Kangas [Sun, 25 Apr 2021 09:49:37 +0000 (11:49 +0200)]
* src/keyboard.c (Flossage_size): Improve prompt.

3 years agoShow correct lossage size in help-for-help
Stefan Kangas [Sun, 25 Apr 2021 09:46:00 +0000 (11:46 +0200)]
Show correct lossage size in help-for-help

* lisp/help.el (help-for-help): Show correct lossage size.  Add
trailing newline.
Suggested by Gregory Heytings <gregory@heytings.org>.

3 years ago* doc/lispref/macros.texi (Eval During Expansion): Copy edit.
Štěpán Němec [Sat, 24 Apr 2021 19:19:48 +0000 (21:19 +0200)]
* doc/lispref/macros.texi (Eval During Expansion): Copy edit.

3 years ago(completion-all-sorted-completions): Fix history use with boundaries
Daniel Mendler [Mon, 19 Apr 2021 22:01:44 +0000 (00:01 +0200)]
(completion-all-sorted-completions): Fix history use with boundaries

Preprocess the history (and the default) through the new function
`minibuffer--sort-preprocess-history` to filter out the completion
base for completion tables with boundaries (in particular the file
completion table).

* lisp/minibuffer.el (minibuffer--sort-preprocess-history_: New function.
(completion-all-sorted-completions): Use it.
* test/lisp/minibuffer-tests.el (completion-all-sorted-completions):
Add tests for various combinations of with/without history/base/default.

3 years ago* lisp/progmodes/project.el: Use project-prefixed-buffer-name in more places.
Juri Linkov [Sat, 24 Apr 2021 21:54:01 +0000 (00:54 +0300)]
* lisp/progmodes/project.el: Use project-prefixed-buffer-name in more places.

(project-shell, project-eshell): Use project-prefixed-buffer-name (bug#47975).
(project-compilation-buffer-name-function): Add :version tag.

3 years ago* doc/misc/cl.texi (For Clauses): Minor copyedits.
Philipp Stephani [Sat, 24 Apr 2021 21:29:58 +0000 (23:29 +0200)]
* doc/misc/cl.texi (For Clauses): Minor copyedits.

3 years ago; * doc/lispref/files.texi (Directory Names): Add missing parenthesis
Philipp Stephani [Sat, 24 Apr 2021 21:22:44 +0000 (23:22 +0200)]
; * doc/lispref/files.texi (Directory Names): Add missing parenthesis

3 years ago* lisp/mpc.el: Avoid (implicit) `eval`; prefer #' to quote function names
Stefan Monnier [Sat, 24 Apr 2021 19:57:22 +0000 (15:57 -0400)]
* lisp/mpc.el: Avoid (implicit) `eval`; prefer #' to quote function names

(mpc-format): Compose functions instead of constructing
source-code expressions at run time.
Rename `mpc-pred` property to `mpc--uptodate-p`.
(mpc-status-buffer-refresh): Adjust to the new property name.

3 years ago* lisp/svg.el: Fix typo in sample code; add minor optimization
Stefan Monnier [Sat, 24 Apr 2021 18:07:12 +0000 (14:07 -0400)]
* lisp/svg.el: Fix typo in sample code; add minor optimization

(svg--elliptical-arc-command, svg--moveto-command)
(svg--lineto-command): Use `mapcan`.

3 years ago* doc/lispref/macros.texi (Eval During Expansion): Fix fixme
Stefan Monnier [Sat, 24 Apr 2021 17:45:08 +0000 (13:45 -0400)]
* doc/lispref/macros.texi (Eval During Expansion): Fix fixme

3 years agoSimlify top-level Makefile since admin is always included
Glenn Morris [Sat, 24 Apr 2021 17:05:17 +0000 (10:05 -0700)]
Simlify top-level Makefile since admin is always included

* Makefile.in (clean_dirs, distclean_dirs, maintainer_clean_dirs):
Add admin directories.
(clean, distclean, bootstrap-clean, maintainer-clean): Simplify.
(maybeclean_dirs): Remove - this dates to when admin/ was not
included in tar files.

3 years ago; Fix some typos in doc strings and manuals
Štěpán Němec [Tue, 21 Apr 2020 08:51:45 +0000 (10:51 +0200)]
; Fix some typos in doc strings and manuals

3 years ago* lisp/help.el (help--for-help-make-sections): Fix typo.
Stefan Kangas [Sat, 24 Apr 2021 16:05:15 +0000 (18:05 +0200)]
* lisp/help.el (help--for-help-make-sections): Fix typo.

3 years agoRedesign and improve the help-for-help (C-h C-h) command
Stefan Kangas [Sat, 24 Apr 2021 13:18:03 +0000 (15:18 +0200)]
Redesign and improve the help-for-help (C-h C-h) command

* lisp/help.el (help-for-help): Redesign help screen; add sections,
rearrange and reword.
(help-for-help-header): New face.
(help--for-help-make-commands, help--for-help-make-sections): New
functions.
(help-for-help-buffer-name): New variable.

* lisp/help-macro.el (make-help-screen): New optional argument
BUFFER-NAME.  Fontify keys.

This change was discussed in:
https://lists.gnu.org/r/emacs-devel/2021-02/msg01695.html
https://lists.gnu.org/r/emacs-devel/2021-03/msg00670.html
https://lists.gnu.org/r/emacs-devel/2021-04/msg00292.html

3 years agoImprove detection of pdumper file and *.eln files
Eli Zaretskii [Sat, 24 Apr 2021 13:01:19 +0000 (16:01 +0300)]
Improve detection of pdumper file and *.eln files

* src/emacs.c (load_pdump_find_executable): Resolve symlinks even
if argv[0] includes leading directories.  (Bug#46790)

3 years agoMinor update for make-tarball.txt
Eli Zaretskii [Sat, 24 Apr 2021 12:17:40 +0000 (15:17 +0300)]
Minor update for make-tarball.txt

* admin/make-tarball.txt (UPDATING THE EMACS WEB PAGES AFTER A
RELEASE): Update and enhance the section to make it easier to find
the banner and verify the updated pages are in place.

3 years ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 24 Apr 2021 12:00:13 +0000 (15:00 +0300)]
; * etc/NEWS: Fix last change.

3 years ago* doc/misc/cl.texi (Iteration Clauses): fix `never' clause typo
Jorge P. de Morais Neto [Thu, 22 Apr 2021 23:16:33 +0000 (20:16 -0300)]
* doc/misc/cl.texi (Iteration Clauses): fix `never' clause typo

This fixes bug#47962.

Copyright-paperwork-exempt: yes

3 years agoObsolete the TAB binding in *xref* buffers
Eli Zaretskii [Sat, 24 Apr 2021 09:54:44 +0000 (12:54 +0300)]
Obsolete the TAB binding in *xref* buffers

* doc/emacs/maintaining.texi (Xref Commands): Remove the
description of the TAB binding.  Enhance the description of the
RET binding.  (Bug#44611)

* etc/NEWS: Announce the obsolescence of TAB binding in XREF.

* lisp/progmodes/xref.el (xref-goto-xref): Improve doc string.

3 years ago* lisp/rot13.el: Improve documentation. (Bug#47970)
Stefan Kangas [Sat, 24 Apr 2021 08:47:50 +0000 (10:47 +0200)]
* lisp/rot13.el: Improve documentation.  (Bug#47970)

3 years agoImprove diagnostics of loading *.eln files
Eli Zaretskii [Sat, 24 Apr 2021 08:20:50 +0000 (11:20 +0300)]
Improve diagnostics of loading *.eln files

* src/pdumper.c (dump_do_dump_relocation): Improve diagnostics
when loading preloaded *.eln files fails.  (Bug#46790)

3 years ago* lisp/subr.el (remove-hook): Improve last change
Stefan Monnier [Fri, 23 Apr 2021 22:51:40 +0000 (18:51 -0400)]
* lisp/subr.el (remove-hook): Improve last change

Don't put a `hook--depth-alist` property if there isn't one already.

3 years agoFix thinko introduced in the last ERC patch (bug#47788)
Amin Bandali [Fri, 23 Apr 2021 22:49:37 +0000 (18:49 -0400)]
Fix thinko introduced in the last ERC patch (bug#47788)

* lisp/erc/erc-backend.el (erc-open-network-stream): Need to use apply
to call open-network-stream with the supplied arguments because of the
plist p of arguments.  Thanks to neverwas for pointing it out.