1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

137597 commits

Author SHA1 Message Date
Nick Drozd
b8bf7255f3 * test/lisp/progmodes/cc-mode-tests.el: Add a test with /***/ in #define lines 2019-07-17 14:07:26 +00:00
Alan Mackenzie
87b1495f30 * lisp/progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Fix faulty regexp 2019-07-17 09:35:26 +00:00
Glenn Morris
7e70c78867 An electric test is now passing
* test/lisp/electric-tests.el
(electric-pair-whitespace-chomping-2-at-point-4-in-c++-mode-in-strings):
Seems to pass since today's cc-mode changes.
2019-07-16 16:04:54 -07:00
Glenn Morris
31f2663e56 * lisp/wid-edit.el: Previous change needs subr-x. 2019-07-16 15:57:51 -07:00
Sam Steingold
5aa6a15e20 Treat the "Link" link in gnus-summary-browse-urls specially
* lisp/gnus/gnus-sum.el (gnus-collect-urls): Make sure that
the URL labeled "Link" is the first in the return list.
(gnus-summary-browse-url): Use the 1st URL as the default.
* lisp/wid-edit.el (widget-text): New function.
2019-07-16 17:24:32 -04:00
Alan Mackenzie
585fb95739 CC Mode: allow bogusly "adjacent" double quote marks to pair up syntactically
For this introduce the text property c-fl-syn-tab to "mirror" syntax-table.

* lisp/progmodes/cc-defs.el (c-is-escaped, c-will-be-escaped, c-put-syn-tab)
(c-clear-syn-tab, c-clear-syn-tab-properties, c-with-extended-string-fences):
new macros.
(c-point): Use c-is-escaped
(c-search-forward-char-property, c-search-backward-char-property)
(c-search-forward-char-property-with-value-on-char)
(c-search-forward-char-property-without-value-on-char): Fix regexp error
involving \n.

* lisp/progmodes/cc-engine.el (c-semi-pp-to-literal): User
c-with-extended-string-fences around a parse-partial-sexp.
(c-full-get-near-cache-entry): Fix an off-by-one error.
(c-full-pp-to-literal): Avoid writing duplicate entries into a cache.
(c-after-change-unmark-raw-strings): Use c-clear-syn-tab-properties.

* lisp/progmodes/cc-mode.el (c-leave-cc-mode-mode): Clear the c-fl-syn-tab
properties, too.
(c-basic-common-init): Mark c-fl-syn-tab as a non-sticky text property.
(c-depropertize-new-text): Also handle c-fl-syn-tab.
(c-multiline-string-check-final-quote, c-parse-quotes-after-change): Use
c-is-escaped.
(c-fl-syn-tab-region): New variable.
(c-clear-string-fences, c-restore-string-fences, c-remove-string-fences): New
functions.
(c-before-change-check-unbalanced-strings)
(c-after-change-mark-abnormal-strings, c-after-change-escape-NL-in-string):
Use the new functions and macros.
(c-before-change, c-after-change, c-font-lock-fontify-region): Restore the
syntax-table text properties from c-fl-syn-tab text properties for these
functions.
(c-electric-pair-inhibit-predicate): Test the c-fl-syn-tab property rather
than syntax-table.
2019-07-16 20:01:12 +00:00
Basil L. Contovounesios
d2758820cd Fix failing secrets-test03-items
* test/lisp/net/secrets-tests.el: Use lexical-binding.
(secrets-test03-items): Do not assume :xdg:schema attribute is
silently added to the front of the collection (bug#36694).
(secrets-test04-search, secrets-test-all): Quote function symbols as
such.
2019-07-16 18:29:52 +01:00
Mattias Engdegård
a87840fffb Fix calc number formatting with digit grouping (bug#36689)
The functions math-format-hex and math-format-octal were not
implemented, yet called, leading to a crash when using hex or octal
radix with digit grouping.

* test/lisp/calc/calc-tests.el (calc-test-format-radix): New test.
* lisp/calc/calc-ext.el: Don't declare non-existing functions.
(math--format-integer-fancy): Don't call non-existing functions.
* lisp/calc/calc-bin.el (math-format-binary, math-binary-digits):
Simplify, fixing 0-padding bug.
2019-07-16 17:37:46 +02:00
Lars Ingebrigtsen
0a2461be9e Revert "Add support for paths to svg.el"
This reverts commit d6bc55ae2d.

Paperwork not ready for Felix Klee; will reapply once that's in place.
2019-07-16 15:44:58 +02:00
Lars Ingebrigtsen
282673e65e Revert "* doc/lispref/display.texi (SVG Images): Add menu for subsection."
This reverts commit e5cd597c77.

Paperwork nod ready for the SVG Path patch.
2019-07-16 15:43:57 +02:00
Mattias Engdegård
450fd8e570 Set revert-buffer-function in ert-results-mode
* lisp/emacs-lisp/ert.el (ert-results-mode): Set revert-buffer-function
to re-run the same test selection.  It is a good fit and permits use of
the standard "g" key binding.
2019-07-16 15:35:45 +02:00
Stephen Berman
288e83ae00 Prevent infinite loop on entering wdired-mode
* lisp/wdired.el (wdired-preprocess-symlinks): Remove unneeded use
of beginning-of-line, which also triggers an infinite loop in a
find-dired buffer that doesn't end with a newline (see discussion
in bug#35609).
2019-07-16 11:04:56 +02:00
Juri Linkov
cdec5a17fd * lisp/vc/vc.el (vc-log-search): New command (bug#36644).
* lisp/vc/vc-git.el (vc-git-log-search): New function.
(vc-git-log-view-mode): Check vc-log-view-type for log-search.
2019-07-16 01:27:19 +03:00
Juri Linkov
6253541c76 * lisp/vc/vc-dir.el (vc-dir-search): Remove lambda.
(Bug#31578) Thanks to Dmitry Gutov <dgutov@yandex.ru>
2019-07-16 01:12:12 +03:00
Juri Linkov
0746a9e275 * lisp/frame.el (make-frame-on-display): Use x-display-list in completion.
(Bug#29713)
2019-07-16 01:09:20 +03:00
Juri Linkov
de8b677a01 * lisp/progmodes/sh-script.el (sh-assignment): Put delete-selection on symbol 2019-07-16 01:00:49 +03:00
Glenn Morris
e5cd597c77 * doc/lispref/display.texi (SVG Images): Add menu for subsection. 2019-07-15 14:15:26 -07:00
Stefan Monnier
2f1e5250a6 * lisp/gnus/nntp.el: Use lexical-binding
(nntp-server-action-alist): Expose the code to the compiler.
(nntp-with-open-group-function): No need to obfuscate identifiers any more.
(nntp-authinfo-rejected): Use `define-error`.
2019-07-15 15:28:07 -04:00
Lars Ingebrigtsen
b7fcfc6412 Fix INITIAL-INPUT cons handling in ido-read-internal
* lisp/ido.el (ido-read-internal): Is INITIAL-INPUT is a cons that
specifies cursor position, adjust the number to be palatable for
`read-for-minibuffer' (bug#27807).
2019-07-15 20:52:48 +02:00
Lars Ingebrigtsen
93e1f7c66f Fix saving certificates in the NSM on high security levels
* lisp/net/nsm.el (nsm-check-certificate): `nsm-fingerprint-ok-p'
will save the fingerprint in the correct temporary/permanent
storage, so saving it once more (in the permanent storage) if the
security level is high or greater is a mistake (bug#27823).
2019-07-15 20:31:42 +02:00
Lars Ingebrigtsen
6cd3b7a62b Tweak mouse-face highlighting of Occur buffers
* lisp/replace.el (occur-engine): Ensure that the mouse highlight
is done over the entire line (bug#27846).
2019-07-15 20:13:48 +02:00
Lars Ingebrigtsen
b7946afe25 open-dribble-file doc string clarification
* src/keyboard.c (Fopen_dribble_file): Clarify when the file is
closed, and when events are written to the file (bug#27996).
2019-07-15 19:55:26 +02:00
Eric Abrahamsen
0797b39185 Possibly skip IMAP server FETCH responses
See bug#35433

* lisp/gnus/nnimap.el (nnimap-transform-headers): Skip FETCH responses
  that only provide message flags, not message headers.
2019-07-15 10:43:40 -07:00
Felix E. Klee
d6bc55ae2d Add support for paths to svg.el
* doc/lispref/display.texi (SVG Images): Document svg-path,
svg-clip-path and svg-node (bug#32359).

* doc/lispref/display.texi (SVG Path Commands): New node.

* lisp/svg.el (svg--plist-delete, svg--path-command-symbol)
(svg--elliptical-arc-coordinates, svg--elliptical-arc-command)
(svg--moveto-command, svg--closepath-command)
(svg--lineto-command, svg--horizontal-lineto-command)
(svg--vertical-lineto-command, svg--curveto-command)
(svg--smooth-curveto-command)
(svg--quadratic-bezier-curveto-command)
(svg--smooth-quadratic-bezier-curveto-command)
(svg--eval-path-command, svg-path, svg-clip-path, svg-node): New
functions.
2019-07-15 17:07:56 +02:00
Lars Ingebrigtsen
3b69921185 Revert "Add edebug specs for inline.el"
This reverts commit ed29d9fe52.

The edebug specs were already in the declare form, and in addition, it didn't fix the problem.
2019-07-15 16:47:52 +02:00
Lars Ingebrigtsen
d0e558c002 Mention changing the font size in the Emacs manual
* doc/emacs/frames.texi (Fonts): Mention changing the font scale
(bug#28196).
2019-07-15 14:11:30 +02:00
Samuel Bronson
d357f681d7 Mark semantic functions correctly in defcustom
* lisp/cedet/semantic/format.el (semantic-format-tag-custom-list):
Mark functions correctly in defcustom (bug#28267).
2019-07-15 13:43:14 +02:00
Lars Ingebrigtsen
b808b9ea49 Clarify doc of isearch-wrap-function
* lisp/isearch.el (isearch-wrap-function): Doc clarification
(bug#28388).
2019-07-15 13:43:14 +02:00
Robert Pluim
b34c6d2c96 Don't delete GnuTLS boot parameters too early
* src/process.c (connect_network_socket): Don't delete the GnuTLS
boot parameters until after we've managed to connect at the IP
level (bug#36660).
2019-07-15 13:30:11 +02:00
Lars Ingebrigtsen
c8c23c980e Fix *Messages* grouping in C-Mouse-1 buffer menu
* lisp/mouse.el (mouse-buffer-menu-mode-groups): Don't group the
*Messages* buffer with Mail/News (bug#32007).
2019-07-15 12:51:20 +02:00
Michael Albinus
f23a3dd4a9 * lisp/net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers):
Don't cancel if debug buffers aren't appended.
2019-07-15 12:49:42 +02:00
Lars Ingebrigtsen
4529057c97 Make directory-files-recursively take a PREDICATE parameter
* lisp/files.el (directory-files-recursively): Take an optional
PREDICATE parameter (bug#28567).

* doc/lispref/files.texi (Contents of Directories): Document it.
2019-07-15 11:52:42 +02:00
Lars Ingebrigtsen
dbd1d2ebf8 Tweak gv-define-setter debug setting
* lisp/emacs-lisp/gv.el (gv-define-setter): Change edebug spec
from body to def-body (bug#28729).
2019-07-15 11:16:37 +02:00
Michael Albinus
966c4d3ba8 Fix edge cases in Tramp's copy
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Special handling for "rsync".
(tramp-find-inline-compress): Make check more robust on MS Windows.
2019-07-15 11:11:59 +02:00
Lars Ingebrigtsen
dea9970bc0 package-archive-priorities doc addition
* lisp/emacs-lisp/package.el (package-archive-priorities):
Document that negative priorities will lead to packages not being
updated (bug#28897).
2019-07-15 00:22:45 +02:00
Glenn Morris
c3da6fd707 Stop wdired tests leaving behind symlink /tmp/emacs1000
* test/lisp/wdired-tests.el (server-socket-dir): Make effective.
2019-07-14 15:18:22 -07:00
Lars Ingebrigtsen
71e16923c0 Mark octave-block-offset as a safe local variable
* lisp/progmodes/octave.el (octave-block-offset): Mark as safe as
a local variable (bug#28916).
2019-07-15 00:02:08 +02:00
Glenn Morris
5f69da273b ; NEWS copyedits 2019-07-14 14:28:00 -07:00
Glenn Morris
fe2141d157 Update a ffap test
* test/lisp/ffap-tests.el (ffap-other-window--bug-25352):
Update for incompatible ffap-other-window change.
2019-07-14 13:28:54 -07:00
Lars Ingebrigtsen
9d84fcbef5 Make elint understand condition-case-unless-debug
* lisp/emacs-lisp/elint.el (elint-special-forms): Teach elint
about `condition-case-unless-debug' (bug#29585).
2019-07-14 20:24:03 +02:00
Lars Ingebrigtsen
284e6cf9a4 Fix prompting in functions like ffap-read-only
* lisp/ffap.el (ffap-prompter, ffap-other-window)
(ffap-other-frame, ffap-read-only)
(ffap-read-only-other-window, ffap-read-only-other-frame)
(ffap-alternate-file, ffap-alternate-file-other-window)
(ffap-literally): Rework to be able to specify different prompts
for different actions (bug#30284) and don't use
`call-interactively' all over the place.
2019-07-14 19:17:41 +02:00
Lars Ingebrigtsen
783eca5715 Make describe-face also output the version information
* lisp/help-fns.el (describe-variable-custom-version-info): Allow
taking a type as an optional input, so this can be used for faces,
too (bug#30527).

* lisp/faces.el (describe-face): Use this to output the version
information.
2019-07-14 18:50:27 +02:00
Alan Third
ac57c50938 Use correct colorspace for XBM images
* src/nsimage.m ([EmacsImage setXBMColor:]): Use 'generic RGB' color
space.
2019-07-14 17:41:19 +01:00
Lars Ingebrigtsen
636dc37c70 Revert "Make describe-face also output the version information"
This reverts commit a7aae1473c.

The patch broke the build.
2019-07-14 18:37:55 +02:00
Lars Ingebrigtsen
0c450e09b8 Tweak bug ID prompting in gnus-group--read-bug-ids
* lisp/gnus/gnus-group.el (gnus-group--read-bug-ids): Default to
current bug id on RET.
2019-07-14 18:27:50 +02:00
Lars Ingebrigtsen
a7aae1473c Make describe-face also output the version information
* lisp/help-fns.el (describe-variable-custom-version-info): Allow
taking a type as an optional input, so this can be used for faces,
too (bug#30527).

* lisp/faces.el (describe-face): Use this to output the version
information.
2019-07-14 17:02:05 +02:00
Stefan Monnier
8ff09154a2 ; Add comment to hash_table_rehash (Bug#36447)
* src/fns.c (hash_table_rehash): Add a comment to explain that
hash_table_rehash is not used in "normal" rehashing, but only in the
rare case of rehashing on the first access to a preloaded hash-table.
2019-07-14 10:04:22 -04:00
Noam Postavsky
150aec0af3 Use ngettext in vc-dir-clean-files
* lisp/vc/vc-dir.el (vc-dir-clean-files): Use ngettext to separate
pluralization from format string.
2019-07-14 10:04:22 -04:00
Lars Ingebrigtsen
8ebcc7b9d4 Tweak background colour handling in shr
* lisp/net/shr.el (shr-fill-line): Keep the background colour on
the newline and the indentation.
2019-07-14 14:45:21 +02:00
Lars Ingebrigtsen
d3256dc78a Rename vc-dir-delete-files-no-vc to vc-dir-clean-files
* doc/emacs/maintaining.texi (VC Directory Commands): Adjust
command name.

* lisp/vc/vc-dir.el (vc-dir-clean-files): Rename from
vc-dir-delete-files-no-vc, and work on unregistered files only
(bug#31732).
(vc-dir-menu-map): Adjust command name.
2019-07-14 14:25:44 +02:00