]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoFix rendering of degenerate tables some more in shr.el
Lars Ingebrigtsen [Mon, 30 Sep 2019 05:27:46 +0000 (07:27 +0200)]
Fix rendering of degenerate tables some more in shr.el

* lisp/net/shr.el (shr--fix-tbody): New function (bug#31665).
(shr--fix-table): Use it to fix the
<table><tbody>foo</tbody></table> case.

5 years agoshr table fix refactoring
Lars Ingebrigtsen [Mon, 30 Sep 2019 05:17:12 +0000 (07:17 +0200)]
shr table fix refactoring

* lisp/net/shr.el (shr--fix-table): Refactor out into own function
from...
(shr-tag-table): ... this function.

5 years agoChange the commands in image-converter--converters to lists
Lars Ingebrigtsen [Mon, 30 Sep 2019 04:29:27 +0000 (06:29 +0200)]
Change the commands in image-converter--converters to lists

* lisp/image/image-converter.el (image-converter--converters):
Change format of the commands to lists.
(image-converter--probe, image-converter--convert): Adjust usages.

5 years agoRename the new convert-images-externally variable
Lars Ingebrigtsen [Mon, 30 Sep 2019 04:00:52 +0000 (06:00 +0200)]
Rename the new convert-images-externally variable

* doc/emacs/files.texi (File Conveniences): Adjust documentation.

* lisp/image.el (image-use-external-converter): Rename from
convert-images-externally.

5 years agoSilence byte-compiler warning
Juanma Barranquero [Mon, 30 Sep 2019 01:31:53 +0000 (03:31 +0200)]
Silence byte-compiler warning

* lisp/obsolete/info-edit.el (ibuffer-help-buffer-modes): Defvar it.

5 years ago* lisp/dired-x.el (dired-virtual): Fix typo.
Stefan Kangas [Sun, 29 Sep 2019 22:42:47 +0000 (00:42 +0200)]
* lisp/dired-x.el (dired-virtual): Fix typo.

5 years ago* lisp/nxml/rng-valid.el: Use define-minor-mode
Stefan Monnier [Sun, 29 Sep 2019 22:15:56 +0000 (18:15 -0400)]
* lisp/nxml/rng-valid.el: Use define-minor-mode

Remove redundant `:group`s.
(rng-validate-mode): Use define-minor-mode.
(rng-validate-clear): Let-bind rng-current-schema instead of passing
a `no-change-schema` argument.

5 years agoFix indenting in perl functions with doc-comments
Tom Willemse [Sun, 11 Oct 2015 22:45:49 +0000 (00:45 +0200)]
Fix indenting in perl functions with doc-comments

* lisp/progmodes/perl-mode.el (perl-calculate-indent): Skip
doc-comments as well as comments and skip the entire comment, not just
the line.  (Bug#21647)

5 years agoUpdate iso8601-tests for new interface
Lars Ingebrigtsen [Sun, 29 Sep 2019 19:57:59 +0000 (21:57 +0200)]
Update iso8601-tests for new interface

5 years agoMake iso8601-parse take a FORM parameter like `decode-time'
Lars Ingebrigtsen [Sun, 29 Sep 2019 19:55:20 +0000 (21:55 +0200)]
Make iso8601-parse take a FORM parameter like `decode-time'

* lisp/calendar/iso8601.el (iso8601-parse-time, iso8601-parse):
Take a FORM parameter like `decode-time'.

5 years agoAdd support for sub-second ISO8601 strings
Lars Ingebrigtsen [Sun, 29 Sep 2019 19:22:29 +0000 (21:22 +0200)]
Add support for sub-second ISO8601 strings

* lisp/calendar/iso8601.el (iso8601--decimalize): New function.
(iso8601-parse-time): Support sub-second ISO8601 times.

5 years ago* src/timefns.c (Fdecode_time): Improve doc string.
Paul Eggert [Sun, 29 Sep 2019 18:11:59 +0000 (13:11 -0500)]
* src/timefns.c (Fdecode_time): Improve doc string.

5 years agoClarify recent ert manual change
Stefan Kangas [Sun, 29 Sep 2019 16:26:50 +0000 (18:26 +0200)]
Clarify recent ert manual change

* doc/misc/ert.texi (Running Tests in Batch Mode): Say that ert test
selector strings are regular expressions.

5 years agoRemove the compilation-arrow-overlay on a major mode change/reinitialization
Alan Mackenzie [Sun, 29 Sep 2019 15:39:16 +0000 (15:39 +0000)]
Remove the compilation-arrow-overlay on a major mode change/reinitialization

At the same time, remove the 2-character left margin.

* lisp/progmodes/compile.el (compilation-set-up-arrow-spec-in-margin): put
compilation-tear-down-arrow-spec-in-margin onto change-major-mode-hook.

5 years agoAdd `rx-submatch-n' for compatibility (bug#37517)
Mattias Engdegård [Sun, 29 Sep 2019 14:59:58 +0000 (16:59 +0200)]
Add `rx-submatch-n' for compatibility (bug#37517)

It was an internal symbol in the old `rx' implementation, used in old
versions of the `flycheck' package.

* lisp/emacs-lisp/rx.el (rx-submatch-n): Alias of `rx-to-string'.
* test/lisp/emacs-lisp/rx-tests.el (rx-compat): Test it.

5 years agoFix reverting doc-view buffers
Lars Ingebrigtsen [Sun, 29 Sep 2019 12:58:38 +0000 (14:58 +0200)]
Fix reverting doc-view buffers

* lisp/doc-view.el (doc-view--revert-buffer): Actually use the new
version of the PDF data (bug#26996).

5 years agoAllow customising pdf-to-text parameters
Lars Ingebrigtsen [Sun, 29 Sep 2019 12:26:26 +0000 (14:26 +0200)]
Allow customising pdf-to-text parameters

* lisp/doc-view.el (doc-view-pdf->txt): Allow customising the
parameters (bug#8519).
(doc-view-pdftotext-program-args): New variable.

5 years agoTry ImageMagick last for external image converters
Lars Ingebrigtsen [Sun, 29 Sep 2019 11:34:23 +0000 (13:34 +0200)]
Try ImageMagick last for external image converters

* lisp/image/image-converter.el (image-converter--converters):
Move ImageMagick last in the list.

5 years agoFix linear equation system solving in Calc (bug#35374)
Mattias Engdegård [Sun, 22 Sep 2019 13:03:02 +0000 (15:03 +0200)]
Fix linear equation system solving in Calc (bug#35374)

* lisp/calc/calcalg2.el (math-try-solve-for):
To solve Ax^n=0 where A is a nonzero constant and x the variable to
solve for, solve x^n=0 instead of solving A=0 (which obviously fails)
or something equally stupid.
* test/lisp/calc/calc-tests.el (calc-test-solve-linear-system): New.

5 years agoMove convert-images-externally documentation to Emacs manual
Lars Ingebrigtsen [Sun, 29 Sep 2019 11:32:30 +0000 (13:32 +0200)]
Move convert-images-externally documentation to Emacs manual

* doc/emacs/files.texi (File Conveniences): Move bit about
convert-images-externally to user manual from lispref manual.

5 years agoRemove duplicated image conversion defcustom
Lars Ingebrigtsen [Sun, 29 Sep 2019 11:26:33 +0000 (13:26 +0200)]
Remove duplicated image conversion defcustom

* lisp/image/image-converter.el (convert-external-images): Remove
defcustom that was accidentally not removed when moving to
image.el (and renamed).

5 years agoAdd some commented-out tests for iso8601
Lars Ingebrigtsen [Sun, 29 Sep 2019 11:04:01 +0000 (13:04 +0200)]
Add some commented-out tests for iso8601

5 years agoFix up iso8601 time match regexp
Lars Ingebrigtsen [Sun, 29 Sep 2019 11:03:08 +0000 (13:03 +0200)]
Fix up iso8601 time match regexp

* lisp/calendar/iso8601.el (iso8601--time-match): The fraction
mark can be either . or , and there can be arbitrarily many digits
in the fraction.

5 years agoPut new Gnus groups in the completion table
Lars Ingebrigtsen [Sun, 29 Sep 2019 10:38:44 +0000 (12:38 +0200)]
Put new Gnus groups in the completion table

* lisp/gnus/gnus-start.el (gnus-group-change-level): Ensure that
all new groups are in gnus-active-hashtb so that they can be
completed to.

5 years agoDefine nndraft-close-server according to new calling conventions
Lars Ingebrigtsen [Sun, 29 Sep 2019 10:38:02 +0000 (12:38 +0200)]
Define nndraft-close-server according to new calling conventions

* lisp/gnus/nnoo.el (nnoo-define-basics-1): *-close-server now
takes a DEFS parameter (bug#20319).

5 years agoAdd new Gnus summary commands and keystrokes for "unseen" navigation
Lars Ingebrigtsen [Sun, 29 Sep 2019 07:56:31 +0000 (09:56 +0200)]
Add new Gnus summary commands and keystrokes for "unseen" navigation

* doc/misc/gnus.texi (Choosing Commands): Document them.
* lisp/gnus/gnus-sum.el (gnus-summary-next-unseen-article)
(gnus-summary-prev-unseen-article): New commands and
keystrokes (bug#35213).

5 years agoImprove documentation of image conversion feature
Eli Zaretskii [Sun, 29 Sep 2019 07:09:56 +0000 (10:09 +0300)]
Improve documentation of image conversion feature

* lisp/image/image-converter.el (image-converter)
(image-convert-p, image-convert):
* lisp/image.el (convert-images-externally):
* etc/NEWS:
* doc/lispref/display.texi (Defining Images): Fix recently
added documentation.

5 years agoRemove :group from a recent defcustom
Lars Ingebrigtsen [Sun, 29 Sep 2019 00:16:41 +0000 (02:16 +0200)]
Remove :group from a recent defcustom

* lisp/image.el (convert-images-externally): Remove :group.

5 years agoIf requested, use external image converters for exotic formats
Lars Ingebrigtsen [Sat, 28 Sep 2019 23:26:02 +0000 (01:26 +0200)]
If requested, use external image converters for exotic formats

* doc/lispref/display.texi (Defining Images): Document it.

* lisp/image.el (convert-images-externally): New variable.
(image-type): Use it.
(create-image): Convert images.

* lisp/image/image-converter.el (image-converter--convert): New file.

5 years agoReorganize time-stamp tests
Stephen Gildea [Sat, 28 Sep 2019 22:46:27 +0000 (15:46 -0700)]
Reorganize time-stamp tests

* time-stamp-tests.el: Group tests by when the format was or will be
documented.  Add tests for a few more undocumented, volatile formats.
Change AM hours test time to be a different hour from PM test time.
(Making these changes to the tests now will minimize test changes
needed later with anticipated code changes.)

5 years agoExpunge INBOX messages after splitting
Lars Ingebrigtsen [Sat, 28 Sep 2019 19:36:20 +0000 (21:36 +0200)]
Expunge INBOX messages after splitting

* lisp/gnus/nnimap.el (nnimap-split-incoming-mail): Expunge
articles after splitting (bug#37541).

5 years agoClean up nnimap-split-incoming-mail slightly
Lars Ingebrigtsen [Sat, 28 Sep 2019 19:30:19 +0000 (21:30 +0200)]
Clean up nnimap-split-incoming-mail slightly

* lisp/gnus/nnimap.el (nnimap-split-incoming-mail): Don't call
-delete-articles on empty lists (bug#37541).

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 28 Sep 2019 19:11:38 +0000 (22:11 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoCopy edit nnimap-expunge doc string
Lars Ingebrigtsen [Sat, 28 Sep 2019 19:09:30 +0000 (21:09 +0200)]
Copy edit nnimap-expunge doc string

* lisp/gnus/nnimap.el (nnimap-expunge): Copy edit doc string.

5 years agoImprove indexing of ELisp manual
Eli Zaretskii [Sat, 28 Sep 2019 19:09:11 +0000 (22:09 +0300)]
Improve indexing of ELisp manual

* doc/lispref/frames.texi (Font and Color Parameters): Add index
entry for the 'mouse' face.

5 years agoFix customizing ibuffer-help-buffer-modes
Stefan Kangas [Sat, 28 Sep 2019 19:05:11 +0000 (21:05 +0200)]
Fix customizing ibuffer-help-buffer-modes

* lisp/ibuffer.el (ibuffer-help-buffer-modes)
* lisp/obsolete/info-edit.el (ibuffer-help-buffer-modes): Move
Info-edit-mode reference to obsolete file.

5 years agoDocument ert test selectors in batch mode (Bug#37476)
Stefan Kangas [Sat, 21 Sep 2019 12:58:08 +0000 (14:58 +0200)]
Document ert test selectors in batch mode (Bug#37476)

* doc/misc/ert.texi (Running Tests in Batch Mode): Document test
selectors.

5 years agoImprove sorting in package list (Bug#37419)
Stefan Kangas [Mon, 16 Sep 2019 07:29:48 +0000 (09:29 +0200)]
Improve sorting in package list (Bug#37419)

* lisp/emacs-lisp/package.el (package-menu-mode): Allow sorting by
version or description.
(package-menu--version-predicate): Fix sorting by version.
(package-menu--description-predicate): Fix sorting by description.
(package-menu--archive-predicate): Fall back to sorting by name if
archive is the same.
(package-menu--name-predicate, package-menu--status-predicate): Add
doc string.
* etc/NEWS: Announce the above changes.

5 years agoMore improvements of doc strings in text-property-search.el
Eli Zaretskii [Sat, 28 Sep 2019 14:43:15 +0000 (17:43 +0300)]
More improvements of doc strings in text-property-search.el

* lisp/emacs-lisp/text-property-search.el (text-property-search-forward)
(text-property-search-backward): Further improvements of doc
strings.  (Bug#37488)

5 years agoUpdate X keysym mapping
Axel Svensson [Sat, 28 Sep 2019 13:44:01 +0000 (15:44 +0200)]
Update X keysym mapping

* lisp/term/x-win.el (x-keysym-table): Update the mappings
using current Xorg data.  (Bug#37530)

Copyright-paperwork-exempt: yes

5 years agoAdd bug reporting and link the manual on the about screen
Stefan Kangas [Fri, 13 Sep 2019 19:23:24 +0000 (21:23 +0200)]
Add bug reporting and link the manual on the about screen

* lisp/startup.el (fancy-about-text, normal-about-screen): Clarify
that "Contribute" also describes how to report bugs.  Add new link
"Emacs Manual".  (Bug#20697)

5 years agoFix running on MS-Windows with non-existing home directory
Eli Zaretskii [Sat, 28 Sep 2019 07:25:08 +0000 (10:25 +0300)]
Fix running on MS-Windows with non-existing home directory

* lisp/startup.el (startup--xdg-or-homedot): Don't access a
non-existent user home directory on windows-nt systems.
(Bug#37536)

5 years agoMention doc-view-scale-internally in the DocView manual node
Lars Ingebrigtsen [Fri, 27 Sep 2019 16:21:05 +0000 (18:21 +0200)]
Mention doc-view-scale-internally in the DocView manual node

* doc/emacs/misc.texi (DocView Navigation): Mention
doc-view-scale-internally (bug#33226).

5 years agoDon't discard customizations in progress when adding comments (Bug#5358)
Mauro Aranda [Fri, 27 Sep 2019 16:06:36 +0000 (18:06 +0200)]
Don't discard customizations in progress when adding comments (Bug#5358)

* lisp/cus-edit.el (custom-comment-show): Add docstring.  Save the
widget value in the :shown-value property, before redrawing.
(custom-variable-modified-p): New function, to complement the return
values of custom-variable-state.
(custom-variable-state-set): Use it.
(custom-face-value-create): Add children to the custom-face widget
before setting the state, to be able to check for user edits.
(custom-face-state-set): Check for user edits before calling
custom-face-state (bug#5358).

* test/lisp/custom-tests.el
(custom-test-show-comment-preserves-changes): New test.

5 years agoRun gnus-summary-prepare-exit-hook after flags have been updated
Nikolaus Rath [Fri, 27 Sep 2019 16:03:10 +0000 (18:03 +0200)]
Run gnus-summary-prepare-exit-hook after flags have been updated

* lisp/gnus/gnus-sum.el (gnus-summary-exit): Gnus message flags
must be set before expiration, not afterwards (bug#21071).

5 years agoChange the lighter in epa-info-mode
Lars Ingebrigtsen [Fri, 27 Sep 2019 15:49:37 +0000 (17:49 +0200)]
Change the lighter in epa-info-mode

* lisp/epa.el (epa-info-mode): Change the name of the mode so that
it doesn't look like it's Info mode (bug#7287).

5 years agognus-thread-ignore-subject doc string clarification
Lars Ingebrigtsen [Fri, 27 Sep 2019 14:54:59 +0000 (16:54 +0200)]
gnus-thread-ignore-subject doc string clarification

* lisp/gnus/gnus-sum.el (gnus-thread-ignore-subject): Document
that when not ignoring subjects, sorting will not happen as
expected (bug#35513).

5 years agoFix documentation on `C-u a' on nndiary group
Lars Ingebrigtsen [Fri, 27 Sep 2019 14:42:21 +0000 (16:42 +0200)]
Fix documentation on `C-u a' on nndiary group

* doc/misc/gnus.texi (Diary Group Parameters): Remove apparently
incorrect documentation about `C-u a' on nndiary groups
(bug#36849).

5 years agoFix reversed check in mm-possibly-verify-or-decrypt
Lars Ingebrigtsen [Fri, 27 Sep 2019 14:29:51 +0000 (16:29 +0200)]
Fix reversed check in mm-possibly-verify-or-decrypt

* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Fix
reverse check thinko that made unverified singed messages not
display correctly.

5 years ago.va/.vah/.sva/.svah now loads Verilog mode.
Wilson Snyder [Fri, 27 Sep 2019 14:24:52 +0000 (10:24 -0400)]
.va/.vah/.sva/.svah now loads Verilog mode.

* lisp/files.el (auto-mode-alist): Support .va /.vah/.sva/.svah file
extensions to load verilog-mode for Verilog-AMS.  Reported by Shareef
Jalloq.

5 years ago* lisp/net/nsm.el: Use lexical-binding
Stefan Monnier [Fri, 27 Sep 2019 12:01:04 +0000 (08:01 -0400)]
* lisp/net/nsm.el: Use lexical-binding

(nsm-check-tls-connection, nsm-query): Don't pass explicitly `obarray`
since it's the default anyway.
(nsm-query, nsm-query-user, nsm-save-host): Remove redundant
advertised-calling-convention.

5 years agoFix display of box around images
Eli Zaretskii [Fri, 27 Sep 2019 08:08:26 +0000 (11:08 +0300)]
Fix display of box around images

* src/xdisp.c (face_before_or_after_it_pos): Handle correctly
when we are called with it->bidi_it.first_elt set.  (Bug#17114)

5 years ago; * etc/NEWS (Gnus): Fix outline levels.
Basil L. Contovounesios [Fri, 27 Sep 2019 00:26:03 +0000 (01:26 +0100)]
; * etc/NEWS (Gnus): Fix outline levels.

5 years agoFix problem with changing to correct NNTP server
Lars Ingebrigtsen [Fri, 27 Sep 2019 00:17:14 +0000 (02:17 +0200)]
Fix problem with changing to correct NNTP server

* lisp/gnus/nntp.el (nntp-close-server):
* lisp/gnus/nnimap.el (nnimap-close-server):
* lisp/gnus/gnus-int.el (gnus-close-server): Take an optional DEFS
parameter to enable switching to the correct nnoo server (bug#20319)
when there's two servers with the same address.

5 years agonnimap.el: support additional expunge options
Nikolaus Rath [Thu, 26 Sep 2019 23:39:13 +0000 (01:39 +0200)]
nnimap.el: support additional expunge options

* lisp/gnus/nnimap.el (nnimap-close-group)
(nnimap-request-expire-articles, nnimap-delete-article)
(nnimap-request-scan): Add new 'never, 'immediate, and 'on-exit
settings for nnimap-expunge (bug#20670).

5 years agoTweak updating of readedness marks on the IMAP server
Lars Ingebrigtsen [Thu, 26 Sep 2019 23:14:01 +0000 (01:14 +0200)]
Tweak updating of readedness marks on the IMAP server

* lisp/gnus/nnimap.el (nnimap-request-set-mark): Ensure that
ticking/unticking also toggles readedness on the IMAP server
(bug#22590).

5 years ago* src/w32fns.c (Fw32_register_hot_key): Fix typo in docstring
Juanma Barranquero [Thu, 26 Sep 2019 23:08:09 +0000 (01:08 +0200)]
* src/w32fns.c (Fw32_register_hot_key): Fix typo in docstring

5 years agoFix nnir searching on nested Gnus topics
Lars Ingebrigtsen [Thu, 26 Sep 2019 22:43:43 +0000 (00:43 +0200)]
Fix nnir searching on nested Gnus topics

* lisp/gnus/nnir.el (gnus-group-make-nnir-group): On a topic line,
search all the groups, even in sub-topics (bug#28090).

5 years agoDon't hard-code the RSS structure so much in nnrss
Lars Ingebrigtsen [Thu, 26 Sep 2019 22:33:40 +0000 (00:33 +0200)]
Don't hard-code the RSS structure so much in nnrss

* lisp/gnus/nnrss.el (nnrss-get-namespace-prefix): Find the URL in
any section in the RSS (bug#34685).

5 years agoAdd a new `dom-search' function
Lars Ingebrigtsen [Thu, 26 Sep 2019 22:32:37 +0000 (00:32 +0200)]
Add a new `dom-search' function

* doc/lispref/text.texi (Document Object Model): Document it.

* lisp/dom.el (dom-search): New function.

5 years agoMake forward-button support help-echo function (bug#37515)
Katsumi Yamaoka [Thu, 26 Sep 2019 21:43:48 +0000 (21:43 +0000)]
Make forward-button support help-echo function (bug#37515)

* lisp/button.el (forward-button): Support help-echo function.

5 years agoInclude ImageMagick file name regexps in image-file-name-regexp
Juri Linkov [Thu, 26 Sep 2019 19:26:27 +0000 (21:26 +0200)]
Include ImageMagick file name regexps in image-file-name-regexp

* lisp/image-file.el (image-file-name-regexp): If compiled with
ImageMagick, include file name extensions it can handle (bug#9516).

5 years ago; Add traces to shadowfile-tests.el
Michael Albinus [Thu, 26 Sep 2019 18:55:49 +0000 (20:55 +0200)]
; Add traces to shadowfile-tests.el

5 years agomm-possibly-verify-or-decrypt should only issue errors when decrypting
Lars Ingebrigtsen [Thu, 26 Sep 2019 17:51:23 +0000 (19:51 +0200)]
mm-possibly-verify-or-decrypt should only issue errors when decrypting

* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Only do
the warning about failed decryption when we're handing encrypted
parts, not when doing verification.

5 years agoAdd key bindings for ibuffer filter commands
Stefan Kangas [Sun, 4 Aug 2019 17:34:01 +0000 (19:34 +0200)]
Add key bindings for ibuffer filter commands

* lisp/ibuffer.el (ibuffer--filter-map): Add keybinding for
'ibuffer-filter-chosen-by-completion' and
'ibuffer-filter-by-directory'.  (Bug#6847)

5 years agoRemove support for destructive splicing in elisp
Stefan Kangas [Fri, 13 Sep 2019 23:49:23 +0000 (01:49 +0200)]
Remove support for destructive splicing in elisp

* src/lread.c (read1): Don't handle destructive splicing in
backquote expressions (e.g. ",.<identifier>").  (Bug#19790)
(syms_of_lread): Remove Qcomma_dot.
* src/print.c (print_object): Don't check for Qcomma_dot.
* test/src/eval-tests.el
(eval-tests-19790-backquote-comma-dot-substitution): New test.
* etc/NEWS: Announce it.

5 years agoFix error in display-startup-screen
Lars Ingebrigtsen [Thu, 26 Sep 2019 16:27:03 +0000 (18:27 +0200)]
Fix error in display-startup-screen

* lisp/startup.el (use-fancy-splash-screens-p): Fix error in
display-startup-screen if create-image fails (bug#22072).

5 years agoAdd new function to clear tags in tabulated list
Stefan Kangas [Mon, 16 Sep 2019 01:48:47 +0000 (03:48 +0200)]
Add new function to clear tags in tabulated list

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-clear-all-tags):
New function to clear all tags from padding area in current buffer.
* doc/lispref/modes.texi (Tabulated List Mode): Document it.
* etc/NEWS: Announce it.

5 years agoDon't indent unrelated widgets following widget of type 'other
Mauro Aranda [Thu, 26 Sep 2019 15:16:28 +0000 (17:16 +0200)]
Don't indent unrelated widgets following widget of type 'other

* lisp/wid-edit.el (widget 'other): Use \n instead of the %n escape in the
:format property of this widget.  If %n is used at the end of the
format string, unrelated widgets get indented.  (Bug#12533)

* test/wid-edit-tests.el (widget-test-indentation-after-%n)
(widget-test-indentation-after-newline)
(widget-test-newline-and-indent-same-widget): New tests.

5 years agoMake mm-view-pkcs7-verify use epg if requested
Lars Ingebrigtsen [Thu, 26 Sep 2019 14:32:13 +0000 (16:32 +0200)]
Make mm-view-pkcs7-verify use epg if requested

* lisp/gnus/mm-view.el (mm-view-pkcs7-verify): Respect
mml-smime-use (bug#18393).

5 years agoMake it possible to view S/MIME verified emails
Lars Ingebrigtsen [Thu, 26 Sep 2019 14:24:29 +0000 (16:24 +0200)]
Make it possible to view S/MIME verified emails

* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): When
dissecting the result, we need a header (bug#18393).

* lisp/gnus/mm-view.el (mm-view-pkcs7-verify): Insert the verified
string.

* lisp/gnus/smime.el (smime-verify-region): Return the verified
string.

5 years agoFix recent gnus-rescale-image change
Lars Ingebrigtsen [Thu, 26 Sep 2019 13:47:06 +0000 (15:47 +0200)]
Fix recent gnus-rescale-image change

* lisp/gnus/gnus-util.el (gnus-rescale-image): Don't bug out on
non-graphical Emacs versions.

5 years ago; Fix typo and improve phrasing of last commit
Mattias Engdegård [Thu, 26 Sep 2019 12:40:48 +0000 (14:40 +0200)]
; Fix typo and improve phrasing of last commit

5 years ago* etc/NEWS: Note removal of internal rx symbols (bug#37517)
Mattias Engdegård [Thu, 26 Sep 2019 11:15:03 +0000 (13:15 +0200)]
* etc/NEWS: Note removal of internal rx symbols (bug#37517)

5 years ago* lisp/desktop.el (desktop-read): With argument, ask the user for DIRNAME.
Juanma Barranquero [Thu, 26 Sep 2019 10:15:36 +0000 (12:15 +0200)]
* lisp/desktop.el (desktop-read): With argument, ask the user for DIRNAME.

* etc/NEWS: Document it.

5 years agoAvoid errors in tramp-tests with a remote ksh shell
Michael Albinus [Thu, 26 Sep 2019 07:33:47 +0000 (09:33 +0200)]
Avoid errors in tramp-tests with a remote ksh shell

* test/lisp/net/tramp-tests.el (tramp--test-ksh-p): New defun.
(tramp-test41-utf8, tramp-test41-utf8-with-stat)
(tramp-test41-utf8-with-perl, tramp-test41-utf8-with-ls):
Skip, when remote shell is ksh.

5 years agoAdd rx extension mechanism
Mattias Engdegård [Wed, 25 Sep 2019 21:29:50 +0000 (14:29 -0700)]
Add rx extension mechanism

Add a built-in set of extension macros: `rx-define', `rx-let' and
`rx-let-eval'.

* lisp/emacs-lisp/rx.el (rx-constituents, rx-to-string): Doc updates.
(rx--builtin-symbols, rx--builtin-names, rx--local-definitions)
(rx--lookup-def, rx--substitute, rx--expand-template)
(rx--make-binding, rx--make-named-binding, rx--extend-local-defs)
(rx-let-eval, rx-let, rx-define): New.
(rx--translate-symbol, rx--translate-form): Use extensions if any.
(rx): Use local definitions.
* test/lisp/emacs-lisp/rx-tests.el (rx-let, rx-define)
(rx-to-string-define, rx-let-define, rx-let-eval): New.
* etc/NEWS (Changes in Specialized Modes and Packages):
* doc/lispref/searching.texi (Rx Notation, Rx Functions, Extending Rx):
Add node about rx extensions.

5 years agoNew rx implementation
Mattias Engdegård [Wed, 25 Sep 2019 21:29:50 +0000 (14:29 -0700)]
New rx implementation

* lisp/emacs-lisp/rx.el:
* test/lisp/emacs-lisp/rx-tests.el:
* doc/lispref/searching.texi (Rx Constructs):
Rewrite rx for correctness, clarity, and performance.  The new
implementation retains full compatibility and has more comprehensive
tests.

* lisp/emacs-lisp/re-builder.el (reb-rx-font-lock-keywords):
Adapt to changes in internal variables in rx.el.

5 years agoAllow regexp-quote to return its argument
Mattias Engdegård [Mon, 23 Sep 2019 16:56:30 +0000 (18:56 +0200)]
Allow regexp-quote to return its argument

* src/search.c (Fregexp_quote): Only allocate a new string if needed.
* doc/lispref/searching.texi (Regexp Functions):
* etc/NEWS (Incompatible Lisp Changes): Document.

5 years agoFix indentation of widgets (Bug#7851)
Mauro Aranda [Wed, 25 Sep 2019 12:51:18 +0000 (14:51 +0200)]
Fix indentation of widgets (Bug#7851)

* lisp/wid-edit.el (widget--should-indent-p): New function, to decide
whether to indent or not.
(widget-checklist-value-add-item, widget-radio-add-item)
(widget-editable-list-format-handler)
(widget-editable-list-entry-create)
(widget-group-value-create): Use it (bug#7851).

5 years agoMake gnus-rescale-image work on modern Emacs versions
Lars Ingebrigtsen [Wed, 25 Sep 2019 12:47:52 +0000 (14:47 +0200)]
Make gnus-rescale-image work on modern Emacs versions

* lisp/gnus/gnus-util.el (gnus-rescale-image): Make this work with
native image transforms.

5 years agoImprove documentation of 'text-property-search-forward'
Eli Zaretskii [Wed, 25 Sep 2019 08:42:35 +0000 (11:42 +0300)]
Improve documentation of 'text-property-search-forward'

* lisp/emacs-lisp/text-property-search.el (text-property-search-forward)
(text-property-search-backward): Improve doc strings.  (Bug#37488)

5 years ago; * lisp/emacs-lisp/debug.el (debugger-mode): Doc fix. (Bug#37352)
Eli Zaretskii [Wed, 25 Sep 2019 08:09:09 +0000 (11:09 +0300)]
; * lisp/emacs-lisp/debug.el (debugger-mode): Doc fix.  (Bug#37352)

5 years agoMake ImageMagick multi-image size calculations work for .ico files
Lars Ingebrigtsen [Tue, 24 Sep 2019 17:47:20 +0000 (19:47 +0200)]
Make ImageMagick multi-image size calculations work for .ico files

* src/image.c (imagemagick_load_image): Compute image sizes
correctly in multi-image .ico files and the like (bug#18333).

5 years agoSlight shr-put-image clean up
Lars Ingebrigtsen [Tue, 24 Sep 2019 17:38:16 +0000 (19:38 +0200)]
Slight shr-put-image clean up

* lisp/net/shr.el (shr-put-image): Use image-multi-frame-p
directly, and remove outdated comments (image-multi-frame-p
returns the delay).

5 years agoNew edebug-spec, nested-backquote-form. This fixes bug #31090
Alan Mackenzie [Tue, 24 Sep 2019 17:04:12 +0000 (17:04 +0000)]
New edebug-spec, nested-backquote-form.  This fixes bug #31090

* lisp/emacs-lisp/edebug.el: (nested-backquote-form): a new edebug-spec which
handles nested backquote structures without a , or ,@ "between" the outer and
inner backquotes.
(backquote-form): Use nested-backquote-form.

5 years agoMake --with-imagemagick bug out if there's no support for it
Lars Ingebrigtsen [Tue, 24 Sep 2019 17:01:51 +0000 (19:01 +0200)]
Make --with-imagemagick bug out if there's no support for it

* configure.ac (HAVE_IMAGEMAGICK): Stop configuration if the user
has said --with-imagemagick, but there's no support for it
(bug#24455).

5 years agoAllow a :stride argument so XBM boolvecs are in the right format.
Pip Cet [Tue, 24 Sep 2019 16:35:15 +0000 (18:35 +0200)]
Allow a :stride argument so XBM boolvecs are in the right format.

* src/image.c (xbm_image_p): Explicitly specify the right stride if a
bool vector is used as argument.
* doc/lispref/display.texi (XBM Images): Describe bool vectors
accurately.
* etc/NEWS: Document the change (bug#36337).

5 years ago* lisp/net/tramp-sh.el (tramp-get-remote-stat): Ban "stat" on Solaris.
Michael Albinus [Tue, 24 Sep 2019 15:56:55 +0000 (17:56 +0200)]
* lisp/net/tramp-sh.el (tramp-get-remote-stat): Ban "stat" on Solaris.

5 years ago(calc): Fix link in doc string
Noah Swainland [Tue, 24 Sep 2019 15:52:10 +0000 (17:52 +0200)]
(calc): Fix link in doc string

* lisp/calc/calc.el (calc): Fix link in doc string (bug#37500).

Copyright-paperwork-exempt: yes

5 years agoAllow controlling when to send cookies when retrieving images in shr
Lars Ingebrigtsen [Tue, 24 Sep 2019 15:48:35 +0000 (17:48 +0200)]
Allow controlling when to send cookies when retrieving images in shr

* lisp/net/shr.el (shr--use-cookies-p): New function.
(shr-tag-img): Use it.
(shr-cookie-policy): New variable.
(shr-save-contents): Use cookies.

* doc/misc/eww.texi (Advanced): Document it.

5 years agoDocument how to listen on all interfaces in the Elisp manual
Robert Pluim [Tue, 24 Sep 2019 11:52:48 +0000 (13:52 +0200)]
Document how to listen on all interfaces in the Elisp manual

* doc/lispref/processes.texi (Network Processes): Explain how to
listen on all interfaces.

5 years ago; Fix typo in recently fixed doc string
Eli Zaretskii [Tue, 24 Sep 2019 08:49:12 +0000 (11:49 +0300)]
; Fix typo in recently fixed doc string

* src/process.c (Fmake_network_process): Fix capitalization in
doc string.

5 years agoAllow url-insert-file-contents to work on 304 responses
Lars Ingebrigtsen [Tue, 24 Sep 2019 08:43:28 +0000 (10:43 +0200)]
Allow url-insert-file-contents to work on 304 responses

* lisp/url/url-http.el (url-http--insert-file-helper): If the
server answers 304 Not modified, then that's not an error
(bug#26063).

5 years agoClean up url-parse-args slightly
Lars Ingebrigtsen [Tue, 24 Sep 2019 08:07:26 +0000 (10:07 +0200)]
Clean up url-parse-args slightly

* lisp/url/url-util.el (url-parse-args): Don't leave temporary
buffer behind.  Clean up slightly.

5 years ago; Fix previous make-network-process doc change
Robert Pluim [Tue, 24 Sep 2019 08:23:05 +0000 (10:23 +0200)]
; Fix previous make-network-process doc change

* src/process.c (Fmake_network_process): Correct typo.

5 years agoFix old problem with HTTPS HTTP 0.9 sentinels
Lars Ingebrigtsen [Tue, 24 Sep 2019 07:57:57 +0000 (09:57 +0200)]
Fix old problem with HTTPS HTTP 0.9 sentinels

* lisp/url/url-http.el (url-http-end-of-document-sentinel): Pass
on the tls parameter if we have HTTPS (bug#14983).

5 years agoResurrect support for negative frame geometry parameters on MS-Windows
Eli Zaretskii [Tue, 24 Sep 2019 07:28:44 +0000 (10:28 +0300)]
Resurrect support for negative frame geometry parameters on MS-Windows

* src/w32fns.c (my_create_window): Avoid assertion violations
in XFIXNUM when the 'top' or 'left' frame parameters are
neither fixnums nor 'unbound', in which case
f->size_hint_flags are set by gui_figure_window_size.
(Bug#37415)

5 years agoAllow scrolling the NSM window
Lars Ingebrigtsen [Tue, 24 Sep 2019 06:33:39 +0000 (08:33 +0200)]
Allow scrolling the NSM window

* lisp/net/nsm.el (nsm-query-user): Allow moving
backwards/forwards in the NSM buffer if the window is too small to
show all the details (bug#28069).

5 years agoVerilog-Mode collected updates.
Wilson Snyder [Mon, 23 Sep 2019 22:49:25 +0000 (18:49 -0400)]
Verilog-Mode collected updates.

* lisp/progmodes/verilog-mode.el (verilog-auto-inst-param): Add regexp
paramter to AUTOINSTPARAM to select which parameters to export.  Reported
by Vish S.
(verilog-build-defun-re): Fix `verilog-goto-defun' to find automatic
function/tasks, bug1492.  Reported by Enze Chi.
(verilog-preprocessor): Update default.