]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years ago* Do not check eln timestamp as superseded by source hashing (bug#43532)
Andrea Corallo [Thu, 15 Oct 2020 10:32:58 +0000 (12:32 +0200)]
* Do not check eln timestamp as superseded by source hashing (bug#43532)

* src/lread.c (maybe_swap_for_eln): Remove eln file timestamp
check given is now unnecessary.
(openp): Update for new 'maybe_swap_for_eln' signature.

4 years agoMerge remote-tracking branch 'savannah/master' into HEAD
Andrea Corallo [Wed, 14 Oct 2020 09:04:55 +0000 (11:04 +0200)]
Merge remote-tracking branch 'savannah/master' into HEAD

4 years agoUse form native compilation in `comp-trampoline-compile'
Andrea Corallo [Tue, 13 Oct 2020 20:48:22 +0000 (22:48 +0200)]
Use form native compilation in `comp-trampoline-compile'

* lisp/emacs-lisp/comp.el (comp-trampoline-sym): Remove function.
(comp-trampoline-filename): As we are introducing an ABI change in
the eln trampoline format change the trampoline filename to
disambiguate.
(comp-trampoline-search): Rename from `comp-search-trampoline'
and return directly the trampoline.
(comp-trampoline-compile): Rework to use native form compilation
in place of un-evaluating a function and return directly the
trampoline.
(comp-subr-trampoline-install): Update for
`comp-trampoline-search' and `comp-trampoline-compile' new
interfaces.
* src/comp.c (Fcomp__install_trampoline): Store the trampoline
itself as value in `comp-installed-trampolines-h'.
(syms_of_comp): Doc update `comp-installed-trampolines-h'.

4 years ago* Add a test to verify form native compilation.
Andrea Corallo [Tue, 13 Oct 2020 19:43:01 +0000 (21:43 +0200)]
* Add a test to verify form native compilation.

* test/src/comp-tests.el (comp-deftest): Fix typo.
(compile-forms): New test.

4 years agoRework `native-compile' interface so it can return compiled functions
Andrea Corallo [Mon, 12 Oct 2020 20:34:57 +0000 (22:34 +0200)]
Rework `native-compile' interface so it can return compiled functions

* lisp/emacs-lisp/comp.el (native-compile): Return the compiled
function when the input is a symbol or a form.
* test/src/comp-tests.el (free-fun, tco, fw-prop): Update tests
for new `native-compile' interface.

4 years agoHave `native-elisp-load' return the last registerd function
Andrea Corallo [Mon, 12 Oct 2020 20:11:06 +0000 (22:11 +0200)]
Have `native-elisp-load' return the last registerd function

* lisp/emacs-lisp/comp.el (comp-emit-for-top-level): Synthesize
'top_level_run' so it returns the last value returned by
`comp--register-subr'.
* src/comp.c (load_comp_unit): Return what 'top_level_run'
returns.
(Fnative_elisp_load): Return what 'load_comp_unit' returns.
* src/comp.h (load_comp_unit): Update signature.

4 years ago* Allow for lambda forms as native compilation input
Andrea Corallo [Sat, 10 Oct 2020 20:07:59 +0000 (22:07 +0200)]
* Allow for lambda forms as native compilation input

* lisp/emacs-lisp/comp.el (comp-spill-lap-function): Add new
specialized method for compiling a lambda form.

4 years ago* Move context output computation in `comp-spill-lap-function'
Andrea Corallo [Sat, 10 Oct 2020 19:16:40 +0000 (21:16 +0200)]
* Move context output computation in `comp-spill-lap-function'

* lisp/emacs-lisp/comp.el (comp-spill-lap-function): Move
output filename computation here.
(native-compile): From here.

4 years ago* lisp/progmodes/grep.el: More fixes for 'lgrep' (bug#23590)
Juri Linkov [Wed, 14 Oct 2020 08:45:26 +0000 (11:45 +0300)]
* lisp/progmodes/grep.el: More fixes for 'lgrep' (bug#23590)

* lisp/progmodes/grep.el (grep-expand-template): Add new arg 'more-opts'.
(grep-use-directories-skip): New variable.
(lgrep): Set 'grep-use-directories-skip' to the result of 'grep-probe'.
Use "--directories=skip" when 'grep-use-directories-skip' is t.

4 years agoAdd option to highlight the 'next-error' error message
Ernesto Alfonso [Wed, 14 Oct 2020 05:45:21 +0000 (07:45 +0200)]
Add option to highlight the 'next-error' error message

* lisp/simple.el (next-error-message-highlight):
(next-error-message): New faces (bug#32676).
(next-error--message-highlight-overlay): New internal variable.
(next-error-message-highlight): New function.
(next-error-found): Call the function.

4 years agoAdd a new variable tab-first-completion
Alex Branham [Wed, 14 Oct 2020 05:26:58 +0000 (07:26 +0200)]
Add a new variable tab-first-completion

* doc/emacs/indent.texi (Indent Convenience): Mention it.

* doc/lispref/text.texi (Mode-Specific Indent): Document it.

* lisp/indent.el (tab-first-completion): New variable (bug#34787).
(indent-for-tab-command): Use it.

4 years agoRename dired-filename-at-point to avoid confusion
Lars Ingebrigtsen [Wed, 14 Oct 2020 05:01:46 +0000 (07:01 +0200)]
Rename dired-filename-at-point to avoid confusion

* lisp/dired-x.el (dired-x-guess-filename-at-point): Rename (bug#43961).
(dired-filename-at-point): Made into an obsolete alias, since the name
can be confused with the unrelated dired-file-name-at-point function.

4 years agoMark the return value from strerror as a constant
Philipp Klaus Krause [Wed, 14 Oct 2020 04:19:33 +0000 (06:19 +0200)]
Mark the return value from strerror as a constant

* src/emacs.c (main): Mark the return from strerror as a constant,
since it shouldn't be changed (bug#43982).

* lib-src/movemail.c (pfatal_and_delete): Ditto.

Copyright-paperwork-exempt: yes

4 years agoImprove package install/delete button action
Masahiro Nakamura [Wed, 14 Oct 2020 04:14:33 +0000 (06:14 +0200)]
Improve package install/delete button action

* lisp/emacs-lisp/package.el (package-install-button-action)
(package-delete-button-action): Run describe-package instead of
revert-buffer in order to use newer package-desc (bug#43983).

4 years agoFix name of the module .h files in the comments
Lars Ingebrigtsen [Wed, 14 Oct 2020 03:57:55 +0000 (05:57 +0200)]
Fix name of the module .h files in the comments

* src/emacs-module.c: Fix the name of the .h file in the comments.

4 years agoMove the new module unibyte function to the correct module-env.h file
Lars Ingebrigtsen [Wed, 14 Oct 2020 03:57:05 +0000 (05:57 +0200)]
Move the new module unibyte function to the correct module-env.h file

* src/module-env-28.h: Moved here from the -25.h file.

4 years ago* etc/NEWS (Calc): Note new precedence of '/' in TeX input mode.
Mattias Engdegård [Tue, 13 Oct 2020 18:01:51 +0000 (20:01 +0200)]
* etc/NEWS (Calc): Note new precedence of '/' in TeX input mode.

4 years agonnimap MODSEQ cleanup
Paul Eggert [Tue, 13 Oct 2020 17:21:40 +0000 (10:21 -0700)]
nnimap MODSEQ cleanup

* lisp/gnus/nnimap.el (nnimap-parse-flags):
Remove old hack that deletes MODSEQ entries in the buffer, as
Emacs now has bignums and so won't misparse MODSEQs (Bug#38938).

4 years agoeql doc improvements
Paul Eggert [Tue, 13 Oct 2020 17:04:21 +0000 (10:04 -0700)]
eql doc improvements

* doc/lispref/numbers.texi (Comparison of Numbers):
Copy some useful text from eql help string.
* src/fns.c (Feql): In doc string, say that eql also compares
integers by value.

4 years agoFix documentation of Outline cycling commands
Eli Zaretskii [Tue, 13 Oct 2020 16:39:11 +0000 (19:39 +0300)]
Fix documentation of Outline cycling commands

* lisp/outline.el (outline-mode-map): Fix wording of a comment.

* doc/emacs/text.texi (Outline Visibility): Fix wording and markup
of a recently added paragraph.  Improve indexing.

* etc/NEWS: Fix whitespace of a recently added entry.

4 years ago* etc/NEWS: Mention 'make_unibyte_string'; reformat modules entries.
Eli Zaretskii [Tue, 13 Oct 2020 16:30:31 +0000 (19:30 +0300)]
* etc/NEWS: Mention 'make_unibyte_string'; reformat modules entries.

4 years agoCalc: allow infinite binary word size (bug#43764)
Mattias Engdegård [Sat, 10 Oct 2020 16:02:49 +0000 (18:02 +0200)]
Calc: allow infinite binary word size (bug#43764)

Setting the word size ("b w") to 0 removes the word size clipping for
all bit operations (effectively as if a word size of -∞ had been set).
Rotation is disallowed; logical and arithmetic shifts behave
identically.

After a suggestion by Vincent Belaïche.

* lisp/calc/calc-bin.el (calc-word-size, math-binary-arg)
(math-binary-modulo-args, calcFunc-lsh, calcFunc-ash, calcFunc-rot)
(math-clip, math-format-twos-complement): Allow a word size of 0,
meaning -∞.
* test/lisp/calc/calc-tests.el
(calc-tests--not, calc-tests--and, calc-tests--or, calc-tests--xor)
(calc-tests--diff): New functions.
(calc-tests--clip, calc-tests--rot, calc-shift-binary): Extend to
cover word size 0.
(calc-bit-ops): New test.
* doc/misc/calc.texi (Binary Functions): Update manual.
* etc/NEWS: Announce the change.

4 years agoCalc: revert to old precedence of '/' in (La)TeX input mode
Mattias Engdegård [Sun, 11 Oct 2020 16:28:39 +0000 (18:28 +0200)]
Calc: revert to old precedence of '/' in (La)TeX input mode

Make the '/' precedence higher than that of '+' and '-' again,
partially reverting fda9b316f84 (bug#43902).

* lisp/calc/calc-lang.el (tex): Change precedence of '/'.
* test/lisp/calc/calc-tests.el (calc-latex-input): New test.

4 years agoCalc: make tests less chatty
Mattias Engdegård [Sun, 11 Oct 2020 09:24:03 +0000 (11:24 +0200)]
Calc: make tests less chatty

* test/lisp/calc/calc-tests.el (calc-extract-units, calc-convert-units)
(calc-matrix-determinant, calc-choose): Remove "Working..." messages.
(calc-tests--check-choose, calc-tests--explain-choose): Eliminate.

4 years agoAllow creating unibyte strings from Emacs modules
Lars Ingebrigtsen [Tue, 13 Oct 2020 04:51:06 +0000 (06:51 +0200)]
Allow creating unibyte strings from Emacs modules

* doc/lispref/internals.texi (Module Values): Document
make_unibyte_string (bug#34873).

* src/emacs-module.c (module_make_unibyte_string): New function.
(initialize_environment): Export it.

* src/module-env-25.h: Define it.

* test/data/emacs-module/mod-test.c (Fmod_test_return_unibyte):
Test it.

* test/src/emacs-module-tests.el (module/unibyte): Test it.

4 years agoPartially revert previous patch to emacs.service
Lars Ingebrigtsen [Tue, 13 Oct 2020 03:48:13 +0000 (05:48 +0200)]
Partially revert previous patch to emacs.service

* etc/emacs.service (ExecStop): Partially revert previous patch
for bug#37847, since: "This appears to break packages that rely on
`invocation-name' to be executable."

4 years agoAdd cycling commands to outline
Yuan Fu [Tue, 13 Oct 2020 03:14:21 +0000 (05:14 +0200)]
Add cycling commands to outline

* lisp/outline.el (outline--cycle-state, outline-has-subheading-p)
(outline-cycle, outline-cycle-buffer): New functions.
(outline-mode-map): Add key bindings for the two new commands.
(outline--cycle-buffer-state): New variable.
* doc/emacs/text.text (Outline Visibility): Add 'outline-cycle' and
'outline-cycle-buffer'.
* etc/NEWS (Outline): Record the change (bug#41130).

4 years agoMake read-char-choice less modal
Lars Ingebrigtsen [Tue, 13 Oct 2020 02:59:11 +0000 (04:59 +0200)]
Make read-char-choice less modal

* lisp/subr.el (read-char-choice): Use `read-char-from-minibuffer'
here (bug#42708) so that we're not as modal (and users can copy
the help buffer, if they should so want).

4 years agoMake diary fontify headers correctly (if the date has been customized)
Lars Ingebrigtsen [Tue, 13 Oct 2020 02:10:43 +0000 (04:10 +0200)]
Make diary fontify headers correctly (if the date has been customized)

* lisp/calendar/diary-lib.el (diary-fancy-display): Insert the
heading with the correct face, so that it doesn't have to be
re-matched later (which is generally impossible) (bug#13072).
(diary-fancy-date-pattern, diary-fancy-date-matcher): Make obsolete.
(diary-fancy-font-lock-keywords): Don't use.
(diary-fancy-font-lock-fontify-region-function): Don't use.

4 years agoDon't bind sort-fold-case when saving the custom-file
Mauro Aranda [Tue, 13 Oct 2020 01:32:17 +0000 (03:32 +0200)]
Don't bind sort-fold-case when saving the custom-file

* lisp/cus-edit.el (custom-save-variables, custom-save-faces): These
functions sort a list, not buffer text, so they don't need
to use sort-fold-case at all.  Remove the let-binding for
sort-fold-case (bug#43919).

4 years agoHave header-line-highlight inherit from mode-line-highlight
Lars Ingebrigtsen [Tue, 13 Oct 2020 01:25:36 +0000 (03:25 +0200)]
Have header-line-highlight inherit from mode-line-highlight

* lisp/faces.el (header-line-highlight): Inherit from
mode-line-highlight instead of highlight (bug#43926).  This is
consistent with header-line inheriting from mode-line.

4 years agomessage-insert-signature doc fix
Lars Ingebrigtsen [Tue, 13 Oct 2020 01:17:12 +0000 (03:17 +0200)]
message-insert-signature doc fix

* lisp/gnus/message.el (message-insert-signature): Clarify what
FORCE means.

4 years agoAdd a keybinding to the help menu to display manuals
Boruch Baum [Tue, 13 Oct 2020 01:09:19 +0000 (03:09 +0200)]
Add a keybinding to the help menu to display manuals

* lisp/help.el (help-for-help-internal): Add a keybinding to
prompt for and display a manual (bug#43956).

4 years ago* lisp/isearch.el (isearch-search): Set isearch-match-data in the right place.
Juri Linkov [Mon, 12 Oct 2020 19:56:35 +0000 (22:56 +0300)]
* lisp/isearch.el (isearch-search): Set isearch-match-data in the right place.

4 years agoFix some compilation warnings in non nativecomp build (bug#43892)
Brian Leung [Mon, 12 Oct 2020 18:55:38 +0000 (18:55 +0000)]
Fix some compilation warnings in non nativecomp build (bug#43892)

* lisp/emacs-lisp/advice.el (comp-subr-trampoline-install):
Declare function.
* lisp/emacs-lisp/find-func.el (comp-eln-to-el-h): Declare
variable.
* lisp/emacs-lisp/nadvice.el (comp-subr-trampoline-install):
Declare function.
* lisp/files.el (comp-eln-to-el-h): Declare variable.
* lisp/help.el (subr-native-lambda-list): Declare function.

4 years agoRevert "Fix some compilation warnings in non nativecomp build (bug#43892)"
Andrea Corallo [Mon, 12 Oct 2020 19:25:00 +0000 (21:25 +0200)]
Revert "Fix some compilation warnings in non nativecomp build (bug#43892)"

This reverts commit 6606ec8e313bf48a1ac7b63c52bfeb64c4257107.

4 years agoFix some compilation warnings in non nativecomp build (bug#43892)
Andrea Corallo [Mon, 12 Oct 2020 18:55:38 +0000 (18:55 +0000)]
Fix some compilation warnings in non nativecomp build (bug#43892)

* lisp/emacs-lisp/advice.el (comp-subr-trampoline-install):
Declare function.
* lisp/emacs-lisp/find-func.el (comp-eln-to-el-h): Declare
variable.
* lisp/emacs-lisp/nadvice.el (comp-subr-trampoline-install):
Declare function.
* lisp/files.el (comp-eln-to-el-h): Declare variable.
* lisp/help.el (subr-native-lambda-list): Declare function.

4 years agoFix man page title lines and timestamps
Stefan Kangas [Mon, 12 Oct 2020 18:59:14 +0000 (20:59 +0200)]
Fix man page title lines and timestamps

* doc/man/ebrowse.1:
* doc/man/emacs.1.in:
* doc/man/emacsclient.1:
* doc/man/etags.1: Update date to match last significant change.  Set
file local variable time-stamp-pattern.  Fix title line to match the
recommendations in "man man-pages".
Ref: https://lists.gnu.org/r/emacs-devel/2020-09/msg01002.html

4 years ago; Fix dbus-tests.el formatting
Michael Albinus [Mon, 12 Oct 2020 09:41:54 +0000 (11:41 +0200)]
; Fix dbus-tests.el formatting

4 years agoAdd interface arg to D-Bus PropertiesChanged signal.
Hugh Daschbach [Mon, 12 Oct 2020 09:37:27 +0000 (11:37 +0200)]
Add interface arg to D-Bus PropertiesChanged signal.

* lisp/net/dbus.el (dbus-register-property, dbus-property-handler):
Fix signal generation.  (Bug#43936)

* test/lisp/net/dbus-tests.el (dbus-test06-register-property-emits-signal):
Fix test.

4 years ago* lisp/proced.el: Fix behavior with variable-pitch `header-line` face
Stefan Monnier [Sun, 11 Oct 2020 22:21:48 +0000 (18:21 -0400)]
* lisp/proced.el: Fix behavior with variable-pitch `header-line` face

Also, use lexical-scoping.  Remove redundant `:group` args.
(proced-process-alist, proced-header-line): Use `defvar-local`
(proced-header-line): Put :align-to on spaces to improve result with
variable-pitch header-line face.
(proced-filter, proced-format): Use a closure instead of `(lambda ...).

4 years agoAdd a reference to the shortdoc command in the Emacs manual
Lars Ingebrigtsen [Sun, 11 Oct 2020 22:07:58 +0000 (00:07 +0200)]
Add a reference to the shortdoc command in the Emacs manual

* doc/emacs/help.texi (Name Help): Mention shortdoc.

4 years agoAdd a shortdoc menu entry
Lars Ingebrigtsen [Sun, 11 Oct 2020 22:03:15 +0000 (00:03 +0200)]
Add a shortdoc menu entry

* lisp/menu-bar.el (menu-bar-describe-menu): Add a shortdoc menu
entry.

4 years agoFix error in file shortdoc group
Lars Ingebrigtsen [Sun, 11 Oct 2020 21:51:22 +0000 (23:51 +0200)]
Fix error in file shortdoc group

* lisp/emacs-lisp/shortdoc.el (number): Add some more numeric
stuff (and clean up some arglists).

4 years ago* lisp/hexl.el: Fix behavior with variable-pitch `header-line` face
Stefan Monnier [Sun, 11 Oct 2020 21:08:25 +0000 (17:08 -0400)]
* lisp/hexl.el: Fix behavior with variable-pitch `header-line` face

(hexl-ascii-region): Don't inherit from the `header-line`.
(hexl-font-lock-keywords): Fix text alignment.
(hexl-mode): Set `font-lock-extra-managed-props` accordingly.

4 years agoFix GNUstep build
Alan Third [Sun, 11 Oct 2020 19:46:07 +0000 (20:46 +0100)]
Fix GNUstep build

Fix mistakes made when removing Cocoa code from nsfont.m.

* src/nsfont.m (nsfont_draw): Remove spurious #ifdef.
(ns_uni_to_glyphs): The #if/#endif was removed from this code, but the
code itself not removed.  Remove it now.

4 years ago* lisp/tooltip.el: Remove redundant :group args.
Stefan Kangas [Sun, 11 Oct 2020 17:36:41 +0000 (19:36 +0200)]
* lisp/tooltip.el: Remove redundant :group args.

4 years ago* lisp/tooltip.el: Use lexical-binding.
Stefan Kangas [Sun, 11 Oct 2020 17:35:37 +0000 (19:35 +0200)]
* lisp/tooltip.el: Use lexical-binding.

4 years ago; * lisp/help-fns.el (help-fns-describe-function-functions): Fix typo.
Stefan Kangas [Sun, 11 Oct 2020 17:32:55 +0000 (19:32 +0200)]
; * lisp/help-fns.el (help-fns-describe-function-functions): Fix typo.

4 years agoImprove documentation of shortdoc features
Eli Zaretskii [Sun, 11 Oct 2020 14:28:40 +0000 (17:28 +0300)]
Improve documentation of shortdoc features

* lisp/help-fns.el (help-fns-describe-function-functions): Doc
fix.
* lisp/emacs-lisp/shortdoc.el (define-short-documentation-group)
(shortdoc-display-group, shortdoc-add-function): Doc fixes.

* doc/lispref/help.texi (Documentation Groups): Improve the
recently-added documentation and the indexing.

4 years ago* lisp/url/url-domsuf.el: Use lexical-binding.
Stefan Kangas [Sun, 11 Oct 2020 13:58:06 +0000 (15:58 +0200)]
* lisp/url/url-domsuf.el: Use lexical-binding.

4 years agoConvert url-domsuf.el tests to ert
Stefan Kangas [Sun, 11 Oct 2020 13:55:18 +0000 (15:55 +0200)]
Convert url-domsuf.el tests to ert

* lisp/url/url-domsuf.el: Move commented out tests from here...
* test/lisp/url/url-domsuf-tests.el: ...to this new file.

4 years agoUpdate publicsuffix.txt from upstream
Stefan Kangas [Sun, 11 Oct 2020 13:03:11 +0000 (15:03 +0200)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2020-10-09 08:23:34 UTC.

4 years agoAdd more numeric shortdocs
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:30:38 +0000 (12:30 +0200)]
Add more numeric shortdocs

* lisp/emacs-lisp/shortdoc.el (shortdoc-section)
(shortdoc-example): Lighten up colours on light backgrounds.

4 years agoTweak shortdoc colours on light backgrounds
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:12:47 +0000 (12:12 +0200)]
Tweak shortdoc colours on light backgrounds

* lisp/emacs-lisp/shortdoc.el (shortdoc-section)
(shortdoc-example): Lighten up colours on light backgrounds.

4 years agoAutoload shortdoc command and adjust NEWS
Lars Ingebrigtsen [Sun, 11 Oct 2020 10:05:55 +0000 (12:05 +0200)]
Autoload shortdoc command and adjust NEWS

* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Autoload.

4 years agoUse Unicode arrows in shortdoc results
Lars Ingebrigtsen [Sun, 11 Oct 2020 09:21:48 +0000 (11:21 +0200)]
Use Unicode arrows in shortdoc results

* lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): Use
Unicode arrows if possible.

4 years agoDon't boldify the flyspell language indicator in the mode line
Lars Ingebrigtsen [Sun, 11 Oct 2020 05:50:10 +0000 (07:50 +0200)]
Don't boldify the flyspell language indicator in the mode line

* lisp/textmodes/flyspell.el (flyspell-mode): Don't boldify the
language part -- it draws too much attention in the minor mode list.

4 years agoAllow killing files with C-k in wdired if -F is used
Stephen Berman [Sun, 11 Oct 2020 04:05:49 +0000 (06:05 +0200)]
Allow killing files with C-k in wdired if -F is used

* lisp/wdired.el (wdired-change-to-wdired-mode): Add hook to
restore properties.
(wdired-change-to-wdired-mode): Adjust check for symlinks.
(wdired-preprocess-files): Fix parsing when using the -F flag.
(wdired-get-filename): Fix parsing of symlinks when using the -F flag.
(wdired--restore-properties): Renamed, and restore more properties
(bug#18475).

4 years agoAdd support for displaying short documentation for function groups
Lars Ingebrigtsen [Sun, 11 Oct 2020 03:51:16 +0000 (05:51 +0200)]
Add support for displaying short documentation for function groups

* doc/lispref/help.texi (Documentation Groups): Document it.

* lisp/help-fns.el (help-fns--mention-shortdoc-groups): Output
references to the shortdocs.

* lisp/emacs-lisp/shortdoc.el: New file.

4 years agoMake C-w worth in isearch when at the last match in the buffer
Juri Linkov [Sun, 11 Oct 2020 03:04:40 +0000 (05:04 +0200)]
Make C-w worth in isearch when at the last match in the buffer

* lisp/isearch.el (isearch-yank-internal): Make C-w work when at
the last match in the buffer (bug#22118).

4 years agoClarify how to set single-function hooks
Noam Postavsky [Sun, 11 Oct 2020 02:25:52 +0000 (04:25 +0200)]
Clarify how to set single-function hooks

* doc/lispref/modes.texi (Hooks): Clarify the difference between
normal hooks and single-function "hooks" (bug#25581).

4 years agoFix link in previous display.texi change
Lars Ingebrigtsen [Sun, 11 Oct 2020 02:05:41 +0000 (04:05 +0200)]
Fix link in previous display.texi change

* doc/lispref/display.texi (Fontsets): Link to the correct node in
the Elisp manual, not in the Emacs manual.

4 years agoMake posn-set-point work on frame events
Robert Weiner [Sun, 11 Oct 2020 02:03:47 +0000 (04:03 +0200)]
Make posn-set-point work on frame events

* lisp/subr.el (event-start): Mention the frame part of the events.
(posn-window): Ditto.
(posn-set-point): Make this work if the event is a frame event
(bug#28621).

4 years agoFix the documentation of char-displayable-p
Robert Pluim [Sun, 11 Oct 2020 01:49:37 +0000 (03:49 +0200)]
Fix the documentation of char-displayable-p

* doc/lispref/display.texi (Fontsets): Make the documentation of
char-displayable-p less incorrect (bug#35230).

4 years agognus-icalendar.el: Fix bug in gnus-icalendar-identities
Rasmus [Sat, 10 Oct 2020 20:32:41 +0000 (22:32 +0200)]
gnus-icalendar.el: Fix bug in gnus-icalendar-identities

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event--find-attendee):
(gnus-icalendar-identities) `gnus-ignored-from-addresses' and
`message-alternative-emails' may be functions. This is not
supported by `gnus-icalendar-event--find-attendee' (bug#43908).

4 years ago* lisp/calc/: Use lexical scoping in all the files
Stefan Monnier [Sat, 10 Oct 2020 20:00:51 +0000 (16:00 -0400)]
* lisp/calc/: Use lexical scoping in all the files

Includes the following pervasive changes:
- Move some defvars earlier in the file so they cover earlier let-bindings
- Change dynamically scoped `calc-FOO` or `math-FOO` function arguments
  to just FOO and then let-bind the `calc-FOO` or `math-FOO` variable
  explicitly in the body of the function.  In some cases, the
  beginning of the function was changed to refer to FOO so as to delay
  the binding to a nearby `let` when I could ensure that it did
  not make a difference.
- Add an underscore in front of unused vars or comment them out altogether.
- Replace unused `err` arg to `condition-case` with nil.

Plus the additional itemized changes below.

* lisp/calc/calc-map.el (calcFunc-reducer):
* lisp/calc/calc-arith.el (math-setup-declarations):
* lisp/calc/calc-help.el (calc-full-help, calc-help-index-entries)
(calc-full-help): Use `ignore-errors`.

* lisp/calc/calc-embed.el (calc-embedded-modes-change):
Declare `the-language` and `the-display-just` as dynamically scoped.

* lisp/calc/calc-forms.el (math-setup-year-holidays): Use `dolist`.

* lisp/calc/calc-graph.el (calc-graph-set-styles): Use `symbol-value`
rather than `eval.`
(calc-graph-delete-temps, calc-graph-set-styles): Use ignore-errors.

* lisp/calc/calc-macs.el (calc-with-trail-buffer): Add artificial use
of `save-buf` to silence compiler warnings in all the cases where
`body` doesn't make use of it.

* lisp/calc/calc-math.el (math-largest-emacs-expt)
(math-smallest-emacs-expt, math-use-emacs-fn): Use ignore-errors.

* lisp/calc/calc-mode.el (calc-total-algebraic-mode): Remove "P" from
interactive spec since it's not used anyway.

* lisp/calc/calc-rewr.el (calc-match): Simplify.

* lisp/calc/calc.el (calc-buffer): Give it a global nil value,
so it's automatically declared dynbound in any file that requires `calc`.
(calcDigit-nondigit): Adjust accordingly.

* lisp/calc/calcalg2.el (calcFunc-table): Declare `var-dummy` as dynbound.
(math-scan-for-limits): Comment out dead code.

* lisp/calc/calcalg3.el (math-general-fit): Declare `var-YVAL` and
`var-YVALX` as dynbound.

4 years ago* lisp/help.el (help-function-arglist): Fix non nativecomp builds (bug#43914)
Andrea Corallo [Sat, 10 Oct 2020 19:30:04 +0000 (21:30 +0200)]
* lisp/help.el (help-function-arglist): Fix non nativecomp builds (bug#43914)

4 years ago* As edges are indexed store them in an hash table
Andrea Corallo [Sun, 27 Sep 2020 21:43:35 +0000 (23:43 +0200)]
* As edges are indexed store them in an hash table

* lisp/emacs-lisp/comp.el (comp-edge): Update doc for 'number'
slot.
(comp-func): Rename 'edges' slot into 'edges-h'.
(comp-log-edges): Update logic for edges in an hash table.
(comp-clean-ssa, comp-compute-edges): Likewise.

4 years ago* Add into phi l-value args basic block names
Andrea Corallo [Sun, 27 Sep 2020 21:24:24 +0000 (23:24 +0200)]
* Add into phi l-value args basic block names

* lisp/emacs-lisp/comp.el (comp-ssa-rename-insn): Clean-up a
leftover space.
(comp-finalize-phis): Cons the blasic block name providing the
mvar together with the mvar itself while forming the phi.
(comp-fwprop-insn): Destructure correctly the phi.

4 years agoProvide feature nativecomp and make use of it
Andrea Corallo [Sat, 10 Oct 2020 16:18:09 +0000 (18:18 +0200)]
Provide feature nativecomp and make use of it

* lisp/emacs-lisp/comp.el (comp-ensure-native-compiler): Use
`featurep' to identify if the native compiler is available.
* lisp/emacs-lisp/nadvice.el (advice--add-function): Likewise.
* lisp/emacs-lisp/package.el (package--delete-directory): Likewise.
* lisp/loadup.el: Likewise.
* src/comp.c (syms_of_comp): Provide feature nativecomp.

4 years ago* lisp/emacs-lisp/comp.el (comp-func): Fix doc for blocks slot.
Andrea Corallo [Sat, 10 Oct 2020 15:54:27 +0000 (17:54 +0200)]
* lisp/emacs-lisp/comp.el (comp-func): Fix doc for blocks slot.

4 years ago* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc tweak
Stefan Monnier [Sat, 10 Oct 2020 15:07:28 +0000 (11:07 -0400)]
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc tweak

Try and clarify the meaning of `init-value`.

4 years agoMerge from origin/emacs-27
Glenn Morris [Sat, 10 Oct 2020 14:50:20 +0000 (07:50 -0700)]
Merge from origin/emacs-27

c00606171f (origin/emacs-27) A better fix for bug#43886
3196fd44c3 Avoid crashes when a theme is loaded with one frame suspended
0407b15500 Removed an incorrectly placed extra word in the semantic docs
040dcbe53e Fix current-line hscrolling when overlays change
c56eeba2ce Extend tests for shell-command-dont-erase-buffer

4 years ago; Merge from origin/emacs-27
Glenn Morris [Sat, 10 Oct 2020 14:50:19 +0000 (07:50 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

6fea8699a1 Clarify what ``chrooted environment means'' for TRAMP

4 years agoMerge from origin/emacs-27
Glenn Morris [Sat, 10 Oct 2020 14:50:19 +0000 (07:50 -0700)]
Merge from origin/emacs-27

b6704d58e8 ; * src/xdisp.c (Fwindow_text_pixel_size): Doc fix.

4 years ago; Merge from origin/emacs-27
Glenn Morris [Sat, 10 Oct 2020 14:50:19 +0000 (07:50 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

cbcca8159d Add missing full stop in MS-DOS processes documentation

4 years agoMerge from origin/emacs-27
Glenn Morris [Sat, 10 Oct 2020 14:50:18 +0000 (07:50 -0700)]
Merge from origin/emacs-27

acc9b46153 Fix merging of region face for non-ASCII characters
c2a13969e4 Make drag and drop on NS open all URLs (bug#43470)

4 years ago* Fix LIMPLE latch block name coloring in "*Native-compile-Log*"
Andrea Corallo [Sat, 10 Oct 2020 12:31:03 +0000 (14:31 +0200)]
* Fix LIMPLE latch block name coloring in "*Native-compile-Log*"

* lisp/emacs-lisp/comp.el (comp-limple-lock-keywords): Fix
latch block name coloring.

4 years agoVarious typo fixes in native compiler related files
Brian Leung [Sat, 10 Oct 2020 09:06:56 +0000 (09:06 +0000)]
Various typo fixes in native compiler related files

* lisp/emacs-lisp/comp.el (native-compiler-error-dyn-func)
(comp-func, comp-func-l)
(comp-func-d, comp-ensure-native-compiler, comp-type-hint-p)
(comp-func-unique-in-cu-p, comp-alloc-class-to-container)
(comp-limple-mode, comp-loop-insn-in-block)
(comp-lex-byte-func-p, comp-c-func-name, comp-decrypt-arg-list)
(comp-spill-lap-function, comp-intern-func-in-ctxt)
(comp-spill-lap-function, comp-spill-lap, comp-emit-handler)
(comp-prepare-args-for-top-level): Various typo fixes.
* src/comp.c (Fcomp_el_to_eln_filename): Fix typo in error
message.

4 years agoImprove coverage of Calc bit shift test
Mattias Engdegård [Sat, 10 Oct 2020 09:29:43 +0000 (11:29 +0200)]
Improve coverage of Calc bit shift test

* test/lisp/calc/calc-tests.el (calc-tests--rsh, calc-tests--rash)
(calc-shift-binary): Test with negative word sizes.

4 years agoMerge remote-tracking branch 'savannah/master' into HEAD
Andrea Corallo [Sat, 10 Oct 2020 09:00:35 +0000 (11:00 +0200)]
Merge remote-tracking branch 'savannah/master' into HEAD

4 years ago* Fix failure when compiling a trampoline with no eln-cache dir (bug#43875)
Andrea Corallo [Sat, 10 Oct 2020 08:15:21 +0000 (10:15 +0200)]
* Fix failure when compiling a trampoline with no eln-cache dir (bug#43875)

* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Try to create
the eln-cache dir if this is not existing, if fails to do that
move on to the next one.

4 years ago* Fix typo name plus make error homogeneous in `comp-trampoline-compile'
Andrew Whatson [Sat, 10 Oct 2020 08:13:26 +0000 (10:13 +0200)]
* Fix typo name plus make error homogeneous in `comp-trampoline-compile'

* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix typo
renaming `comp-tampoline-compile' -> `comp-trampoline-compile'.
Change error to be consistent.
(comp-subr-trampoline-install): Use `comp-trampoline-compile'.

4 years agoA better fix for bug#43886
Eli Zaretskii [Sat, 10 Oct 2020 08:11:34 +0000 (11:11 +0300)]
A better fix for bug#43886

* src/xfaces.c (load_color2, Fcolor_distance): Revert last change.
* src/term.c (clear_tty_hooks): Don't clear defined_color_hook.

4 years agoAvoid crashes when a theme is loaded with one frame suspended
Eli Zaretskii [Fri, 9 Oct 2020 19:21:18 +0000 (22:21 +0300)]
Avoid crashes when a theme is loaded with one frame suspended

* src/xfaces.c (load_color2, Fcolor_distance): Don't try to call
the frame's defined_color_hook if the frame is suspended.
(Bug#43886)

4 years agoAdd Euro Sign to Latin language input methods
Eli Zaretskii [Fri, 9 Oct 2020 14:28:24 +0000 (17:28 +0300)]
Add Euro Sign to Latin language input methods

* lisp/leim/quail/latin-post.el ("danish-postfix")
("finnish-postfix", "french-postfix", "german-postfix")
("icelandic-postfix", "italian-postfix", "norwegian-postfix")
("scandinavian-postfix", "spanish-postfix", "swedish-postfix"):
Add "E=" for the Euro Sign.  (Bug#43866)

4 years ago; shorten https://lists.gnu.org/archive/html/... links
Stefan Kangas [Fri, 9 Oct 2020 10:23:02 +0000 (12:23 +0200)]
; shorten https://lists.gnu.org/archive/html/... links

4 years ago; Fix typos
Stefan Kangas [Fri, 9 Oct 2020 09:51:32 +0000 (11:51 +0200)]
; Fix typos

4 years agoCalc: fix arithmetic right shift sign bit detection
Mattias Engdegård [Fri, 9 Oct 2020 09:12:53 +0000 (11:12 +0200)]
Calc: fix arithmetic right shift sign bit detection

Arithmetic right shift didn't compute the bit to shift in correctly.
For example, #x600000000 right-shifted 8 steps (with 32 bit word size)
resulted in #xff000000 rather than 0. (Bug#43764)

* lisp/calc/calc-bin.el (calcFunc-ash): Fix condition.
* test/lisp/calc/calc-tests.el (calc-tests--clip, calc-tests--lsh)
(calc-tests--rsh, calc-tests--ash, calc-tests--rash, calc-tests--rot):
New.
(calc-shift-binary): New test.

4 years agoMatch OpenBSD doas password prompt in comint
Nick Gasson [Fri, 9 Oct 2020 04:57:07 +0000 (06:57 +0200)]
Match OpenBSD doas password prompt in comint

* lisp/comint.el (comint-password-prompt-regexp): match OpenBSD doas
password prompt. OpenBSD 5.8 replaced sudo with doas in the base
install.

* test/lisp/comint-tests.el (comint-testsuite-password-strings): test
that the doas password prompt is matched (bug#43846).

Copyright-paperwork-exempt: yes

4 years agomessage-signature doc fix
Lars Ingebrigtsen [Fri, 9 Oct 2020 04:48:51 +0000 (06:48 +0200)]
message-signature doc fix

* lisp/gnus/message.el (message-signature): Mention
message-signature-insert-empty-line (bug#43853).

4 years agoRemoved an incorrectly placed extra word in the semantic docs
Pankaj Jangid [Fri, 9 Oct 2020 04:46:27 +0000 (06:46 +0200)]
Removed an incorrectly placed extra word in the semantic docs

* doc/misc/semantic.texi (Parser code): Copy edit (bug#43861).

Copyright-paperwork-exempt: yes

4 years agoClarify define-minor-mode hooks
Lars Ingebrigtsen [Fri, 9 Oct 2020 04:36:53 +0000 (06:36 +0200)]
Clarify define-minor-mode hooks

* doc/lispref/modes.texi (Defining Minor Modes): Note that the
code (and the hook) is run both when the mode is enabled and
disabled (bug#43868).

4 years agoRevert "Don't eagerly store articles in the Agent by default"
Lars Ingebrigtsen [Fri, 9 Oct 2020 04:26:17 +0000 (06:26 +0200)]
Revert "Don't eagerly store articles in the Agent by default"

This reverts commit def34a20766ea5179afd5e5ed090a2b86fcccb5e.

This made storing articles in the Agent very slow.

4 years agoOnly skip directories in lgrep, not the other grep commands
Lars Ingebrigtsen [Fri, 9 Oct 2020 04:15:02 +0000 (06:15 +0200)]
Only skip directories in lgrep, not the other grep commands

* lisp/progmodes/grep.el (lgrep): Do the directory ignores here
(bug#23590).
(grep-compute-defaults): ... instead of here, because this would
affect all grep commands, not just lgrep.

4 years agoCC Mode: Move the handling of keyword auto into type handling for C++.
Alan Mackenzie [Thu, 8 Oct 2020 16:49:49 +0000 (16:49 +0000)]
CC Mode: Move the handling of keyword auto into type handling for C++.

This should allow auto, const, static, ... to be in any order.

* lisp/progmodes/cc-engine.el (c-forward-type): New return value 'no-id for
when auto precludes the parsing of a type identifier.  Adapt processing for
this.
(c-forward-decl-or-cast-1): Use the new facility from c-forward-type.

* lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): Insert the value
of c-no-type-kwds into the value.
(c-no-type-kwds, c-no-type-key): New lang consts/vars, basically "auto".
(c-typeless-decl-kwds, c-modifier-kwds): Remove "auto" from the C++ value.

4 years ago* src/ftcrfont.c (ftcrfont_open): Initialize the `max_width` field
Stefan Monnier [Thu, 8 Oct 2020 13:49:20 +0000 (09:49 -0400)]
* src/ftcrfont.c (ftcrfont_open): Initialize the `max_width` field

On a 32bit build, Emacs can otherwise crash with a !FIXNUM_OVERFLOW_P
assertion in `Ffont_info` by simply doing `emacs -Q` and then `C-s`.

* src/font.c: Try and detect uninitialized `max_width` fields.
(font_make_object): Set max_width to a silly value.
(Ffont_info): Check the value is not silly any more.

4 years ago* lisp/doc-view.el: Fix "can't resize root window" error
Stefan Monnier [Wed, 7 Oct 2020 14:51:35 +0000 (10:51 -0400)]
* lisp/doc-view.el: Fix "can't resize root window" error

(doc-view-fit-window-to-page): Change approach to detect when the
frame needs to be resized.

4 years agoFix current-line hscrolling when overlays change
Eli Zaretskii [Thu, 8 Oct 2020 11:45:16 +0000 (14:45 +0300)]
Fix current-line hscrolling when overlays change

* src/xdisp.c (redisplay_internal): Disable "optimization 1" when
auto-hscrolling current line and we're redisplaying the selected
window.  (Bug#43835)