1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
Commit graph

137935 commits

Author SHA1 Message Date
Lars Ingebrigtsen
9fa60c19d0 Add some function index entries for ido.texi
* doc/misc/ido.texi: Add index entries for functions (bug#18691).
2019-08-03 19:19:17 +02:00
Andreas Politz
95d2250bcf Tweak tq queue processing
* lisp/emacs-lisp/tq.el (tq-process-buffer): Pop the queue before
calling the function because the function may add new entries to
the queue (bug#19016).  Also report errors.
2019-08-03 16:33:06 +02:00
Lars Ingebrigtsen
d70bf3a126 Tweak tango-dark-theme hightlight face
* etc/themes/tango-dark-theme.el (class): Make highlight a bit
less yellow to make the cursor visible on it (bug#19189).
2019-08-03 16:10:31 +02:00
Lars Ingebrigtsen
18e163fd34 Fix error message in replace-match for subexpressions
* src/search.c (Freplace_match): Output a more understandable
error message when replacing a subexpression (bug#19208).
2019-08-03 16:00:20 +02:00
Lars Ingebrigtsen
f77a395146 Clarify Freplace_match logic
* src/search.c (Freplace_match): Add some doc strings to clarify
the logic and do a minor clean up (bug#19208).
2019-08-03 15:29:04 +02:00
Lars Ingebrigtsen
6c7ab768ee Don't refer to non-existent functions in mode line examples
* doc/lispintro/emacs-lisp-intro.texi (Mode Line): Ditto.

* doc/lispref/modes.texi (Mode Line Top): In the :eval example,
use a function that exists to avoid confusion (bug#19224).
2019-08-03 14:59:53 +02:00
Lars Ingebrigtsen
8edd4bc22a Fix previous macroexp-progn doc string fix
* lisp/emacs-lisp/macroexp.el (macroexp-progn): Fix previous doc
string clarification.
2019-08-03 13:48:31 +02:00
Eli Zaretskii
3bff466aa6 ; * etc/NEWS: Fix a typo. (Bug#36829) 2019-08-03 14:15:16 +03:00
Eli Zaretskii
5ae1191e5b Minor doc fix in etags.el
* lisp/progmodes/etags.el
(etags-xref-find-definitions-tag-order): Doc fix.  (Bug#32510)
2019-08-03 12:59:18 +03:00
Eli Zaretskii
faafd467a3 Improve documentation of debugging Lisp syntax error
* doc/lispref/debugging.texi (Syntax Errors, Excess Open)
(Excess Close): Name the commands invoked by the key
sequences.  Add cross-references to appropriate sections of
the Emacs manual.  (Bug#21385)
2019-08-03 12:41:35 +03:00
Eli Zaretskii
49a5b573b2 Improve documentation of 'display-buffer-*' functions
* lisp/window.el (display-buffer-in-atom-window)
(display-buffer-in-side-window, display-buffer-same-window)
(display-buffer--maybe-same-window)
(display-buffer-reuse-window)
(display-buffer-reuse-mode-window)
(display-buffer-pop-up-frame, display-buffer-pop-up-window)
(display-buffer--maybe-pop-up-frame-or-window)
(display-buffer--maybe-pop-up-frame)
(display-buffer-in-child-frame, display-buffer-in-direction)
(display-buffer-below-selected, display-buffer-at-bottom)
(display-buffer-in-previous-window)
(display-buffer-use-some-window, display-buffer-no-window):
More details about the ALIST argument in the doc string.  (Bug#19461)
2019-08-03 12:15:03 +03:00
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