1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00
Commit Graph

133928 Commits

Author SHA1 Message Date
Paul Eggert
d3ec5117da Pacify Oracle Studio 12.6
* src/xfns.c (Fx_frame_restack):
* src/xterm.c (x_io_error_quitter): Omit unreachable code.
2018-08-11 16:32:52 -07:00
Paul Eggert
da7fc851dc Reject old libgmp that lack mpz_roinit_n
* configure.ac (HAVE_GMP): Port to RHEL 6.9, which has
libgmp 3.5, which predates mpz_roinit_n.
2018-08-11 16:28:19 -07:00
Glenn Morris
d0d7bd6816 ; * test/lisp/international/ccl-tests.el: Add license notice. 2018-08-11 14:44:49 -07:00
Tom Tromey
78ec68e18f Merge branch 'feature/bignum' 2018-08-11 13:34:17 -06:00
Michael Albinus
ba1c4f63e3 Fix Bug#32226, hopefully
* test/lisp/shadowfile-tests.el: Set Tramp variables for hydra.
2018-08-11 20:30:39 +02:00
João Távora
bf1298c7d8 Fix blunder in last commit for lisp/jsonrpc.el
* lisp/jsonrpc.el (jsonrpc-shutdown): Use jsonrpc--process.
2018-08-11 17:08:13 +01:00
João Távora
2304bc9b97 Add option to cleanup buffers to jsonrpc-shutdown
* lisp/jsonrpc.el (Version): Bump to 1.0.5
(jsonrpc-shutdown): Add an option to cleanup process buffer.
2018-08-11 17:02:23 +01:00
Michael Albinus
1d8fa1c981 ; More instrumentation for shadowfile-tests.el and files.el 2018-08-11 17:03:41 +02:00
João Távora
d7b9737e69 * lisp/jsonrpc.el (jsonrpc-request): Clarify comment. 2018-08-11 14:57:01 +01:00
João Távora
c580443325 Make jsonrpc-shutdown a noop if process isn't running
* lisp/jsonrpc.el
(Version): Bump to 1.0.4
(jsonrpc-shutdown): Noop if server isn't running.
2018-08-11 14:57:01 +01:00
Andy Moreton
914b0300bc Avoid calling vc backend if 'vc-display-status' is nil
* lisp/vc/vc-hooks.el (vc-mode-line): Avoid calling VC backend if
'vc-display-status' is nil.  (Bug#32225)
2018-08-11 13:04:06 +03:00
Eli Zaretskii
eefa51689c Give auto-save-no-message a proper version attribute
* lisp/cus-start.el (standard): Give 'auto-save-no-message' the
proper version attribute.  (Bug#31039)
2018-08-11 12:55:52 +03:00
Federico Tedin
c024a05e59 Add variable auto-save-no-message
* src/keyboard.c (auto-save-no-message): New variable, allows
suppressing auto-saving message.
* lisp/cus-start.el (standard): Add 'auto-save-no-message' variable.
* doc/emacs/files.texi (Auto Save): Document 'auto-save-no-message'.
* etc/NEWS: Mention 'auto-save-no-message'.  (Bug#31039)
2018-08-11 12:24:04 +03:00
Michael Albinus
33344ab911 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2018-08-11 10:26:20 +02:00
Michael Albinus
e9cda7a9d4 ; More instrumentation for files.el 2018-08-11 10:25:55 +02:00
Eli Zaretskii
e33534f26a Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2018-08-11 11:19:27 +03:00
Eli Zaretskii
5fbf13038d Reinstate the 'tis620-2533' character set
This is a partial revert of "Make 'tis620-2533' character set be an
alias for 'thai-iso8859-11'" commit from Jul 28, 2018.
* lisp/international/mule-conf.el (tis620-2533): No longer an
alias for thai-iso8859-11.  Instead, reinstate the original
definition of tis620-2533, but without eight-bit-control in
the :superset attribute.  For the details, see
http://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00117.html
and the surrounding discussions.
* lisp/international/fontset.el (font-encoding-alist)
(font-encoding-charset-alist): Reinstate tis620-2533 charset.
* lisp/language/thai.el (thai-tis620): Restore the original
:charset-list.
("Thai"): Restore the original nonascii-translation.
* lisp/w32-fns.el: Use tis620-2533 instead of thai-iso8859-11.
2018-08-11 11:15:57 +03:00
Michael Albinus
a0d00f17dd Editorial changes in tramp.texi
* doc/misc/tramp.texi (Bug Reports): Tramp buffers shall be
appended as attachments to bug reports.
(Frequently Asked Questions): New item, determining remote buffers.
2018-08-11 09:51:27 +02:00
Nikolaus Rath
31263d67d5 Make nnimap support IMAP namespaces
* lisp/gnus/nnimap.el (nnimap-use-namespaces): Introduce new
server variable.
(nnimap-group-to-imap, nnimap-get-groups): Transform IMAP group
names to Gnus group name by stripping / prefixing personal
namespace prefix.
(nnimap-open-connection-1): Ask server for namespaces and store
them.

* lisp/gnus/nnimap.el (nnimap-request-group-scan)
(nnimap-request-create-group, nnimap-request-delete-group)
(nnimap-request-rename-group, nnimap-request-move-article)
(nnimap-process-expiry-targets)
(nnimap-request-update-group-status)
(nnimap-request-accept-article, nnimap-request-list)
(nnimap-retrieve-group-data-early, nnimap-change-group)
(nnimap-split-incoming-mail): Use nnimap-group-to-imap.
(nnimap-group-to-imap): New function to map Gnus group names to
IMAP folder names.  (Bug#21057)
2018-08-11 10:46:02 +03:00
Eli Zaretskii
3f8324e0de Improve error message when Hunspell dictionaries are misconfigured
* lisp/textmodes/ispell.el
(ispell-find-hunspell-dictionaries): Produce a meaningful
error message if Hunspell dictionaries are misconfigured.
(Bug#32319)
2018-08-11 10:34:10 +03:00
Glenn Morris
110a7d1a6e ; Merge from origin/emacs-26
The following commit was skipped:

5e42c34 (origin/emacs-26) Fix bugs in `auth-source-netrc-parse-one'.
2018-08-10 11:37:11 -07:00
Glenn Morris
bd6b6cdb62 Merge from origin/emacs-26
71c92d8 Fix copying text properties by 'format'
96be6b6 Improve error messages regarding initial-buffer-choice (Bug#2...
00fb127 * test/lisp/wdired-tests.el (wdired-test-unfinished-edit-01):...

Conflicts:
	lisp/startup.el
2018-08-10 11:37:11 -07:00
Glenn Morris
506ea8a2f7 ; Merge from origin/emacs-26
The following commit was skipped:

18588bc Make async :family 'local failures fail correctly again
2018-08-10 11:28:40 -07:00
Glenn Morris
caa4d9c4e7 Merge from origin/emacs-26
5afbf62 Fix emacsclient check for term.el buffer (Bug#21041)
5132a58 Improve documentation of 'set-fontset-font'
cd90325 Improve documentation of M-?
155a885 Reinterpret Esperanto characters in iso-transl as iso-8859-3.
a0ef733 Fix Flyspell mode when several languages are mixed in a buffer
2018-08-10 11:28:40 -07:00
Filipp Gunbin
5e42c349a0 Fix bugs in `auth-source-netrc-parse-one'.
* lisp/auth-source.el (auth-source-netrc-parse-one): Ensure that match
  data is not overwritten in `auth-source-netrc-parse-next-interesting'.
  Ensure that blanks are skipped before and after going over comments
  and eols.
* test/lisp/auth-source-tests.el (auth-source-test-netrc-parse-one): New test.

(cherry picked from commit 60ff810144)
2018-08-10 08:36:24 -04:00
Michael Albinus
243b68f73f ; More instrumentation for shadowfile-tests.el and files.el
* test/lisp/shadowfile-tests.el (shadow-test06-literal-groups)
(shadow-test07-regexp-groups, shadow-test08-shadow-todo)
(shadow-test09-shadow-copy-files): Use `set-visited-file-name'
instead of setting the value in `buffer-file-name' directly.
(Bug#32226)
2018-08-10 13:34:10 +02:00
Michael Albinus
7fbf124796 Another try to fix Bug#32226
* test/lisp/shadowfile-tests.el (shadow-test06-literal-groups)
(shadow-test07-regexp-groups, shadow-test08-shadow-todo)
(shadow-test09-shadow-copy-files): Use `set-visited-file-name'
instead of setting the value in `buffer-file-name' directly.
(Bug#32226)
2018-08-10 10:58:00 +02:00
Michael Albinus
9905c927b0 ; More instrumentation for files.el 2018-08-10 09:53:37 +02:00
João Távora
9bb52a8e8f Allow completely disabling event logging in jsonrpc.el
Pretty printing the event sexp can be very slow when very big messages
are involved.

* lisp/jsonrpc.el (Version): Bump to 1.0.3
(jsonrpc-connection): Tweak docstring for
jsonrpc--event-buffer-scrollback-size.
(jsonrpc--log-event): Only log if max size is positive.
2018-08-10 01:21:16 +01:00
Tom Tromey
79f59d41a3 Fix up for bignums after merge from trunk
* src/character.c (char_width): Use XFIXNUM.
* src/editfns.c (styled_format): Use XFIXNUM, XUFIXNUM.
* src/fns.c (Fproper_list_p): Use make_fixnum.
2018-08-09 18:02:00 -06:00
Tom Tromey
accb7b7ecc Merge remote-tracking branch 'origin/master' into feature/bignum 2018-08-09 17:56:53 -06:00
Tom Tromey
f822a2516d Use mpz_sgn rather than comparisons against 0
* src/data.c (Fmod): Use mpz_sgn.
* src/lisp.h (NATNUMP): Use mpz_sgn.
2018-08-09 13:28:37 -06:00
Andy Moreton
f966753727 Do not use GMP_NUMB_BITS
* src/alloc.c (make_number): Use mp_bits_per_limb, not GMP_NUMB_BITS.
2018-08-09 13:28:37 -06:00
Eli Zaretskii
71c92d8913 Fix copying text properties by 'format'
* src/editfns.c (styled_format): Add the spec beginning index
to the info recorded for each format spec, and use it to
detect the case that a format spec and its text property end
where the next spec with another property begins.  (Bug#32404)

* test/src/editfns-tests.el (format-properties): Add tests for
bug#32404.
2018-08-09 18:08:35 +03:00
Charles A. Roelli
d0b279a505 Update src/{ns,mac}*.m to use bignum-compatible macros
* src/nsterm.m:
* src/nsselect.m:
* src/nsmenu.m:
* src/nsimage.m:
* src/nsfont.m:
* src/nsfns.m:
* src/macfont.m: Replace
"make_number"		-> "make_fixnum",
"XINT"			-> "XFIXNUM",
"XFASTINT"		-> "XFIXNAT",
"TYPE_RANGED_INTEGERP"	-> "TYPE_RANGED_FIXNUMP",
"RANGED_INTEGERP"	-> "RANGED_FIXNUMP",
"CHECK_NATNUM"		-> "CHECK_FIXNAT",
"CHECK_NUMBER"		-> "CHECK_FIXNUM",
"INTEGERP"		-> "FIXNUMP",
"NUMBERP"		-> "FIXED_OR_FLOATP",
as done in the following changes:
2018-07-06 Rename integerp->fixnum, etc, in preparation
for bignums (42fe787b)
2018-08-07 More macro renamings for bignum (d1ec3a0a)
2018-08-09 16:00:20 +02:00
Michael Albinus
53483df0de ; More instrumentation for shadowfile-tests.el and files.el 2018-08-09 15:40:37 +02:00
Alexander Gramiak
96be6b6eb9 Improve error messages regarding initial-buffer-choice (Bug#29098)
* lisp/startup.el (command-line-1) <initial-buffer-choice>: Make the
messages conform to Emacs conventions, and show the invalid return
value in the message.
2018-08-09 08:12:07 -04:00
Michael Albinus
f1a385ded2 Fix Bug#32304
* test/lisp/net/tramp-tests.el (tramp-test45-unload):
Handle tramp-archive autoloaded objects.  Remove tag :unstable.
2018-08-09 14:08:25 +02:00
João Távora
449954dda8 Trim JSONRPC events buffer when it's too large
* lisp/jsonrpc.el (Version): Bump to 1.0.2
(jsonrpc--events-buffer-scrollback-size): New
jsonrpc-connection slot.
(jsonrpc--log-event): Use it to trim buffer.
2018-08-09 13:04:03 +01:00
João Távora
cdafa8933d Synchronous JSONRPC requests can be cancelled on user input
This allows building more responsive interfaces, such as a snappier
completion backend.

* lisp/jsonrpc.el (Version): Bump to 1.0.1
(jsonrpc-connection-receive): Don't warn when continuation isn't
found.
(jsonrpc-request): Add parameters CANCEL-ON-INPUT and
CANCEL-ON-INPUT-RETVAL.
2018-08-09 10:43:41 +01:00
Paul Eggert
63a8f4cfd7 Minor pseudovector allocation cleanups
* src/alloc.c (VECTOR_BLOCK_SIZE, VECTOR_BLOCK_BYTES)
(VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX):
Prefer enums to macros where either will do.
(allocate_vector_from_block): Arg is ptrdiff_t, not size_t.
Use eassume instead of eassert.
(PSEUDOVEC_STRUCT): New macro, which verifies the already-existing
assumption that the vector-like objects are small.
(cleanup_vector): Use it.  Use if-then-else systematically;
this lets GCC do a bit better job.

2018-08-08  Paul Eggert  <eggert@cs.ucla.edu>

* src/alloc.c (VBLOCK_BYTES_MAX): Use vroundup_ct, not
vroundup, so that can be used in static assertions.
2018-08-08 18:52:38 -07:00
Glenn Morris
00fb127031 * test/lisp/wdired-tests.el (wdired-test-unfinished-edit-01): Fix typo. 2018-08-08 19:58:29 -04:00
Tom Tromey
90dba077cf Fix mod-test-sum-test for bignums
* test/src/emacs-module-tests.el (mod-test-sum-test): Update
for bignums.
2018-08-08 17:34:42 -06:00
Tom Tromey
5ebf062ebe Handle leading "+" when converting string to bignum
* src/lread.c (string_to_number): Skip leading "+" when calling
make_bignum_str.
2018-08-08 17:33:24 -06:00
Lars Ingebrigtsen
18588bce36 Make async :family 'local failures fail correctly again
* src/fileio.c (get_file_errno_data): Refactor out into its own
function so that we can reuse the error handling from an async
context (bug#31901).

* src/process.c (connect_network_socket): When an async :family
'local client fails (with a file error, for instance), mark the
process as failed.

(cherry picked from commit 92ba34d89a)
2018-08-08 19:30:50 -04:00
Noam Postavsky
5afbf62674 Fix emacsclient check for term.el buffer (Bug#21041)
* lib-src/emacsclient.c (find_tty): Check for any TERM value with
prefix of "eterm", not just "eterm" itself.  Also check for ",term:"
in INSIDE_EMACS value.
2018-08-08 19:29:59 -04:00
Tom Tromey
d3549c1901 Use mpz_import in mpz_set_uintmax_slow
* src/alloc.c (mpz_set_uintmax_slow): Use mpz_import.
2018-08-08 17:01:55 -06:00
Tom Tromey
fb26c9fd69 Make purecopy work for bignums
* src/alloc.c (make_pure_bignum): New function.
(purecopy): Use it.
2018-08-08 17:01:14 -06:00
Charles A. Roelli
7eef590870 ; Fix typos in commentary
* src/xdisp.c (windows_or_buffers_changed, update_mode_lines)
(get_phys_cursor_geometry, display_echo_area_1)
(resize_mini_window_1):
* src/dispextern.h (struct it): Fix typos in commentary.
2018-08-08 21:26:33 +02:00
Michael Albinus
5025fb617d Fix problems in tramp-tests
* test/lisp/net/tramp-tests.el (tramp-test45-unload): Filter out
tramp-archive objects.  (Bug#32304)

* test/lisp/net/tramp-tests.el (tramp-test43-auto-load):
Add skip condition.  (Bug#32304)
(tramp-test43-unload): Tag as :unstable.
2018-08-08 19:57:54 +02:00