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
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
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
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
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
Lars Ingebrigtsen
c8f1e17e6b
Rewrite `url-dav-process-date-property' to use parse-time
...
* lisp/url/url-dav.el (url-dav-iso8601-regexp): Remove.
(url-dav-process-date-property): Rewrite to use
`parse-iso8601-time-string'.
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
1ab6445bb3
Fix time zone in previous rewrite of newsticker--decode-iso8601-date
...
* lisp/net/newst-backend.el (newsticker--decode-iso8601-date):
According to the tests, this function should default to the Z time
zone.
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
296002ba5a
Rewrite parse-iso8601-time-string' to use
iso8601-parse'
...
* lisp/calendar/parse-time.el (parse-iso8601-time-string): Use
`iso8601-parse'.
(parse-time-iso8601-regexp): Remove.
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
fa648a59c9
Allow timezone defaults in decoded-time-set-defaults
...
* lisp/calendar/time-date.el (decoded-time-set-defaults): Allow
passing in a default time zone, as this seems to be something
callers seem to do.
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
4dcb692de0
Default DST to "undecided" in decoded-time-set-defaults
...
* lisp/calendar/time-date.el (decoded-time-set-defaults): When we
don't have a zone or a DST, set DST to "undecided".
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
e82ae1db3c
decoded-time-dst doc fix
...
* lisp/simple.el (decoded-time): Doc fix for dst (note -1 value).
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
6a87416d61
Use iso8601-parse in nnrss
...
* lisp/gnus/nnrss.el (nnrss-normalize-date): Use iso8601-parse
instead of hand-rolled parser.
* test/lisp/gnus/nnrss-tests.el: New file.
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
14c0a63e79
Make time-zone-format take a SHORT parameter
...
* lisp/calendar/time-date.el (time-zone-format): Accept an
optional SHORT parameter.
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
46df7bbe12
Add new function time-zone-format
...
* lisp/calendar/time-date.el (time-zone-format): New function.
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
07ce3be6aa
`decoded-time-set-defaults' refactored out from iso8601 code
...
* lisp/calendar/iso8601.el (iso8601--encode-time):
* lisp/calendar/time-date.el (decoded-time-set-defaults):
Refactor out from `iso8601--encode-time', because it's helpful
in other contexts.
2019-07-31 21:47:29 +02:00
Lars Ingebrigtsen
8c04e65622
Have newsticker use iso8601 to parse dates
...
* lisp/net/newst-backend.el (newsticker--decode-iso8601-date): Use
iso8601 to parse.
2019-07-31 21:47:29 +02:00
Michael Albinus
6da19c5244
Distinguish different file notification events
...
* lisp/filenotify.el (file-notify--watch): Add docstring.
(file-notify-descriptors, file-notify--rm-descriptor)
(file-notify--pending-rename): Adapt docstring.
(file-notify): New defstruct.
(file-notify-handle-event): Rename argument to OBJECT. Use
accessor functions of the defstruct.
2019-07-31 21:22:05 +02:00
Michael Albinus
c306848c0f
Fix an error in tramp-sh-inotifywait-process-filter
...
* lisp/net/tramp-sh.el (tramp-sh-inotifywait-process-filter):
Add default FILE to returned event, if inotifywait doesn't tell us.
2019-07-31 14:54:08 +02:00
Glenn Morris
1ac0cfa264
Merge from origin/emacs-26
...
8fbe462
(origin/emacs-26) ; * doc/lispref/positions.texi (List Motion...
1d9efc0
Add index for "\( in strings" (Bug#25195)
304e96f
Fix doc-string of 'fit-window-to-buffer' (Bug#36848)
d4c4987
Update view-mode docstring
d6ca1fc
; * lisp/term.el: Add missing / to esc seq commentary.
b3e2073
Fix subproc listening when setting filter to non-t (Bug#36591)
f671950
* etc/NEWS.25: Belatedly announce rcirc-reconnect-delay.
7f42277
Mention term.el's \032 dir tracking in commentary (Bug#19524)
16a529e
Remove upload functionality of package-x from the elisp manual
78e6c2a
* etc/AUTHORS: Update.
086a56e
Clarify Gravatar docs
0592467
* doc/lispref/display.texi (Defining Faces): Say a face can't...
# Conflicts:
# doc/emacs/programs.texi
# etc/AUTHORS
# lisp/term.el
2019-07-30 21:42:34 -07:00
Noam Postavsky
77fb84e6db
* lisp/emacs-lisp/let-alist.el: Bump version to 1.0.6 (Bug#23244).
2019-07-30 21:13:36 -04:00
Stefan Monnier
3a59cc8406
* lisp/gnus/message.el: Reduce redundancy with send-mail-function
...
(message-send-mail-function) <function>: Remove `local-library` tests
for libs distributed with Emacs.
(message-use-send-mail-function): New function.
(message-default-send-mail-function): Default to it, and remove cases
already handled by it.
(message--default-send-mail-function): New function.
(message-send-mail-function) <variable>: Use it as new default.
(message-sendmail-f-is-evil): Obey mail-specify-envelope-from if available.
(message-check, message-with-reply-buffer): Use `declare`.
(message-smtpmail-send-it): smtpmail accepts mail-header-separator,
so simplify and declare obsolete.
(message-send-mail-with-mailclient): Declare obsolete.
(message-check-news-body-syntax): Don't presume that the checksum is
a fixnum.
2019-07-30 16:37:01 -04:00
Juri Linkov
add146f09f
* lisp/bindings.el (mode-line-defining-kbd-macro): New defvar.
...
(minor-mode-alist): Use it for `defining-kbd-macro'. (Bug#36564)
2019-07-30 23:35:42 +03:00
Stefan Monnier
f7cf9199ab
* lisp/mail/sendmail.el (sendmail-send-it): Add FIXMEs.
...
Remove redundant :groups in the file, as well.
2019-07-30 16:14:10 -04:00
Stephen Leake
0173962570
Merge commit '9b480db6732c6d2e886838f112d9bd46fc8989bf'
2019-07-30 11:03:15 -07:00
Stephen Leake
056cbcb7a9
Improve doc strings for some -search-path variables
...
* lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-search-path):
Improve doc string.
* lisp/progmodes/compile.el (compilation-search-path): Improve doc
string.
* lisp/progmodes/grep.el (grep-search-path): Improve doc string.
2019-07-30 11:02:03 -07:00
Lars Ingebrigtsen
9b480db673
Make `C-u RET' on URLs in Gnus buffers use the secondary browser
...
* lisp/gnus/gnus-art.el (gnus-button-alist): Make `C-u RET' on
URLs use the secondary browse-url browser.
2019-07-30 16:07:44 +02:00
Lars Ingebrigtsen
08953259b9
Tweak `browse-url-add-buttons' for better button.el comp
...
* lisp/net/browse-url.el (browse-url-add-buttons): Make browse-url
buttons be understood by `forward-button' and the like.
2019-07-30 16:07:44 +02:00
Lars Ingebrigtsen
8bd6245e56
Add a new conveniency function to browse-url
...
* lisp/net/browse-url.el (browse-url-button-open-url): Add a new
conveniency function.
2019-07-30 16:07:44 +02:00
Dmitry Gutov
0b79445f55
Support filename matches in etags xref backend
...
* lisp/progmodes/etags.el (etags--xref-find-definitions):
Support filename matches (bug#32510).
2019-07-30 16:59:59 +03:00
Lars Ingebrigtsen
f90ef53aa0
Convert Emacs article buffers from widget.el to button.el
...
* lisp/gnus/gnus-art.el (gnus-mime-button-map)
(gnus-url-button-commands, gnus-insert-mime-button)
(gnus-mime-display-alternative)
(gnus-article-extend-url-button, gnus-article-add-button)
(gnus-insert-prev-page-button, gnus-insert-next-page-button)
(gnus-mime-security-button-map)
(gnus-insert-mime-security-button): Ditto.
* lisp/gnus/gnus-html.el (gnus-html-displayed-image-map)
(gnus-html-wash-images, gnus-html-put-image): Ditto.
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-insert-button): Ditto.
* lisp/gnus/gnus-sum.el (gnus-summary-widget-forward)
(gnus-summary-button-forward, gnus-summary-widget-backward)
(gnus-summary-button-backward, gnus-collect-urls-primary-text)
(gnus-collect-urls, gnus-summary-browse-url): Stop using widgets
and star using button.el buttons instead.
* lisp/gnus/mm-decode.el (mm-shr, mm-handle-filename): Don't
convert shr buttons into widgets.
2019-07-30 15:24:55 +02:00
Lars Ingebrigtsen
e619a6b338
Mark shr buttons as button.el buffers
...
* lisp/net/shr.el (shr-urlify): Mark buttons as button.el buffers
for easier reuse in buttonified buffers.
2019-07-30 15:23:22 +02:00
Lars Ingebrigtsen
b75fb81e36
Extend button.el to take callback data
...
* doc/lispref/display.texi (Button Buffer Commands)
(Button Buffer Commands): Document this.
* lisp/button.el (backward-button, forward-button): Accept a
NO-ERROR parameter.
(button-activate): Make it possible to have specific data in the
callback action.
2019-07-30 15:21:29 +02:00
Lars Ingebrigtsen
99156a03bf
Re-fix dired-pop-to-buffer obsoletion reference
...
* lisp/dired.el (dired-pop-to-buffer): Re-fix obsoletion reference
(bug#26243).
2019-07-30 13:34:59 +02:00
Lars Ingebrigtsen
25cf501c1f
Revert "Make `ispell-change-dictionary' only list installed dictionaries"
...
This reverts commit 848712b481
.
There could be dictionaries available (set via command-line options for the
speller, for instance) that would not be returned.
2019-07-30 13:18:36 +02:00
Lars Ingebrigtsen
74c5d688bb
Use decoded time accessors in ediff-mult
...
* lisp/vc/ediff-mult.el (ediff-format-date): Use decoded time
accessors.
2019-07-30 13:11:38 +02:00
Lars Ingebrigtsen
4134e6f87c
Use decoded time accessors in pop3
...
* lisp/net/pop3.el (pop3-make-date): Use decoded time
accessors.
2019-07-30 13:11:14 +02:00