1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-08 15:35:02 +00:00
Commit Graph

137858 Commits

Author SHA1 Message Date
Stefan Monnier
06726f6653 * src/lread.c (close_infile_unwind): Remove leftover debug code 2019-07-31 11:48:43 -04:00
Stefan Monnier
bedcc2d87b * src/lread.c (infile): Set/reset it like a dynamically scoped variable
I've seen segfaults where `infile` is nil when we get to
readbyte_from_file, presumably because Fload set it to NULL (via
close_infile_unwind) just before returning to its caller which was
probably itself within another read/load and for some reason
readevalloop didn't get to re-set `infile` like it used to do at every
iteration.  I was not able to really track down the bug, but the way
`infile` was set/reset seemed fragile and managing it like a standard
dynamically-scoped var seems both safer (and more efficient since we
don't need readevalloop to constantly re-set it).

(readchar): Assert that `infile` is set if using a function the depends on it.
(readbyte_from_file): Assert that `infile` is set.
(close_infile_unwind): Reset `infile` to its previous value rather than
to NULL.
(Fload): Remember the previous value of `infile` before chaning it.
(readevalloop): Don't set `infile` any more.
2019-07-31 11:19:39 -04:00
Paul Eggert
495d0667fc Clarify (lognot bignum)
* doc/lispref/numbers.texi (Bitwise Operations):
Say that (= (lognot n) (- -1 n)).
2019-07-31 07:00:12 -07: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
Noam Postavsky
0aa4bfaab8 Remove no-longer relevant xref
* doc/lispref/positions.texi (List Motion): Remove xref, the text it
references was removed in 2018-02-15 "Document
open-paren-in-column-0-is-defun-start being of less importance".
2019-07-31 08:33:28 -04: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
Eli Zaretskii
8fbe46252f ; * doc/lispref/positions.texi (List Motion): Fix last change. 2019-07-30 17:50:32 +03: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
Dmitry Gutov
4fe88791df ; Re-enable all Flymake tests on Hydra
To see if the recent improvements fixed something
2019-07-30 16:59:59 +03:00
Dmitry Gutov
56db1e84a0 Guard against flymake-no-changes-timeout being nil
* test/lisp/progmodes/flymake-tests.el
(flymake-tests--wait-for-backends): Guard against
flymake-no-changes-timeout being nil (in personal configurations)
to help when running tests interactively.
2019-07-30 16:59:59 +03:00
Lars Ingebrigtsen
075a3e0570 Call out the Gnus widget->button makeover in NEWS 2019-07-30 15:36:03 +02: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
4121b2ee55 Convert ` to ' in two recent NEWS entries 2019-07-30 15:22:01 +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
Noam Postavsky
1d9efc0b3a Add index for "\( in strings" (Bug#25195)
* doc/emacs/programs.texi (Left Margin Paren): Add index for "\( in
strings".
* doc/lispref/positions.texi (List Motion): Add index, and cross
reference.
2019-07-30 09:06:18 -04: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
Lars Ingebrigtsen
2b5fe44faa Use decoded time accessors in esh-util
* lisp/eshell/esh-util.el (eshell-parse-ange-ls): Use decoded time
accessors.
2019-07-30 13:10:42 +02:00
Lars Ingebrigtsen
bddd4d382a Use decoded time accessors in in em-ls
* lisp/eshell/em-ls.el (eshell-ls-file): Use decoded time
accessors.
2019-07-30 13:10:03 +02:00
Lars Ingebrigtsen
66a74f8415 Use decoded time accessors in timer
* lisp/emacs-lisp/timer.el (run-at-time): Use decoded time
accessors.
2019-07-30 13:08:49 +02:00
Lars Ingebrigtsen
c859bc07c9 Use decoded time accessors in timeclock
* lisp/calendar/timeclock.el (timeclock-day-base): Use decoded time
accessors.
2019-07-30 13:08:21 +02:00
Lars Ingebrigtsen
e9e1b0af35 Use decoded time accessors in time-date
* lisp/calendar/time-date.el (time-to-days): Use decoded time
accessors.
2019-07-30 13:07:49 +02:00
Lars Ingebrigtsen
e3bbd665a9 Use decoded time accessors in appt
* lisp/calendar/appt.el (appt-check, appt-make-list): Use decoded
time accessors.
2019-07-30 13:07:17 +02:00
Lars Ingebrigtsen
bd3bc1c924 Fix syntax error in previus calc-forms change
* lisp/calc/calc-forms.el (calc-time): Fix previous decoded time
change.
2019-07-30 13:06:35 +02:00
Lars Ingebrigtsen
9f14c9ad34 Use decoded time accessors in calendar
* lisp/calendar/icalendar.el (icalendar--add-decoded-times)
(icalendar--convert-sexp-to-ical):
* lisp/calendar/calendar.el (calendar-current-date):
* lisp/calendar/cal-dst.el (calendar-dst-find-data)
(calendar-dst-find-startend): Use decoded time accessors.
2019-07-30 13:06:06 +02:00
Lars Ingebrigtsen
bd26eff547 Use decoded time accessors in Gnus
* lisp/gnus/nnimap.el (nnimap-find-expired-articles):
* lisp/gnus/nndiary.el (nndiary-compute-reminders)
(nndiary-last-occurrence, nndiary-next-occurrence):
* lisp/gnus/message.el (message-make-expires-date):
* lisp/gnus/gnus-util.el (gnus-seconds-today)
(gnus-seconds-month, gnus-seconds-year):
* lisp/gnus/gnus-demon.el (gnus-demon-time-to-step):
* lisp/gnus/gnus-art.el (article-make-date-line): Use decoded time
accessors.
2019-07-30 13:05:17 +02:00
Lars Ingebrigtsen
608832acc3 Use decoded time accessors in calc
* lisp/calc/calc-forms.el (calc-time, math-this-year)
(calcFunc-now): Use decoded time accessors.
2019-07-30 13:03:22 +02:00
Lars Ingebrigtsen
3c4eb0d190 Use decoded time accessors in proced
* lisp/proced.el (proced-format-start): Use decoded time accessors.
2019-07-30 13:02:41 +02:00
Lars Ingebrigtsen
8a30f0414e Make description of text properties on the form `(string ...)' work
* lisp/descr-text.el (describe-property-list): Don't special-case
for symbols that have widget properties here (bug#22957).  It's
not documented that this function should do that, and looking at
the code, it doesn't seem like this function is actually used for
doing that, either.  This makes describing some text properties
that are on the form `(string ...)' work.
2019-07-30 12:09:12 +02:00
Lars Ingebrigtsen
26381d56e2 Use the elisp xref backend in profiler buffers
* lisp/profiler.el (profiler--xref-backend): New function (bug#23455).
(profiler-report-mode): Use it to use the elisp xref handler when
hitting `M-.' in profiler buffers.
2019-07-30 12:04:21 +02:00
Lars Ingebrigtsen
e18a4a08e4 Adjust time-date tests to tweaked format 2019-07-30 11:56:03 +02:00
Martin Rudalics
304e96f50d Fix doc-string of 'fit-window-to-buffer' (Bug#36848)
* lisp/window.el (fit-window-to-buffer): Fix doc-string.

Suggested by Drew Adams <drew.adams@oracle.com>
2019-07-30 09:23:22 +02:00
Juri Linkov
28d1023bbe Highlight keyboard macro recording mode with read color in the mode-line
* lisp/bindings.el (minor-mode-alist): Propertize " Def"
with 'error' face for defining-kbd-macro.  (Bug#36564)
2019-07-30 01:46:15 +03:00
Stefan Monnier
77acef90cc * lisp/progmodes/vhdl-mode.el: Use cl-lib when available
(vhdl--pushnew): New macro.  Use it instead of `pushnew`.
(emacs-major-version): Don't bother checking (featurep 'xemacs)
since that is always (< emacs-major-version 25) as well.
2019-07-29 14:59:26 -04:00
Juri Linkov
199a1b5cd4 * lisp/info.el (Info-toc-insert): Suppress same section names as node names.
Add indentation to section lines.  (Bug#23142)
2019-07-29 21:18:34 +03:00
Stefan Monnier
5483e44730 * lisp/simple.el (decoded-time): Use cl-defstruct 2019-07-29 11:57:49 -04:00
Stefan Monnier
75361be63f * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add slot option :documentation
Use it to improve the docstring of the accessor functions.

* doc/misc/cl.texi: Rename menu entry to "CL-Lib".
(Structures): Add ':documentation' and mention ':type' as well,
which we don't completely ignore any more.
2019-07-29 11:56:11 -04:00
Lars Ingebrigtsen
b47ca8125b Tweak how mm-display-external handles windows
* lisp/gnus/mm-decode.el (mm-display-external): Don't delete other
buffers when displaying parts (bug#22861) because that should be
up to the user, probably.
2019-07-29 15:45:48 +02:00