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

143218 commits

Author SHA1 Message Date
Stefan Kangas
519e23d727 Move emacsclient.1 file history further down
* doc/man/emacsclient.1: Move file history further down; it doesn't
need to be prominently displayed in the introductory paragraph.
2020-10-15 14:52:02 +02:00
Lars Ingebrigtsen
8fb761af6b Fix undefined function in project-compile
* lisp/progmodes/project.el (project-compile): Require compile.el
before using functions from the file (bug#44009).
2020-10-15 13:20:22 +02:00
Mattias Engdegård
674fee5e9f Remove dynamic declaration of 'save-match-data-internal'
* lisp/subr.el: Remove defvar which has no relevance today; it can
very well be a lexical variable.
2020-10-15 11:46:49 +02:00
Jeff Walsh
2970d73a71 Fix segfault in xwidget when there is no title
* src/xwidget.c (Fxwidget_webkit_title): Pass emptry string when no
title is returned (bug#43989).
2020-10-15 09:55:29 +02:00
Lars Ingebrigtsen
730ea4c370 Fix problem with next-error-message-highlight in *Occur*
* lisp/simple.el (next-error-message-highlight): This function is
called directly, so clean up the code a bit (bug#32676).
(next-error-found): Pass in the error buffer.
2020-10-15 09:17:45 +02:00
Lars Ingebrigtsen
8de04e08c8 Fix NEWS item for C-h R 2020-10-15 08:55:27 +02:00
Lars Ingebrigtsen
a38002cecd Make Gnus more liberal when interpreting Face headers again
* lisp/gnus/gnus-fun.el (gnus-convert-face-to-png): Do it.

* lisp/gnus/gnus-util.el (gnus-base64-repad): Allow not checking
anything, but just repadding.
2020-10-15 08:39:00 +02:00
Richard M Stallman
051d31cc79 Clarify wording
Clarify doc string of line-to-top-of-window.
2020-10-14 19:17:48 -04:00
Richard M Stallman
e8752cf7a9 Handle retrying of MIME failure messages
* rmail.el (rmail-retry-failure): Handle retrying of MIME failure messages.
2020-10-14 19:11:20 -04:00
Richard M Stallman
e6aab30128 Handle encrypting mime parts
* epa-mail.el (epa-mail-encrypt): Insert any encoded mime parts
that are queued up to insert before sending the message.
2020-10-14 19:10:02 -04:00
Stefan Monnier
0fac3f5532 * lisp/calc: Fix a few issues introduced by lexical scoping
Fix a few places I missed, where we incorrectly used lexical scoping on a var
that needed dynamic scoping.
These were detected thanks to a bit of footwork by Mattias Engdegård!

* lisp/calc/calc-ext.el (math-read-big-lines): Declare as dynbound.
(math-read-big-bigp): Bind it inside a `let`.
* lisp/calc/calc-graph.el (math-arglist): Declare as dynbound.
* lisp/calc/calc-map.el (math-arglist): Declare as dynbound.
* lisp/calc/calc-misc.el (math-trunc-prec): Declare as dynbound.
(math-trunc): Bind it inside a `let`.
(math-floor-prec): Declare as dynbound.
(math-floor): Bind it inside a `let`.
* lisp/calc/calc-nlfit.el (calc-curve-varnames, calc-curve-coefnames):
Declare as dynbound.
* lisp/calc/calc-sel.el (math-comp-sel-tag): Declare as dynbound.
* lisp/calc/calcsel2.el (calc-sel-reselect): Declare as dynbound.
2020-10-14 18:03:52 -04:00
Andreas Schwab
423439b380 Fix layout of custom-face-edit widget
* lisp/cus-edit.el (custom-face-edit): Add :format to group
widget.  (Bug#43977)
2020-10-14 21:59:38 +02:00
Juri Linkov
4bf9bb56b5 Highlight regexp sub-expressions in query-replace
* lisp/replace.el (query-replace-highlight-submatches): New defcustom.
(replace-submatches-overlays): New variable.
(replace-highlight): Use query-replace-highlight-submatches.
(replace-dehighlight): Use query-replace-highlight-submatches.

* doc/emacs/search.texi (Query Replace):
Add documentation for query-replace-highlight-submatches.

Suggested by Drew Adams <drew.adams@oracle.com> in bug#43702.
2020-10-14 11:56:23 +03:00
Juri Linkov
b13e0c1501 * 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.
2020-10-14 11:45:26 +03:00
Ernesto Alfonso
1ee5a4cb1a 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.
2020-10-14 07:45:21 +02:00
Alex Branham
64c8511664 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.
2020-10-14 07:26:58 +02:00
Lars Ingebrigtsen
5474603c4c 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.
2020-10-14 07:01:46 +02:00
Philipp Klaus Krause
14e00d95c4 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
2020-10-14 06:19:33 +02:00
Masahiro Nakamura
f256687bd4 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).
2020-10-14 06:14:33 +02:00
Lars Ingebrigtsen
e88d75a6b6 Fix name of the module .h files in the comments
* src/emacs-module.c: Fix the name of the .h file in the comments.
2020-10-14 05:57:55 +02:00
Lars Ingebrigtsen
a8d8107800 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.
2020-10-14 05:57:05 +02:00
Mattias Engdegård
db0c016dc5 * etc/NEWS (Calc): Note new precedence of '/' in TeX input mode. 2020-10-13 20:03:58 +02:00
Paul Eggert
b058caca72 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).
2020-10-13 10:25:40 -07:00
Paul Eggert
60d6e3fead 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.
2020-10-13 10:05:31 -07:00
Eli Zaretskii
993116eec9 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.
2020-10-13 19:39:11 +03:00
Eli Zaretskii
60845174eb * etc/NEWS: Mention 'make_unibyte_string'; reformat modules entries. 2020-10-13 19:30:31 +03:00
Mattias Engdegård
cf40795888 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.
2020-10-13 11:29:01 +02:00
Mattias Engdegård
add1314195 Calc: revert to old precedence of '/' in (La)TeX input mode
Make the '/' precedence higher than that of '+' and '-' again,
partially reverting fda9b316f8 (bug#43902).

* lisp/calc/calc-lang.el (tex): Change precedence of '/'.
* test/lisp/calc/calc-tests.el (calc-latex-input): New test.
2020-10-13 11:29:01 +02:00
Mattias Engdegård
721b8468d2 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.
2020-10-13 11:17:35 +02:00
Lars Ingebrigtsen
12175a339e 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.
2020-10-13 06:51:06 +02:00
Lars Ingebrigtsen
45cb0403de 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."
2020-10-13 05:48:13 +02:00
Yuan Fu
1b45079ffa 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).
2020-10-13 05:14:21 +02:00
Lars Ingebrigtsen
b31e48d4ef 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).
2020-10-13 04:59:11 +02:00
Lars Ingebrigtsen
94b870dfa3 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.
2020-10-13 04:10:43 +02:00
Mauro Aranda
13e5c1db68 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).
2020-10-13 03:32:17 +02:00
Lars Ingebrigtsen
af367a9d59 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.
2020-10-13 03:25:36 +02:00
Lars Ingebrigtsen
85e81721ea message-insert-signature doc fix
* lisp/gnus/message.el (message-insert-signature): Clarify what
FORCE means.
2020-10-13 03:17:12 +02:00
Boruch Baum
ec9523a6ae 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).
2020-10-13 03:09:19 +02:00
Juri Linkov
f2fb69f08e * lisp/isearch.el (isearch-search): Set isearch-match-data in the right place. 2020-10-12 22:56:35 +03:00
Stefan Kangas
a6c22271bc 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
2020-10-12 20:59:14 +02:00
Michael Albinus
3ec6dcfab8 ; Fix dbus-tests.el formatting 2020-10-12 11:41:54 +02:00
Hugh Daschbach
2f92177f80 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.
2020-10-12 11:37:27 +02:00
Stefan Monnier
608782b347 * 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 ...).
2020-10-11 18:21:48 -04:00
Lars Ingebrigtsen
905d08c98a Add a reference to the shortdoc command in the Emacs manual
* doc/emacs/help.texi (Name Help): Mention shortdoc.
2020-10-12 00:07:58 +02:00
Lars Ingebrigtsen
07eb3df2b5 Add a shortdoc menu entry
* lisp/menu-bar.el (menu-bar-describe-menu): Add a shortdoc menu
entry.
2020-10-12 00:03:15 +02:00
Lars Ingebrigtsen
d5c811279b Fix error in file shortdoc group
* lisp/emacs-lisp/shortdoc.el (number): Add some more numeric
stuff (and clean up some arglists).
2020-10-11 23:51:26 +02:00
Stefan Monnier
562686ca60 * 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.
2020-10-11 17:08:25 -04:00
Alan Third
db7b4dbe94 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.
2020-10-11 20:47:59 +01:00
Stefan Kangas
5a188cc4ed * lisp/tooltip.el: Remove redundant :group args. 2020-10-11 19:37:02 +02:00
Stefan Kangas
b8815abbb6 * lisp/tooltip.el: Use lexical-binding. 2020-10-11 19:35:37 +02:00