Commit graph

134993 commits

Author SHA1 Message Date
Eli Zaretskii
f6eacc468b Improve documentation of 'server-name'
* doc/emacs/misc.texi (Emacs Server, TCP Emacs server)
(emacsclient Options):
* lisp/server.el (server-name): Document the usage of
'server-name' to specify the server file as an absolute file
name.  (Bug#33934)
2019-01-04 15:55:59 +02:00
Michael Albinus
fe4922cbf0 Mark some filenotify tests unstable on emba
* .gitlab-ci.yml (test): Add EMACS_EMBA_CI variable.

* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test05-file-validity)
(file-notify-test06-dir-validity)
(file-notify-test07-many-events)
(file-notify-test09-watched-file-in-watched-dir): Mark them as
:unstable on emba.
2019-01-03 18:55:11 +01:00
Michael Albinus
ecdfb8ef53 Adapt test/README
* test/README: Speak about continous integration tests on hydra
and emba.
2019-01-03 15:37:53 +01:00
Andrey Kotlarski
e869ae200d Fix EBROWSE parsing of classes declared final. 2019-01-03 14:07:05 +02:00
Philipp Stephani
f136a4bf7c Avoid a compiler warning on macOS.
* src/xdisp.c (expose_window_tree): Define variable f only if used.
2019-01-02 22:08:59 +01:00
Nicolas Petton
9b7d28ce4e
; Move the section about seq.el to the correct place. 2019-01-02 18:39:57 +01:00
Nicolas Petton
2e4cc79b52
; Formatting fix in etc/NEWS 2019-01-02 18:37:41 +01:00
Nicolas Petton
deee6bd4bc
Document the new functions of seq.el
* etc/NEWS: New section documenting the addition of `seq-first' and
`seq-rest'.
2019-01-02 18:36:27 +01:00
João Távora
949295ae1a Extend electric-layout-mode to handle more complex layouts (bug#33794)
Entries in electric-layout-rules can specify multiple
newline-related actions which are executed in order of appearance.

Also, have it play nice with electric-pair-mode when inserting a
newlines, particularly with electric-pair-open-newline-between-pairs.

Entries in electric-layout-rules can also be functions.  Among other
things, the logic behind electric-pair-open-newline-between-pairs
could now be moved to electric-layout-mode, but this commit doesn't do
that yet.

This change was motivated by bug#33794 and is an alternative solution
to the problem reported in that bug.

* lisp/electric.el (electric-layout-rules): Adjust docstring.
(electric-layout-post-self-insert-function): Call
electric-layout-post-self-insert-function-1.
(electric-layout-post-self-insert-function-1): Rename from
electric-layout-post-self-insert-function.  Redesign.
(electric-layout-local-mode): New minor mode.

* test/lisp/electric-tests.el (electric-layout-int-main-kernel-style)
(electric-layout-int-main-allman-style)
(electric-modes-in-c-mode-with-self-insert-command)
(electric-pair-mode-newline-between-parens)
(electric-layout-mode-newline-between-parens-without-e-p-m)
(electric-layout-mode-newline-between-parens-without-e-p-m-2): New
tests.
(plainer-c-mode): New helper.
2019-01-02 12:55:16 +00:00
Paul Eggert
0515b223c2 Don’t limit range error reports to fixnums
* src/lisp.h (CHECK_RANGED_INTEGER): When signaling an error,
don’t arbitrarily limit the reported valid range to fixnums.
2019-01-01 15:13:45 -08:00
Paul Eggert
8b5f05e938 Bignums from garbage-collect, memory-use-counts
Do not limit the results of garbage-collect and memory-use-counts
to fixnums, as they might be bignums now on 32-bit hosts.
* src/lisp.h (byte_ct): New type.
* src/alloc.c (object_ct): New type.
(consing_since_gc, gc_relative_threshold)
(memory_full_cons_threshold, total_string_bytes):
Now byte_ct, not EMACS_INT.
(total_conses, total_symbols, total_buffers, total_free_conses)
(total_free_symbols, total_free_floats, total_floats)
(total_free_intervals, total_intervals, total_strings)
(total_free_strings, total_vectors, total_vector_slots)
(total_free_vector_slots): Now object_ct, not EMACS_INT.
(bounded_number): Remove.  All uses removed.
(object_bytes): New function.
(total_bytes_of_live_objects, garbage_collect_1): Use byte_ct,
not size_t, to count total GC bytes where multiple objects are
involved.
(garbage_collect_1, Fmemory_use_counts):
Do not limit returned counts to fixnums.
(sweep_conses, sweep_floats, sweep_intervals, sweep_symbols):
Use object_ct, not EMACS_INT, to count GC objects.
2019-01-01 15:07:16 -08:00
Paul Eggert
ba1b340988 Be consistent about list length fixnum overflow
* src/fns.c (Flength, Fproper_list_p): Use overflow_error to
report the (typically impossible) fixnum overflow.
2019-01-01 11:43:17 -08:00
Paul Eggert
504457673d Fix woman.el to not confuse scan-sexps
* lisp/woman.el (woman-unpadded-space-char):
Escape the close-bracket (Bug#33940).
2019-01-01 11:35:42 -08:00
Paul Eggert
227343947f decode-time: allow bignum years
* src/timefns.c (TM_YEAR_BASE):
Now a constant as it need not be a macro.
(Fdecode_time): Do not signal an overflow merely because the
Gregorian year number does not fix in a fixnum (which can
happen on hosts with 64-bit time_t and with 32-bit int and
EMACS_INT).
2019-01-01 11:33:37 -08:00
Glenn Morris
355b1c3cb9 ; Auto-commit of loaddefs files. 2019-01-01 07:24:58 -05:00
Paul Eggert
8e25ffeec6 Fix integer overflow check in json code
* src/json.c (json_to_lisp): Check for ptrdiff_t overflow,
not fixnum overflow.
2018-12-31 23:35:55 -08:00
Paul Eggert
a04bf15130 Update more copyright years
Update some other copyright years automatically, by running:
Run 'UPDATE_COPYRIGHT_YEAR=2019 \
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 admin/update-copyright'
followed by 'admin/merge-gnulib'.
2018-12-31 18:47:22 -08:00
Paul Eggert
115498702d Update from Gnulib
This incorporates mostly just copyright-year changes, plus
recent minor updates from glibc for the non-Emacs regular
expression code.
2018-12-31 18:20:07 -08:00
Paul Eggert
ba809612c0 Merge from origin/emacs-26
2fcf2df Fix copyright years by hand
26bed8b Update copyright year to 2019
2814292 Fix value of default frame height.  (Bug#33921)
2018-12-31 17:57:29 -08:00
Paul Eggert
d9ba26ec2d Remove UCHAR typedef
* src/lisp.h (_UCHAR_T, UCHAR): Remove.  This workaround for
circa-1993 old-AIX has evidently not been needed for decades.
Tested on AIX 7.1, the oldest AIX version IBM still supports.
2019-01-01 01:12:44 +00:00
Paul Eggert
2fcf2dff00 Fix copyright years by hand
These are dates that admin/update-copyright did not update, or
updated incorrectly.
2019-01-01 01:02:40 +00:00
Paul Eggert
26bed8ba10 Update copyright year to 2019
Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
2019-01-01 01:01:13 +00:00
Eli Zaretskii
2814292570 * doc/man/emacs.1.in: Fix value of default frame height. (Bug#33921) 2018-12-31 17:52:01 +02:00
Michael Albinus
c5bbf67d5c Reset `tramp-default-proxies-alist' in case of errors
* lisp/net/tramp-sh.el (tramp-compute-multi-hops):
Reset `tramp-default-proxies-alist' in case of errors.
2018-12-31 15:11:09 +01:00
Michael Albinus
792dc36e69 Precise documentation of Tramp ad-hoc proxies
* doc/misc/tramp.texi (Ad-hoc multi-hops): Remove superfluous
first entry about %h and %u.  Describe, how to remove ad-hoc proxy
definitions.
(Cleanup remote connections): Mention, that also ad-hoc proxy
definitions are removed.

* etc/NEWS: Mention default host names in Tramp ad-hoc proxies.
2018-12-31 12:18:41 +01:00
Michael Albinus
03e7215a0b * lisp/files.el (locate-file, files--splice-dirname-file): Fix docstring. 2018-12-31 11:38:56 +01:00
Paul Eggert
bed56428a6 Fix assertion-violations on non-integers
These bugs were introduced after bignums were added.
* src/data.c (cons_to_unsigned, cons_to_signed):
* src/xdisp.c (calc_line_height_property):
Invoke integer_to_intmax and integer_to_uintmax only on integers.
2018-12-30 19:00:46 -08:00
Glenn Morris
433b6a74ec Merge from origin/emacs-26
82c82b1 (origin/emacs-26) In user manual fix value of default frame h...
2e8825d Improve documentation of 'file-local-name' and related APIs
11f0635 ; Remove comment in esh-proc.el

# Conflicts:
#	lisp/simple.el
2018-12-30 17:02:40 -08:00
Glenn Morris
f23b1db37a ; Merge from origin/emacs-26
The following commits were skipped:

3c83c9e Fix Bug#31704.  Do not merge
de7644d Fix Bug#31704.  Do not merge
2018-12-30 16:57:36 -08:00
Glenn Morris
a8e545ef6b Merge from origin/emacs-26
3abebeb * lisp/files.el (cd): Fix last change.  (Bug#33791)
7a60a4f Fix remote directories in Eshell on MS-Windows
822a2d0 Fix :type 'group' in defcustom
a731c56 Fix NS fringe bitmap drawing bug (bug#33864)
0c52459 Fix commentary in dispnew.c
c9fdd1b Improve accept-process-process doc
9578c2a Fix a simple bug in display-buffer-use-some-frame
0f9be72 Clarify thread switching while waiting for process output
24ddea0 Improve process doc. with respect to handling of large input ...
2931016 ; Cosmetic changes in etc/NEWS
85516b8 Minor copyedits in landmark.el

# Conflicts:
#	etc/NEWS
2018-12-30 16:57:36 -08:00
Alan Mackenzie
83bbb48142 CC Mode - use font-lock-comment-delimiter-face on block comment end delimiters
In particular when the default comment type is currently line comments.  Do
this by setting font-lock-comment-end-skip.

* lisp/progmodes/cc-cmds.el (c-font-lock-comment-end-skip): New lang const.
(font-lock-comment-end-skip): New c-lang-setvar.
2018-12-30 18:38:36 +00:00
Martin Rudalics
d82e73f08f Handle 'unbound' like nil for 'window-point-insertion-type' (Bug#33871)
* src/window.c (save_window_save): When setting the marker
insertion type of saved window points treat a buffer local
value of 'unbound' for 'window-point-insertion-type' like
nil (Bug#33871).
2018-12-30 15:47:16 +01:00
Martin Rudalics
82c82b1c77 In user manual fix value of default frame height (Bug#33921)
* doc/emacs/cmdargs.texi (Window Size X): Fix value of default
frame height (Bug#33921).
2018-12-30 15:21:50 +01:00
Dmitry Gutov
b0e6ecfc33 Skip 'basic' completion style for project-find-file
* lisp/minibuffer.el (completion-category-defaults): Skip 'basic'
for 'project-file', in order not to prefer files at the top of the
directory tree.
2018-12-29 20:06:42 +03:00
Eli Zaretskii
2e8825d6c5 Improve documentation of 'file-local-name' and related APIs
* doc/lispref/files.texi (Unique File Names)
(Magic File Names, File Name Expansion): Improve documentation
of the "local part" of a remote file name.
* doc/lispref/processes.texi (Synchronous Processes)
(Asynchronous Processes): State explicitly that program and
file names passed to functions that start remote processes
need to be relative or obtained by 'file-local-name'.

* lisp/files.el (file-local-name):
* lisp/simple.el (start-file-process, process-file): Improve
the documentation of the "local part" of a remote file name,
and its use in APIs that start remote processes.
2018-12-29 17:34:57 +02:00
Mattias Engdegård
b71d4ce056 Handle raw bytes, and LF in ranges, in rx `any' argument strings
* lisp/emacs-lisp/rx.el (rx-check-any-string): Rewrite to handle raw bytes
in unibyte strings and accept LF as range endpoints (Bug#33205).
* test/lisp/emacs-lisp/rx-tests.el: Add tests for the above.
2018-12-29 16:53:27 +02:00
Michael Albinus
11f0635c19 ; Remove comment in esh-proc.el 2018-12-29 11:57:25 +01:00
Michael Albinus
3c83c9ed66 Fix Bug#31704. Do not merge
* lisp/net/tramp.el (tramp-eshell-directory-change):
Use `path-separator' as it does eshell.  (Bug#31704)
2018-12-29 11:52:56 +01:00
Michael Albinus
de7644d8d8 Fix Bug#31704. Do not merge
* lisp/eshell/esh-proc.el (eshell-gather-process-output): Do not
let `expand-file-name' prefix remote file names with MS Windows
volume letter.

* lisp/net/tramp.el (tramp-eshell-directory-change):
Use `path-separator' as it does eshell.  (Bug#31704)
2018-12-29 11:50:20 +01:00
Martin Rudalics
fb10834a60 Avoid that unwind_format_mode_line messes up buffer points (Bug#32777)
* src/xdisp.c (format_mode_line_unwind_data): Before
temporarily selecting a window on another frame, separately save
the point of that window's buffer too.
(unwind_format_mode_line): After undoing the temporary
selection of a window on another frame, separately restore the
buffer point of that window.  This is needed since the
operation that deselects that window will have stored back the
point of that window into its buffer's point which is wrong
since that window was never "officially" selected (Bug#32777).
2018-12-29 10:51:35 +01:00
Eli Zaretskii
3abebeb8c3 * lisp/files.el (cd): Fix last change. (Bug#33791) 2018-12-29 11:47:40 +02:00
Eli Zaretskii
7a60a4f449 Fix remote directories in Eshell on MS-Windows
* lisp/files.el (cd): Support remote directory names on
MS-Windows.  (Bug#33791)
2018-12-29 10:15:50 +02:00
Drew Adams
822a2d039f Fix :type 'group' in defcustom
* lisp/wid-edit.el (group): Fix the :format spec.  (Bug#33566)
2018-12-29 10:02:38 +02:00
Dmitry Gutov
8f9d93f305 project-find-file: Move the common parent directory to the prompt
* lisp/progmodes/project.el (project--completing-read-strict):
Extract the common parent directory of all files first
(https://lists.gnu.org/archive/html/emacs-devel/2018-12/msg00444.html).
2018-12-29 02:15:35 +02:00
Alan Third
a731c563a1 Fix NS fringe bitmap drawing bug (bug#33864)
* src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear
correctly.
2018-12-28 21:38:11 +00:00
Eli Zaretskii
0c524597b3 Fix commentary in dispnew.c
* src/dispnew.c (buffer_posn_from_coords): Fix inaccuracies in
the commentary.
2018-12-28 16:28:51 +02:00
Michael Albinus
cf62106878 * lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf. 2018-12-28 10:22:42 +01:00
Paul Eggert
8167316fd6 Improve motivations in gomoku messages
* lisp/play/gomoku.el (gomoku-terminate-game):
Don't make six-year-old children cry (Bug#33803).
2018-12-27 21:55:22 -08:00
Paul Pogonyshev
47d656f602 Accept 1-arg 'substring' calls in byte compiler
Those have been supported by the function implementation since
commit 2014-03-31T12:06:34Z!dmantipov@yandex.ru (Bug#33807).
* lisp/emacs-lisp/bytecomp.el: substring has 1-3 args, not 2-3.
2018-12-27 20:25:52 -08:00
Paul Eggert
c9fdd1b496 Improve accept-process-process doc
* doc/lispref/processes.texi (Accepting Output):
* src/process.c (Faccept_process_output):
Document that (accept-process-output P) can return non-nil
even after P has exited, and that it can return nil even if P
is still running (Bug#33839).
2018-12-27 12:53:54 -08:00