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

137924 commits

Author SHA1 Message Date
Lars Ingebrigtsen
e56e85d227 macroexp doc fixes
* lisp/emacs-lisp/macroexp.el (macroexp-progn): Doc clarification
(bug#19371).
(macroexp-let*): Doc fix.
2019-08-02 23:11:28 +02:00
Lars Ingebrigtsen
530a4af66c macroexp--cons doc fix
* lisp/emacs-lisp/macroexp.el (macroexp--cons): Doc fix (bug#19371).
2019-08-02 23:03:47 +02:00
Lars Ingebrigtsen
6f888d0711 Fix some minor inconsistencies in the Package examples
* doc/lispref/package.texi (Simple Packages): Use one of the
approved keywords (bug#19490).

* doc/lispref/tips.texi (Library Headers): Use URL instead of
Homepage to make things consistent with "Simple Packages".
2019-08-02 22:36:38 +02:00
Lars Ingebrigtsen
acb8e331ca Don't but out on ~/.git files in ede
* lisp/cedet/ede/detect.el (ede--detect-ldf-root-predicate): Make
this work with ~/ as the dir (bug#19521).
2019-08-02 22:04:38 +02:00
Lars Ingebrigtsen
44d02d366b browse-url doc string fixup
* lisp/net/browse-url.el (browse-url-browser-function)
(browse-url-secondary-browser-function): Mention each other in the
doc strings.
2019-08-02 21:45:19 +02:00
Lars Ingebrigtsen
685a82298e Make Info-find-file ensure that Info is initialised
* lisp/info.el (Info-find-file): Ensure that Info is initialised,
because libraries call that function (bug#19880).
2019-08-02 21:25:29 +02:00
Lars Ingebrigtsen
1b82cc0105 Fix progression in hideshow.el
* lisp/progmodes/hideshow.el (hs-hide-all): Ensure progression in
a less brittle fashion (bug#19892).
2019-08-02 21:21:23 +02:00
Michael Heerdegen
0393cd2f72 Fix example code in hideshow.el
* lisp/progmodes/hideshow.el: The original example would infloop
(bug#19892).
2019-08-02 21:04:28 +02:00
Michael Albinus
3e943ebc34 Use default value of `parse-time-months' in tramp-smb.el
* lisp/net/tramp-smb.el (tramp-smb-read-file-entry): Use default
value of `parse-time-months'.
2019-08-02 20:14:23 +02:00
Michael Albinus
a6a0e857d4 ; Fix typo in filenotify-tests.el 2019-08-02 20:13:44 +02:00
Tassilo Horn
10065010a6 Improve pretty-printing of multiple JSON snippets in a region
* lisp/json.el (json-pretty-print): Improve pretty-printing of
multiple JSON snippets in a region.  Don't lose the region contents
starting with the first non-JSON-parseable text.  Also, don't swallow
errors that occurred while parsing (bug#34160).
2019-08-02 18:05:13 +02:00
Basil L. Contovounesios
695fbcf56d ; Docfixes for recent browse-url.el additions
* lisp/net/browse-url.el (browse-url-secondary-browser-function)
(browse-url-button-copy): Fix punctuation in and clarify docstrings.
2019-08-02 16:42:38 +03:00
Alan Mackenzie
558038ccb7 CC Mode: Fix error in macro cache. This fixes bug #36802
* lisp/progmodes/cc-engine.el (c-invalidate-macro-cache): Add in a cond arm
to handle the change position being less than the recorded CPP contruct end.
2019-08-02 13:39:57 +00:00
Basil L. Contovounesios
eddf4664d7 Make gravatar.el more configurable
For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html

* etc/NEWS: Announce changes in gravatar.el user options.

* lisp/image/gravatar.el (gravatar-cache-ttl): Change :type to
number of seconds without changing the default value and while still
accepting other timestamp formats.
(gravatar-rating): Restrict :type to ratings recognized by Gravatar.
(gravatar-size): Allow nil as a value, in which case Gravatar's
default size is used.
(gravatar-default-image, gravatar-force-default): New user options
controlling the Gravatar query parameters 'default' and
'forcedefault', respectively.
(gravatar-base-url): Use HTTPS.
(gravatar--query-string): New helper function to facilitate testing.
(gravatar-build-url): Use it.

* test/lisp/image/gravatar-tests.el (gravatar-size)
(gravatar-default-image, gravatar-force-default)
(gravatar-build-url): New tests.
2019-08-02 16:33:30 +03:00
Basil L. Contovounesios
b4b1eda7fb Fix some minor gravatar.el issues
For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html
* lisp/image/gravatar.el (gravatar-hash): Trim leading and trailing
whitespace in given address, as per the Gravatar docs.
(gravatar-retrieve-synchronously): Silence call to
url-retrieve-synchronously for consistency with gravatar-retrieve.
(gravatar-retrieved): Only cache buffer on successful retrieval.
* test/lisp/image/gravatar-tests.el: New file.
2019-08-02 16:33:30 +03:00
Basil L. Contovounesios
cf569e520e DRY in gravatar.el
For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html
* lisp/image/gravatar.el (gravatar-data->image): Remove.
(gravatar-retrieve, gravatar-retrieve-synchronously): Reuse
url-fetch-from-cache and gravatar-retrieved to reduce duplication.
(gravatar-retrieved): Only cache buffer if url-current-object is
non-nil and return result of callback.  This affords reusing this
function in cached URL buffers.
2019-08-02 16:33:30 +03:00
Basil L. Contovounesios
60eb0a4834 Use lexical-binding for Gravatar support
For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00528.html
* lisp/gnus/gnus-gravatar.el: Use lexical-binding.  Link custom
group 'gnus-gravatar' to 'gravatar'.
(gnus-gravatar-size, gnus-gravatar-too-ugly): Doc fix.
(gnus-gravatar-insert): Check liveness of article buffer sooner.
(gnus-treat-from-gravatar, gnus-treat-mail-gravatar): Use
interactive spec "p" instead of emulating it.
* lisp/image/gravatar.el: Use lexical-binding.
(gravatar-cache-expired): Remove.  Change all callers to use
url-cache-expired instead.
(gravatar-get-data, gravatar-retrieve)
(gravatar-retrieve-synchronously): Simplify.
2019-08-02 16:33:30 +03:00
Alan Mackenzie
87ec668e95 CC Mode: Fix spurious recognition of operators beginning with, e.g. "or"
This fixes bug #36801.

* lisp/progmodes/cc-langs.el (c-pre-lambda-tokens-re): Use c-make-keywords-re
rather than regexp-opt to make an optimised regexp out of a list of tokens.
2019-08-02 12:57:40 +00:00
Lars Ingebrigtsen
3975eb4615 pdb doc clarification
* lisp/progmodes/gud.el (pdb): Clarify what the parameters mean
(bug#20106).
2019-08-02 14:46:55 +02:00
Lars Ingebrigtsen
7197fbebfc Mention that some dired commands work on the current file, too
* lisp/dired-aux.el (dired-do-search): Mention that it works on
file under point (bug#20194).
(dired-do-find-regexp-and-replace): Ditto.
(dired-do-find-regexp): Ditto.
2019-08-02 14:46:55 +02:00
Alan Mackenzie
2ca12bb3de CC Mode: Fix the timing of application and removal of string fence properties
This fixes bug #36897.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Check
string fence text properties are actually present on string delimiters before
trying to remove them.
(c-before-change): Amend the nesting of unwind-protect, widen,
c-restore-string-fences, and c-clear-string-fences.  Move
invalidate-state-cache to outside of the widening.
(c-after-change): Amend the nesting of unwind-protect, widen,
c-restore-string-fences, and c-clear-string-fences.
2019-08-02 11:24:38 +00:00
Lars Ingebrigtsen
ccc52f1d97 Use "rebinding keys" in the "Rebinding" section of the manual
* doc/emacs/custom.texi (Rebinding): Use the term "rebinding keys"
instead of "redefining keys", because the former seems more
logical (bug#21036).
2019-08-02 12:44:40 +02:00
Mattias Engdegård
408e75e819 Clean up file-size-function
It is now called `byte-count-to-string-function', and used instead of
calling `file-size-human-readable' directly where appropriate.

* lisp/files.el (file-size-human-readable-iec): New.
(file-size-function): Rename to byte-count-to-string-function.  Better
default value.  Eliminate lambda.  Better default for custom choice.
Put in group `files'.  More descriptive doc string.  Move.
(out-of-memory-warning-percentage, warn-maybe-out-of-memory)
(get-free-disk-space):
* lisp/dired.el (dired-number-of-marked-files):
* lisp/url/url-http.el (url-http-simple-after-change-function)
(url-http-content-length-after-change-function):
Use byte-count-to-string-function.
* test/lisp/files-test.el (files-test-file-size-human-readable):
Test file-size-human-readable-iec.
2019-08-02 12:38:44 +02:00
Eli Zaretskii
b49d987a8c Mention font-backend related crashes in PROBLEMS
* etc/PROBLEMS: Mention the crash in the Cairo build when
.emacs.desktop messes with font-backend.  (Bug#36835)
2019-08-02 12:24:53 +03:00
Paul Eggert
fbd2ea1f73 Fix two parse-time-months invalid assumptions
* lisp/gnus/nnimap.el: Do not require parse-time.
* lisp/gnus/nnimap.el (nnimap-find-expired-articles):
* lisp/net/pop3.el (pop3-make-date):
Just use system-time-locale and format-time-string; no need to
refer to parse-time-months.
* lisp/net/pop3.el (parse-time-months): Remove defvar.
* lisp/net/tramp-smb.el (tramp-smb-read-file-entry):
Add FIXME comment about this.
2019-08-01 15:47:15 -07:00
Paul Eggert
24b60b75ea Port standard-test-interval to Los Angeles
* test/lisp/calendar/iso8601-tests.el (standard-test-interval):
Use UTC to avoid DST glitches in the test.
2019-08-01 15:47:15 -07:00
Lars Ingebrigtsen
10dba8a1b8 Document that --eval makes emacsclient ignore -n
* doc/man/emacsclient.1: Mention that -n is ignored if --eval is
given (bug#20524).
2019-08-02 00:15:13 +02:00
Lars Ingebrigtsen
51cf2eb5c9 Document batch-byte-compile directory behavior
* lisp/emacs-lisp/bytecomp.el (batch-byte-compile): Document the
behaviour with directories (bug#20867).
2019-08-01 23:16:37 +02:00
Stefan Monnier
0a7e131ce4 * lisp/gnus/message.el (message-sendmail-f-is-evil): Update :version 2019-08-01 16:55:03 -04:00
Lars Ingebrigtsen
688fec1143 Update URL in comment in gomoku.el
* lisp/play/gomoku.el: Update the URL in the comments (bug#21300).
2019-08-01 21:52:46 +02:00
Lars Ingebrigtsen
fe939b36f9 Fix reference to `tags-loop-continue' in doc string
* lisp/dired-aux.el (dired-do-search): Refer to
`fileloop-continue' instead of the obsolete `tags-loop-continue'
(bug#21475).
2019-08-01 21:21:59 +02:00
Lars Ingebrigtsen
10ffdabc37 Mention `C-h b' in the Keymaps node
* doc/emacs/custom.texi (Keymaps): Mention `C-h b' here (bug#21653).
2019-08-01 20:54:17 +02:00
Daniel Barrett
afeb1e45b2 Add PDF to the DocBook notation class
* etc/schema/dbnotn.rnc: PDF is among the document types accepted
(bug#21882).

Copyright-paperwork-exempt: yes
2019-08-01 19:47:43 +02:00
Lars Ingebrigtsen
5b3b7da168 Say that while returns nil
* src/eval.c (Fwhile): Say that while always returns nil
(bug#22006).
2019-08-01 19:28:43 +02:00
Glenn Morris
e7c1fa96ba * doc/lispref/display.texi (SVG Images): Add menu for subsection.
Again.  This is needed for makeinfo-4.13.
2019-08-01 08:40:28 -07:00
Eli Zaretskii
3134137bdd Fix the ELisp manual part of a recent commit
* doc/lispref/display.texi (SVG Images): Fix markup of "SVG
Path Commands".  It is no longer a @node, but a @subheading.
2019-08-01 17:21:22 +03:00
Basil L. Contovounesios
1aa31b5f89 Fix property stripping in image-file-yank-handler
Fix proposed by Martin Rudalics <rudalics@gmx.at> in:
https://lists.gnu.org/archive/html/emacs-devel/2008-12/msg00945.html
* lisp/image-file.el (image-file-yank-handler): Handle case when
yank-excluded-properties is t.
2019-08-01 17:16:05 +03:00
Basil L. Contovounesios
2267110b6f Fix usage of remove-text-properties
* lisp/allout-widgets.el (allout-decorate-item-icon):
* lisp/emacs-lisp/chart.el (chart-goto-xy):
* lisp/forms.el (forms--make-format)
(forms--make-format-elt-using-text-properties):
* lisp/htmlfontify.el (hfy-unmark-trailing-whitespace):
* lisp/net/newst-plainview.el (newsticker-hide-entry)
(newsticker-show-entry):
* lisp/nxml/nxml-mode.el (nxml-cleanup):
* lisp/obsolete/longlines.el (longlines-unshow-hard-newlines)
(longlines-encode-region):
* lisp/org/ob-exp.el (org-babel-exp-process-buffer):
* lisp/org/org-agenda.el (org-agenda-show-new-time):
* lisp/progmodes/cc-defs.el
(c-clear-char-property-with-value-function)
(c-clear-char-property-with-value-on-char-function):
* lisp/progmodes/ebrowse.el (ebrowse--hide):
* lisp/progmodes/gdb-mi.el (gdb-send):
* lisp/progmodes/idlw-shell.el
(idlwave-retrieve-expression-from-level):
* lisp/progmodes/make-mode.el (makefile-fill-paragraph):
* lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook):
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
* lisp/tmm.el (tmm-remove-inactive-mouse-face):
Always pass an explicit plist to remove-text-properties.

* lisp/dired.el (dired--unhide):
* lisp/facemenu.el (facemenu-add-face):
* lisp/htmlfontify.el (hfy-fontify-buffer):
* lisp/iimage.el (iimage-mode-buffer):
* lisp/image-file.el (image-file-yank-handler):
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
* lisp/textmodes/tex-mode.el (latex-env-before-change):
* test/src/undo-tests.el (undo-test0):
Use remove-list-of-text-properties in place of
remove-text-properties where appropriate.
2019-08-01 17:04:53 +03:00
Glenn Morris
6a77aa4a2c ; Auto-commit of loaddefs files. 2019-08-01 06:26:06 -07:00
Lars Ingebrigtsen
716f8cb1f9 Doc string clarification for defcustom
* lisp/custom.el (defcustom): Mention `custom-declare-variable' in
the doc string(bug#22703).
2019-08-01 14:48:09 +02:00
Lars Ingebrigtsen
75690d7fac Make `C-u RET' in erc use the secondary browser
* lisp/erc/erc-button.el (erc-button-alist): Use the version of
`browse-url' that interprets `C-u RET' as using the secondary browser.
2019-08-01 13:59:01 +02:00
Lars Ingebrigtsen
70a2f2b09a Use decoded-time accessors in vc-cvs
* lisp/vc/vc-cvs.el (vc-cvs-parse-entry): Use decoded-time
accessors for results from `parse-time-string'.
2019-08-01 13:48:29 +02:00
Lars Ingebrigtsen
3001c6eaa8 Use decoded-time accessors in gnus-demon
* lisp/gnus/gnus-demon.el (gnus-demon-time-to-step): Use
decoded-time accessors for results from `parse-time-string'.
2019-08-01 13:48:29 +02:00
Lars Ingebrigtsen
9b49afd287 Use decoded-time accessors in esh-util
* lisp/eshell/esh-util.el (eshell-parse-ange-ls): Use decoded-time
accessors for results from `parse-time-string'.
2019-08-01 13:48:29 +02:00
Lars Ingebrigtsen
5bccff7b5b Remove some compat code in esh-util
* lisp/eshell/esh-util.el (eshell-parse-ange-ls): Remove
older-Emacs compat code.
2019-08-01 13:48:29 +02:00
Basil L. Contovounesios
3c31775527 ; Use more decoded time accessors in time-date.el
These were overlooked in a recent change.
* lisp/calendar/time-date.el (time-date--day-in-year): Use decoded
time accessors.
2019-08-01 14:07:18 +03:00
Martin Rudalics
b22b59c77b Add example for removing scroll bars/fringes from mini windows (Bug#8868)
* doc/lispref/display.texi (Fringe Size/Pos): Mention example
for how to permenantly remove fringes from minibuffer windows.
(Scroll Bars): Add example for how to permanently remove
scroll bars and fringes from minibuffer windows.
2019-08-01 09:56:44 +02:00
Paul Eggert
f8f1c8c33a format-time-string subsumes time-zone-format
* lisp/calendar/time-date.el (time-zone-format):
* test/lisp/calendar/time-date-tests.el (test-time-zone-format):
Remove.
* lisp/gnus/nnrss.el (nnrss-normalize-date):
Use format-time-string instead of time-zone-format.
2019-07-31 19:24:13 -07:00
Lars Ingebrigtsen
5f78e81af0 Revert "Revert "Add support for paths to svg.el""
This reverts commit 0a2461be9e.

Copyright paperwork is now in place, so the patch mistakenly applied
can now be re-applied.
2019-07-31 22:29:29 +02:00
Lars Ingebrigtsen
ee7baca4fa Restore `replace-region-contents' in json-pretty-print
* lisp/json.el (json-pretty-print): Switch back to using
`replace-region-contents' to preserve markers and fonts which went
missing when fixing the bug
(bug#34160).
(json-pretty-print-max-secs): Restore, too.
2019-07-31 22:18:57 +02:00