1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 08:00:48 -08:00
Commit graph

134164 commits

Author SHA1 Message Date
Paul Eggert
da4e5f6685 Simplify use of timestamps
* lisp/calendar/icalendar.el (icalendar--create-uid):
* lisp/gnus/nnmaildir.el (nnmaildir-request-accept-article):
Simplify by using format-time-string.
* lisp/gnus/nnmaildir.el (nnmaildir--scan):
Simplify by using float-time and time-less-p.
2018-09-13 17:32:33 -07:00
Paul Eggert
c44bc4d370 Fix (floor 54043195528445955 3.0) bug
* src/floatfns.c (rounding_driver): Fix rounding error
that can occur when both args have values exactly
representable as integers but at least one arg is a float.
* test/src/floatfns-tests.el (big-round): New test.
2018-09-13 14:29:58 -07:00
Stephen Berman
755fa346eb Fix wdired handling of symlinks when restoring filename property
* lisp/wdired.el (wdired--restore-dired-filename-prop): Use
dired-permission-flags-regexp instead of dired-filename to test
whether the file is a symlink, since calling file-symlink-p on the
latter may fail in wdired-mode (bug#32673).
2018-09-13 22:19:22 +02:00
Stefan Monnier
f066999b65 (viper-read-key, viper-read-key-sequence): Remove
Ever since the time-dependent ESC handling was moved to input-decode-map,
viper-read-key-sequence has been obsolete.  Clean up accordingly.

* lisp/emulation/viper-keym.el: Use lexical-binding.
(viper-overriding-map): Remove.

* lisp/emulation/viper-macs.el: Use lexical-binding and 'read-key'.

* lisp/emulation/viper-util.el: Use lexical-binding.
(viper-read-key, viper-read-key-sequence): Remove.

* lisp/emulation/viper.el (viper-non-hook-settings): Remove obsolete advice.
2018-09-12 21:47:39 -04:00
Katsumi Yamaoka
df3d7e401b No need to run gnus-article-highlight (bug#32706)
* lisp/gnus/deuglify.el (gnus-outlook-display-article-buffer):
No need to run gnus-article-highlight (bug#32706).
2018-09-13 00:02:21 +00:00
Juri Linkov
3b38cb0516 * lisp/vc/vc-git.el (vc-git-grep): Set dir to default-directory
when it's not available (like it's implemented in lgrep/rgrep)
to prevent error in case of `C-u C-u vc-git-grep'.
2018-09-13 01:09:53 +03:00
Juri Linkov
a1b8418f5e * lisp/dired-x.el (dired-jump): Support archive-subfile-mode
exactly like tar-subfile-mode is already supported.
2018-09-13 00:50:22 +03:00
Juri Linkov
78ff92597e * lisp/simple.el (next-error-no-select): Set display-buffer-overriding-action
to display-buffer-reuse-window (bug#32607).
2018-09-13 00:47:03 +03:00
Katsumi Yamaoka
9f58ed1569 Don't highlight article if gnus-visual-p is nil (bug#32706)
* lisp/gnus/deuglify.el (gnus-outlook-display-article-buffer):
Don't highlight article if gnus-visual-p is nil (bug#32706).
2018-09-12 07:21:15 +00:00
Filipp Gunbin
49886b9346 Fix incorrect spelling of dabbrev-ignored-buffer-regexps in docstrings.
* lisp/dabbrev.el (dabbrev-check-all-buffers, dabbrev-expand): Fix docstrings.
2018-09-11 21:45:01 +03:00
Paul Eggert
40a031e177 Minor rounding_driver simplification
* src/floatfns.c (rounding_driver): Omit last arg, which is
now unused.  All callers changed.

Signal overflow-error for bignum overflow
2018-09-11 11:34:44 -07:00
Paul Eggert
038a09041a Fix (round 1e+INF) core dump
* src/bignum.c (double_to_integer): Signal an error
if D cannot be converted, instead of dumping core.
* test/src/floatfns-tests.el (special-round): New test.
2018-09-11 11:34:44 -07:00
Paul Eggert
fa3785ea5f Use overflow-error for bignum overflow
This better corresponds to what emacs-26 did in the
rare cases where it checked for integer overflow.
* src/alloc.c (range_error): Remove.
All uses changed to overflow_error.
* src/eval.c (overflow_error): New function.
2018-09-11 11:34:43 -07:00
Michael Albinus
9429784833 Precise Secret Service API in auth.texi (Bug#29575)
* doc/misc/auth.texi (Secret Service API): Item labels are not
unique.  Document this.  (Bug#29575)
2018-09-11 11:46:32 +02:00
Paul Eggert
ef93983344 Adjust to TIMESPEC_HZ renaming
Adjust to lib/timespec.h’s renaming of TIMESPEC_RESOLUTION and
LOG10_TIMESPEC_RESOLUTION to TIMESPEC_HZ and
LOG10_TIMESPEC_HZ.  The old names were misnomers.
All uses changed.
2018-09-10 21:22:54 -07:00
Paul Eggert
fc389d3a83 Update from Gnulib
This incorporates:
2018-09-10 timespec: fix resolution confusion
2018-09-09 mktime: simplify in prep for glibc merge
2018-09-07 intprops: minor clarification of code
2018-09-06 stddef: Override max_align_t on NetBSD 8.0/x86
2018-09-06 fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku
2018-09-06 strtoll, strtoull: Rely on limits-h module
2018-09-06 limits-h: Provide numerical limits macros
2018-09-06 fcntl: Don't access nonexistent optional argument
2018-09-02 mktime: fix unlikely race+overflow bug
2018-08-31 mktime, timegm: simplify glibc time64_t
2018-08-31 mktime, timegm: simplify merge to glibc
* build-aux/config.guess, build-aux/config.sub:
* lib/dtotimespec.c, lib/fcntl.c, lib/intprops.h:
* lib/limits.in.h, lib/mktime-internal.h, lib/mktime.c:
* lib/stat-time.h, lib/strtol.c, lib/timegm.c:
* lib/timespec-add.c, lib/timespec-sub.c, lib/timespec.h:
* lib/utimens.c, m4/limits-h.m4, m4/stddef_h.m4:
Copy from Gnulib.
2018-09-10 21:22:54 -07:00
Glenn Morris
0407733ef3 Merge from origin/emacs-26
7efcdf7 (origin/emacs-26) Clarify completion text in the ELisp manual
30b0b0e Fix handling of abbreviated control command in gdb-mi.el
5cf282d Clarify documentation of functions reading character events
96281c5 Record :version for built-in variables while dumping
82160cf * src/process.c (connect_network_socket): Fix memory leak.  (...
6c616e4 * Makefile.in (appdatadir): Use the non-obsolete location "me...
9618e16 Better fix for bug#32550
30d94e4 Fix Bug#32550
57bcdc7 Don't call XGetGeometry for frames without outer X window (Bu...
82fc6b6 * lisp/calculator.el: Fix doc typo.
ddc7c64 Standardize calc bug reporting instructions

Conflicts:
	lisp/cus-start.el
2018-09-10 13:12:38 -07:00
Glenn Morris
6e050694f2 ; Merge from origin/emacs-26
The following commit was skipped:

f9efbb5 ; Auto-commit of loaddefs files.
2018-09-10 13:08:50 -07:00
Glenn Morris
3807f3185b * lisp/thread.el: Remove more useless runtime requires. 2018-09-10 15:01:07 -04:00
Glenn Morris
9e297f35a0 Remove useless requires of subr-x at runtime
* lisp/thread.el, lisp/net/nsm.el, lisp/erc/erc.el:
Don't require subr-x at runtime.
2018-09-10 14:55:14 -04:00
Karl Fogel
ea9982d262 Fix build error: use string :version in defcustom
* lisp/textmodes/flyspell.el (flyspell-case-fold-duplications): Use a
  string value for the :version keyword to `defcustom'.  Otherwise,
  building Emacs will fail with an error like this:

    Scanning ./textmodes for custom
    Scanning ./url for custom
    Scanning ./vc for custom
    Generating ./cus-load.el...
    Version must be a string
    make[2]: *** [Makefile:152: cus-load.el] Error 255

This follows up to Reuben Thomas's commit 61f3a4b4fc of 10 Sep 2018.
2018-09-10 12:17:06 -05:00
Paul Eggert
10a4509698 Fix misleading name ‘double_to_bignum’
* src/bignum.c (double_to_integer): Rename from double_to_bignum,
since the result is not necessarily a bignum.  All uses changed.
2018-09-10 09:04:25 -07:00
Paul Eggert
fe859a0787 * src/charset.c (Fencode_char): Tweak comment. 2018-09-10 08:49:27 -07:00
Reuben Thomas
61f3a4b4fc Add flyspell option to ignore duplicates of different case
* lisp/textmodes/flyspell.el (flyspell-case-fold-duplications): Add
  option.
2018-09-10 15:06:02 +01:00
Eli Zaretskii
7efcdf7b3e Clarify completion text in the ELisp manual
* doc/lispref/minibuf.texi (Programmed Completion): Clarify
text.  Suggested by Stefan Monnier <monnier@iro.umontreal.ca>.
2018-09-10 16:20:42 +03:00
Eli Zaretskii
30b0b0e2e2 Fix handling of abbreviated control command in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-control-commands-regexp):
Support unambiguous abbreviations of commands.  (Bug#32576)
2018-09-10 16:11:05 +03:00
Eli Zaretskii
80ca2b8109 Avoid compiler warnings due to get_proc_addr
* src/w32common.h (get_proc_addr): Add prototype, to shut up
GCC compilation warning.  Reported by Martin Rudalics
<rudalics@gmx.at>.
2018-09-10 15:44:48 +03:00
Stefan Monnier
a65fe6fbf6 * src/charset.c (Fencode_char): Explain when/why bignums are used 2018-09-10 08:11:26 -04:00
Martin Rudalics
80a35ff277 Fix last change of 'run_window_size_change_functions'
* src/window.c (run_window_size_change_functions): Fix two
type mixups in last change.  Reported by Michael Albinus
<michael.albinus@gmx.de> on emacs-devel.
2018-09-10 14:07:05 +02:00
Eli Zaretskii
5cf282d65f Clarify documentation of functions reading character events
* doc/lispref/help.texi (Describing Characters):
* doc/lispref/commands.texi (Keyboard Events)
(Reading One Event, Classifying Events): Make the distinction
between characters and character events more explicit.

* src/keymap.c (Ftext_char_description)
(Fsingle_key_description):
* src/lread.c (Fread_char, Fread_char_exclusive): Doc fixes,
to make a clear distinction between a character input event
and a character code.  (Bug#32562)
2018-09-10 12:46:22 +03:00
Martin Rudalics
6a00f2babf Handle buffer-local 'window-size-change-functions' specially (Bug#32637)
* src/window.c (run_window_size_change_functions): Run a
buffer-local value once per each frame and only if at least
one window showing the buffer on that frame has changed its
size.  (Bug#32637)
* doc/lispref/windows.texi (Window Hooks): Describe new
behavior of buffer-local 'window-size-change-functions'.
2018-09-10 10:05:20 +02:00
Gemini Lasswell
a704bad5e6 Merge branch 'scratch/list-threads' 2018-09-09 08:19:54 -07:00
Gemini Lasswell
b7719f0cde Use thread-live-p instead of obsolete thread-alive-p
* lisp/thread.el (thread-list--get-status)
(thread-list--send-signal, thread-list-pop-to-backtrace)
(thread-list-backtrace--revert-hook-function)
(thread-list-backtrace--insert-header): Use thread-live-p instead of
thread-alive-p.
2018-09-09 07:41:50 -07:00
Gemini Lasswell
8adc0e518f Improve documentation of thread list buffer
* doc/lispref/threads.texi (The Thread List): Cross-reference
'Basic Thread Functions'.  Use defvar for thread-list-refresh-seconds.
Improve descriptions of the backtrace and signal commands.
2018-09-09 07:41:50 -07:00
Gemini Lasswell
2f5a65a769 Add tests for list-threads and the *Threads* buffer
* test/lisp/thread-tests.el: New file.
2018-09-09 07:41:50 -07:00
Gemini Lasswell
703b1cf9e2 Add check in list-threads for --without-threads configuration
* lisp/thread.el (list-threads): Signal an error if the Emacs configuration
doesn't have threads.
2018-09-09 07:41:50 -07:00
Gemini Lasswell
e19ca77534 Document list-threads and its buffer
* doc/lispref/threads.texi (Threads): Add menu item.
(The Thread List): New node.
* doc/lispref/elisp.texi (Top): Add menu item.
2018-09-09 07:41:49 -07:00
Gemini Lasswell
3fb8f30647 Show backtraces of threads from thread list buffer
* src/eval.c (backtrace_thread_p, backtrace_thread_top)
(backtrace_thread_next, Fbacktrace_frames_from_thread): New functions.
* lisp/thread.el (thread-list-mode-map): Add keybinding and
menu item for 'thread-list-pop-to-backtrace'.
(thread-list-mode): Make "Thread Name" column wide enough
for the result of printing a thread with no name with 'prin1'.
(thread-list--get-entries): Use 'thread-list--name'.
(thread-list--send-signal): Remove unnecessary calls to 'threadp'.
(thread-list-backtrace--thread): New variable.
(thread-list-pop-to-backtrace): New command.
(thread-list-backtrace--revert-hook-function)
(thread-list--make-backtrace-frame)
(thread-list-backtrace--insert-header, thread-list--name): New
functions.
2018-09-09 07:41:49 -07:00
Gemini Lasswell
dc5c76c374 Make small fixes to Edebug and debugger documentation
* doc/lispref/elisp.texi (Top): Update menu.
* doc/lispref/edebug.texi (Edebug Misc): Index
edebug-backtrace-show-instrumentation and
edebug-backtrace-hide-instrumentation.
2018-09-09 07:41:49 -07:00
Gemini Lasswell
bdba72b671 Make list-threads refresh the *Threads* buffer if it already exists
* lisp/thread.el (list-threads): Call revert-buffer instead of waiting
for the timer function to do it.
2018-09-09 07:41:49 -07:00
Gemini Lasswell
ea1ec0ed2e Improve docstrings of thread-list functions
* lisp/thread.el (thread-list--timer-func): Change
argument from 'buf' to 'buffer'.
(thread-list--get-entries, thread-list--get-status): Improve
docstring.
(thread-list--send-signal): Change argument from 'sgnl' to
'signal'.  Tell the user when the thread is no longer alive.
2018-09-09 07:41:49 -07:00
Gemini Lasswell
3ca82c59de Make lisp/thread.el the new home for thread-related Lisp functions
* lisp/emacs-lisp/thread-list.el: Remove.
* lisp/emacs-lisp/thread.el: Remove.
* lisp/thread.el: New file.
2018-09-09 07:41:49 -07:00
Gemini Lasswell
a133b1f7d6 Add list-threads command and thread-list-mode
* lisp/emacs-lisp/thread-list.el: New file.
2018-09-09 07:41:49 -07:00
Eli Zaretskii
e489685617 Fix documentation for conversion to bignums
* src/xselect.c (selection_data_to_lisp_data):
* src/w32fns.c (Fw32_read_registry):
* src/process.c (Fprocess_id):
* src/font.c (Ffont_variation_glyphs, Finternal_char_font):
* src/fns.c (Fsafe_length):
* src/editfns.c (Fuser_uid, Fuser_real_uid, Fgroup_gid)
(Fgroup_real_gid, Femacs_pid):
* src/dired.c (Ffile_attributes):
* src/charset.c (Fencode_char): Update commentary and doc
strings for recent changes that produce bignums where
previously cons cells of integers were produced.
2018-09-08 12:20:55 +03:00
Paul Eggert
f9a72b83ab * src/puresize.h (BASE_PURESIZE): Bump to 2000000.
Needed on Fedora 28 x86.
2018-09-07 11:17:03 -07:00
Paul Eggert
28da6accb0 One more GC-aligned struct
* src/lisp.h (struct Lisp_Sub_Char_Table):
Mark this with GCALIGNED_STRUCT, too.
2018-09-07 09:50:31 -07:00
Paul Eggert
cab3ca9d3d Fix overenthusiastic header size check
Problem reported by Eli Zaretskii in:
https://lists.gnu.org/r/emacs-devel/2018-09/msg00222.html
* doc/lispref/internals.texi (Garbage Collection):
Document vector sizes and slot counts more accurately.
* src/lisp.h: Omit header_size sanity check that was too picky.
Add some less-picky checks.
2018-09-07 09:20:13 -07:00
Eli Zaretskii
752a05b17d Read Windows OS info for report-emacs-bug from Registry
* lisp/w32-fns.el (w32--os-description): New function.
* lisp/mail/emacsbug.el (report-emacs-bug--os-description):
Use 'w32--os-description' instead of launching the
'systeminfo' program, which can be very slow, and is also
missing on versions of Windows before XP Professional.
2018-09-07 17:41:21 +03:00
Eli Zaretskii
96281c5ee1 Record :version for built-in variables while dumping
* lisp/cus-start.el (standard): Record the ':version; of the
symbols when dumping, so that 'describe-variable' could tell
which built-in variables were added/changed in recent
versions.
2018-09-07 10:35:59 +03:00
Paul Eggert
2c8520e19c Shrink pseudovectors a bit
sizeof (struct Lisp_Marker) was 32 on x86, where 24 would do.
Problem noted by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-09/msg00165.html
* src/bignum.h (struct Lisp_Bignum):
* src/frame.h (struct frame):
* src/lisp.h (struct Lisp_Vector, struct Lisp_Bool_Vector)
(struct Lisp_Char_Table, struct Lisp_Hash_Table)
(struct Lisp_Marker, struct Lisp_Overlay)
(struct Lisp_Misc_Ptr, struct Lisp_User_Ptr)
(struct Lisp_Finalizer, struct Lisp_Float)
(struct Lisp_Module_Function):
* src/process.h (struct Lisp_Process):
* src/termhooks.h (struct terminal):
* src/thread.h (struct thread_state, struct Lisp_Mutex)
(struct Lisp_CondVar):
* src/window.c (struct save_window_data):
* src/window.h (struct window):
* src/xterm.h (struct scroll_bar):
* src/xwidget.h (struct xwidget, struct xwidget_view):
Add GCALIGNED_STRUCT attribute.
* src/lisp.h (GCALIGNED_UNION_MEMBER): Renamed from GCALIGNED_UNION.
All uses changed.
(GCALIGNED_STRUCT_MEMBER, GCALIGNED_STRUCT, GCALIGNED): New macros.
All uses of open-coded GCALIGNED changed to use GCALIGNED.
(union vectorlike_header): No longer GC-aligned.
(PSEUDOVECSIZE): Yield 0 for pseudovectors without Lisp
objects that place a member before where the first Lisp object
member would be.
2018-09-06 23:56:13 -07:00