]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years ago* lisp/emacs-lisp/map.el: Prepare for addition to GNU ELPA
Stefan Monnier [Tue, 8 Jan 2019 16:49:17 +0000 (11:49 -0500)]
* lisp/emacs-lisp/map.el: Prepare for addition to GNU ELPA

6 years ago* lisp/help-fns.el (help--load-prefixes): Demote errors from files.
Stefan Monnier [Tue, 8 Jan 2019 16:28:00 +0000 (11:28 -0500)]
* lisp/help-fns.el (help--load-prefixes): Demote errors from files.

6 years agoFix nasty cut'n'waste error in Tramp
Michael Albinus [Tue, 8 Jan 2019 14:03:57 +0000 (15:03 +0100)]
Fix nasty cut'n'waste error in Tramp

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Remove weird code, resulting from cut'n'waste.

6 years agoAdapt .gitlab-ci.yml
Michael Albinus [Tue, 8 Jan 2019 08:21:07 +0000 (09:21 +0100)]
Adapt .gitlab-ci.yml

* .gitlab-ci.yml (variables): Move outside jobs.  Use
"GIT_STRATEGY: fetch".
(before_script): Install git.
(test-all): Rename from test.  Install inotify-tools.  Run "make
check-expensive".
(test-filenotify-gio): New job.

6 years ago* lisp/progmodes/js.el: Remove unused (require 'thingatpt).
Leo Liu [Tue, 8 Jan 2019 04:37:22 +0000 (12:37 +0800)]
* lisp/progmodes/js.el: Remove unused (require 'thingatpt).

6 years agoUse utf-8 coding system for all our Elisp files
Stefan Monnier [Tue, 8 Jan 2019 02:18:40 +0000 (21:18 -0500)]
Use utf-8 coding system for all our Elisp files

* lisp/international/ja-dic-cnv.el:
* lisp/international/ja-dic-utl.el:
* lisp/international/kinsoku.el:
* lisp/international/kkc.el:
* lisp/language/japan-util.el:
* lisp/language/japanese.el:
* lisp/leim/quail/cyril-jis.el:
* lisp/leim/quail/hanja-jis.el:
* lisp/leim/quail/japanese.el:
* lisp/leim/quail/py-punct.el:
* lisp/leim/quail/pypunct-b5.el: Use utf-8 coding system.
* lisp/international/titdic-cnv.el: Use utf-8-emacs coding system.

6 years ago* lisp/international/titdic-cnv.el: Save generated files with utf-8
Stefan Monnier [Tue, 8 Jan 2019 01:49:26 +0000 (20:49 -0500)]
* lisp/international/titdic-cnv.el: Save generated files with utf-8

(titdic-convert, miscdic-convert): Use utf-8 when writing and don't
bother putting a `coding:` tag since utf-8 is the default anyway.

6 years ago; ChangeLog fix
Glenn Morris [Mon, 7 Jan 2019 20:03:13 +0000 (15:03 -0500)]
; ChangeLog fix

ref http://lists.gnu.org/r/emacs-devel/2019-01/msg00076.html

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 7 Jan 2019 19:51:38 +0000 (11:51 -0800)]
; Merge from origin/emacs-26

The following commits were skipped:

13b586d (origin/emacs-26) Adapt filenotify-tests for emba
d8525ae (tag: emacs-26.1.91) Bump Emacs version to 26.1.91

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 7 Jan 2019 19:51:38 +0000 (11:51 -0800)]
Merge from origin/emacs-26

f1ce72b ; ChangeLog.3 update
5b59cf0 * etc/AUTHORS: Update.
2cf20b6 * lisp/textmodes/mhtml-mode.el: Avoid loading flyspell.  (Bug...

# Conflicts:
# ChangeLog.3
# lisp/textmodes/mhtml-mode.el

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 7 Jan 2019 19:51:23 +0000 (11:51 -0800)]
; Merge from origin/emacs-26

The following commits were skipped:

99e2ad9 Improve GC+Cairo workaround
e0862ed Work around GC+Cairo bug

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 7 Jan 2019 19:51:23 +0000 (11:51 -0800)]
Merge from origin/emacs-26

0ecff00 Improve commentary in font.h
a058eda Fix definition of Qwindow_point_insertion_type (Bug#33871)

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 7 Jan 2019 19:51:23 +0000 (11:51 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

7755173 Improve documentation of 'server-name'

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 7 Jan 2019 19:51:23 +0000 (11:51 -0800)]
Merge from origin/emacs-26

5f2aa32 Update Unicode copyright notice

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 7 Jan 2019 19:51:23 +0000 (11:51 -0800)]
; Merge from origin/emacs-26

The following commits were skipped:

08840f2 Handle quoted file names in filenotify.el
e0870c3 ; Auto-commit of loaddefs files.

6 years agoAdapt filenotify-tests for emba
Michael Albinus [Mon, 7 Jan 2019 16:07:19 +0000 (17:07 +0100)]
Adapt filenotify-tests for 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): Adapt tests for emba.

6 years ago; Format filenotify-tests.el
Michael Albinus [Mon, 7 Jan 2019 15:59:43 +0000 (16:59 +0100)]
; Format filenotify-tests.el

6 years agoBump Emacs version to 26.1.91 emacs-26.1.91
Nicolas Petton [Mon, 7 Jan 2019 14:37:10 +0000 (15:37 +0100)]
Bump Emacs version to 26.1.91

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 26.1.91.

6 years ago; ChangeLog.3 update
Nicolas Petton [Mon, 7 Jan 2019 14:36:57 +0000 (15:36 +0100)]
; ChangeLog.3 update

6 years ago* etc/AUTHORS: Update.
Nicolas Petton [Mon, 7 Jan 2019 14:35:02 +0000 (15:35 +0100)]
* etc/AUTHORS: Update.

6 years agoAdapt tests for emba
Michael Albinus [Mon, 7 Jan 2019 13:04:17 +0000 (14:04 +0100)]
Adapt tests for emba

* 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): Adapt tests for emba.

6 years agoMinor INFINITY/NAN cleanup
Paul Eggert [Mon, 7 Jan 2019 05:59:03 +0000 (21:59 -0800)]
Minor INFINITY/NAN cleanup

* src/lread.c (INFINITY): Use a more-portable way to specify
this macro on non-C99 platforms that lack it.
(NAN): Remove; unused.

6 years agoFix logb on zero, infinite, NaN args
Paul Eggert [Mon, 7 Jan 2019 00:23:41 +0000 (16:23 -0800)]
Fix logb on zero, infinite, NaN args

Change logb to return -infinity, +infinity, and NaN respectively.
Formerly logb returned an extreme fixnum to represent
infinity, but this is no longer the right thing to do now that
we have bignums and there is no extreme integer.
* doc/lispref/numbers.texi (Float Basics), etc/NEWS: Document.
* src/floatfns.c (Flogb): Implement this.

6 years ago* lisp/textmodes/mhtml-mode.el: Avoid loading flyspell. (Bug#33939)
Leo Liu [Sun, 6 Jan 2019 23:22:45 +0000 (07:22 +0800)]
* lisp/textmodes/mhtml-mode.el: Avoid loading flyspell.  (Bug#33939)

6 years agoUse integers for syntax-pps-stats
Paul Eggert [Sun, 6 Jan 2019 19:14:59 +0000 (11:14 -0800)]
Use integers for syntax-pps-stats

* lisp/emacs-lisp/syntax.el (syntax-ppss-stats):
Use integers, not floating-point, for stats, now that integers are
unbounded.  Almost always these should be fixnums.  Add 1 to last
slot’s car so that this addition need not be done at runtime.
(syntax-pps-stats, syntax-ppss): Use integers for calculations.
(syntax-ppss--update-stats): New convenience function.
(syntax-ppss): Use it.

6 years agoAdapt filenotify-tests for emba
Michael Albinus [Sun, 6 Jan 2019 14:42:57 +0000 (15:42 +0100)]
Adapt filenotify-tests for emba

* 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): Adapt tests for emba.

6 years agoPort to platforms where tputs is in libtinfow
Paul Eggert [Sat, 5 Jan 2019 17:47:14 +0000 (09:47 -0800)]
Port to platforms where tputs is in libtinfow

* configure.ac (tputs_library): Also try tinfow, ncursesw (Bug#33977).

6 years agoNew flymake-supress-zero-counters defcustom
João Távora [Sat, 5 Jan 2019 12:12:00 +0000 (12:12 +0000)]
New flymake-supress-zero-counters defcustom

A feature suggested by Yuri Khan <yurivkhan@gmail.com>.

* lisp/progmodes/flymake.el (flymake-suppress-zero-counters): New
variable.  (flymake--mode-line-format): Use it.

6 years agoFix Flymake tests for GCC 8.2.0
João Távora [Fri, 4 Jan 2019 22:45:29 +0000 (22:45 +0000)]
Fix Flymake tests for GCC 8.2.0

Fixes: bug#33872
"Now you have two problems..."

* lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics):
Adjust regexp.

6 years agoUnbreak Flymake's diagnostics buffer when revisiting source
John Shahid [Fri, 4 Jan 2019 21:28:35 +0000 (21:28 +0000)]
Unbreak Flymake's diagnostics buffer when revisiting source

Fixes: bug#33881
Copyright-paperwork-exempt: yes

* lisp/progmodes/flymake.el (flymake-show-diagnostics-buffer):
Set flymake--diagnostics-buffer-source before reverting.

6 years agoImprove GC+Cairo workaround
Paul Eggert [Wed, 4 Apr 2018 17:59:09 +0000 (10:59 -0700)]
Improve GC+Cairo workaround

Suggested by Eli Zaretskii (Bug#20890#31).
* src/font.h (font_data_structures_may_be_ill_formed): New function.
* src/ftfont.c (ftfont_close):
* src/ftcrfont.c (ftcrfont_close): Use it.

(cherry picked from commit d02fd482fbeaf6ed551e78223b538495cb0c3541)

6 years agoWork around GC+Cairo bug
Paul Eggert [Tue, 3 Apr 2018 15:24:10 +0000 (08:24 -0700)]
Work around GC+Cairo bug

Workaround suggested by Robert Pluim (Bug#20890#13).
* src/ftfont.c (ftfont_close) [USE_CAIRO]:
Do nothing if GC is in progress.

6 years agoDon't signal error from "C-x C-k l" about mouse events
Drew Adams [Sun, 30 Dec 2018 19:37:28 +0000 (11:37 -0800)]
Don't signal error from "C-x C-k l" about mouse events

* lisp/edmacro.el (edmacro-fix-menu-commands): Ignore mouse
events instead of signaling an error.  Display unsupported
events in the error message.  (Bug#33930)

6 years agoFix electric indent bug in python-mode after dedenting colon
Joel Rosdahl [Thu, 27 Dec 2018 15:52:07 +0000 (16:52 +0100)]
Fix electric indent bug in python-mode after dedenting colon

* list/progmodes/python.el (python-indent-post-self-insert-function):
Use markers instead of positions when reindenting statement(s) after
inserting electric colon to avoid reindenting too many
statements (bug#22663).

* test/lisp/progmodes/python-tests.el (python-indent-electric-colon-2):
Improve test case to also verify the fix of bug#22663.

Copyright-paperwork-exempt: yes

6 years agoImprove commentary in font.h
Eli Zaretskii [Sat, 5 Jan 2019 08:28:34 +0000 (10:28 +0200)]
Improve commentary in font.h

* src/font.h (struct font, struct font_driver): Fix typos and
wording in comments.  Document all driver methods.

6 years agoFix definition of Qwindow_point_insertion_type (Bug#33871)
Martin Rudalics [Fri, 4 Jan 2019 16:34:00 +0000 (17:34 +0100)]
Fix definition of Qwindow_point_insertion_type (Bug#33871)

* src/window.c (Qwindow_point_insertion_type): Fix definition
(Bug#33871).

6 years agoImprove documentation of 'server-name'
Eli Zaretskii [Fri, 4 Jan 2019 13:55:59 +0000 (15:55 +0200)]
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)

6 years agoImprove documentation of 'server-name'
Eli Zaretskii [Fri, 4 Jan 2019 13:40:43 +0000 (15:40 +0200)]
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.  Do not merge to master.  (Bug#33934)

6 years agoUpdate Unicode copyright notice
Eli Zaretskii [Fri, 4 Jan 2019 08:48:01 +0000 (10:48 +0200)]
Update Unicode copyright notice

* admin/unidata/copyright.html: Updated version from the
Unicode Consortium's site.

6 years agoMark some filenotify tests unstable on emba
Michael Albinus [Thu, 3 Jan 2019 17:55:11 +0000 (18:55 +0100)]
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.

6 years agoAdapt test/README
Michael Albinus [Thu, 3 Jan 2019 14:37:53 +0000 (15:37 +0100)]
Adapt test/README

* test/README: Speak about continous integration tests on hydra
and emba.

6 years agoFix EBROWSE parsing of classes declared final.
Andrey Kotlarski [Thu, 3 Jan 2019 12:07:05 +0000 (14:07 +0200)]
Fix EBROWSE parsing of classes declared final.

6 years agoAvoid a compiler warning on macOS.
Philipp Stephani [Wed, 2 Jan 2019 17:56:49 +0000 (18:56 +0100)]
Avoid a compiler warning on macOS.

* src/xdisp.c (expose_window_tree): Define variable f only if used.

6 years ago; Move the section about seq.el to the correct place.
Nicolas Petton [Wed, 2 Jan 2019 17:39:57 +0000 (18:39 +0100)]
; Move the section about seq.el to the correct place.

6 years ago; Formatting fix in etc/NEWS
Nicolas Petton [Wed, 2 Jan 2019 17:37:41 +0000 (18:37 +0100)]
; Formatting fix in etc/NEWS

6 years agoDocument the new functions of seq.el
Nicolas Petton [Wed, 2 Jan 2019 17:36:27 +0000 (18:36 +0100)]
Document the new functions of seq.el

* etc/NEWS: New section documenting the addition of `seq-first' and
`seq-rest'.

6 years agoExtend electric-layout-mode to handle more complex layouts (bug#33794)
João Távora [Fri, 21 Dec 2018 18:00:08 +0000 (18:00 +0000)]
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.

6 years agoHandle quoted file names in filenotify.el
Michael Albinus [Fri, 26 Jan 2018 10:57:41 +0000 (11:57 +0100)]
Handle quoted file names in filenotify.el

* lisp/filenotify.el (file-notify-add-watch): Do not save
quoted file names in `file-notify-descriptors'.

* test/lisp/files-tests.el
(files-file-name-non-special-notify-handlers): Do not expect
to fail.

6 years agoDon’t limit range error reports to fixnums
Paul Eggert [Tue, 1 Jan 2019 23:13:22 +0000 (15:13 -0800)]
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.

6 years agoBignums from garbage-collect, memory-use-counts
Paul Eggert [Tue, 1 Jan 2019 23:06:50 +0000 (15:06 -0800)]
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.

6 years agoBe consistent about list length fixnum overflow
Paul Eggert [Tue, 1 Jan 2019 19:41:16 +0000 (11:41 -0800)]
Be consistent about list length fixnum overflow

* src/fns.c (Flength, Fproper_list_p): Use overflow_error to
report the (typically impossible) fixnum overflow.

6 years agoFix woman.el to not confuse scan-sexps
Paul Eggert [Tue, 1 Jan 2019 19:35:17 +0000 (11:35 -0800)]
Fix woman.el to not confuse scan-sexps

* lisp/woman.el (woman-unpadded-space-char):
Escape the close-bracket (Bug#33940).

6 years agodecode-time: allow bignum years
Paul Eggert [Tue, 1 Jan 2019 19:33:10 +0000 (11:33 -0800)]
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).

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 1 Jan 2019 12:24:58 +0000 (07:24 -0500)]
; Auto-commit of loaddefs files.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 1 Jan 2019 11:25:23 +0000 (06:25 -0500)]
; Auto-commit of loaddefs files.

6 years agoFix integer overflow check in json code
Paul Eggert [Tue, 1 Jan 2019 07:07:33 +0000 (23:07 -0800)]
Fix integer overflow check in json code

* src/json.c (json_to_lisp): Check for ptrdiff_t overflow,
not fixnum overflow.

6 years agoUpdate more copyright years
Paul Eggert [Tue, 1 Jan 2019 02:41:28 +0000 (18:41 -0800)]
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'.

6 years agoUpdate from Gnulib
Paul Eggert [Tue, 1 Jan 2019 02:19:36 +0000 (18:19 -0800)]
Update from Gnulib

This incorporates mostly just copyright-year changes, plus
recent minor updates from glibc for the non-Emacs regular
expression code.

6 years agoMerge from origin/emacs-26
Paul Eggert [Tue, 1 Jan 2019 01:57:29 +0000 (17:57 -0800)]
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)

6 years agoRemove UCHAR typedef
Paul Eggert [Tue, 1 Jan 2019 01:12:10 +0000 (01:12 +0000)]
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.

6 years agoFix copyright years by hand
Paul Eggert [Tue, 1 Jan 2019 01:02:40 +0000 (01:02 +0000)]
Fix copyright years by hand

These are dates that admin/update-copyright did not update, or
updated incorrectly.

6 years agoUpdate copyright year to 2019
Paul Eggert [Tue, 1 Jan 2019 00:59:58 +0000 (00:59 +0000)]
Update copyright year to 2019

Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.

6 years ago* doc/man/emacs.1.in: Fix value of default frame height. (Bug#33921)
Eli Zaretskii [Mon, 31 Dec 2018 15:52:01 +0000 (17:52 +0200)]
* doc/man/emacs.1.in: Fix value of default frame height.  (Bug#33921)

6 years agoReset `tramp-default-proxies-alist' in case of errors
Michael Albinus [Mon, 31 Dec 2018 14:11:09 +0000 (15:11 +0100)]
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.

6 years agoPrecise documentation of Tramp ad-hoc proxies
Michael Albinus [Mon, 31 Dec 2018 11:18:41 +0000 (12:18 +0100)]
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.

6 years ago* lisp/files.el (locate-file, files--splice-dirname-file): Fix docstring.
Michael Albinus [Mon, 31 Dec 2018 10:38:56 +0000 (11:38 +0100)]
* lisp/files.el (locate-file, files--splice-dirname-file): Fix docstring.

6 years agoFix assertion-violations on non-integers
Paul Eggert [Mon, 31 Dec 2018 03:00:09 +0000 (19:00 -0800)]
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.

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 31 Dec 2018 01:02:40 +0000 (17:02 -0800)]
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

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 31 Dec 2018 00:57:36 +0000 (16:57 -0800)]
; Merge from origin/emacs-26

The following commits were skipped:

3c83c9e Fix Bug#31704.  Do not merge
de7644d Fix Bug#31704.  Do not merge

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 31 Dec 2018 00:57:36 +0000 (16:57 -0800)]
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

6 years agoCC Mode - use font-lock-comment-delimiter-face on block comment end delimiters
Alan Mackenzie [Sun, 30 Dec 2018 18:38:36 +0000 (18:38 +0000)]
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.

6 years agoHandle 'unbound' like nil for 'window-point-insertion-type' (Bug#33871)
Martin Rudalics [Sun, 30 Dec 2018 14:47:16 +0000 (15:47 +0100)]
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).

6 years agoIn user manual fix value of default frame height (Bug#33921)
Martin Rudalics [Sun, 30 Dec 2018 14:21:50 +0000 (15:21 +0100)]
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).

6 years agoSkip 'basic' completion style for project-find-file
Dmitry Gutov [Sat, 29 Dec 2018 17:06:24 +0000 (20:06 +0300)]
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.

6 years agoImprove documentation of 'file-local-name' and related APIs
Eli Zaretskii [Sat, 29 Dec 2018 15:34:57 +0000 (17:34 +0200)]
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.

6 years agoHandle raw bytes, and LF in ranges, in rx `any' argument strings
Mattias Engdegård [Sat, 29 Dec 2018 10:09:27 +0000 (11:09 +0100)]
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.

6 years ago; Remove comment in esh-proc.el
Michael Albinus [Sat, 29 Dec 2018 10:57:25 +0000 (11:57 +0100)]
; Remove comment in esh-proc.el

6 years agoFix Bug#31704. Do not merge
Michael Albinus [Sat, 29 Dec 2018 10:52:56 +0000 (11:52 +0100)]
Fix Bug#31704.  Do not merge

* lisp/net/tramp.el (tramp-eshell-directory-change):
Use `path-separator' as it does eshell.  (Bug#31704)

6 years agoFix Bug#31704. Do not merge
Michael Albinus [Thu, 6 Sep 2018 10:16:00 +0000 (12:16 +0200)]
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)

6 years agoAvoid that unwind_format_mode_line messes up buffer points (Bug#32777)
Martin Rudalics [Sat, 29 Dec 2018 09:51:35 +0000 (10:51 +0100)]
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).

6 years ago* lisp/files.el (cd): Fix last change. (Bug#33791)
Eli Zaretskii [Sat, 29 Dec 2018 09:47:40 +0000 (11:47 +0200)]
* lisp/files.el (cd): Fix last change.  (Bug#33791)

6 years agoFix remote directories in Eshell on MS-Windows
Eli Zaretskii [Sat, 29 Dec 2018 08:15:50 +0000 (10:15 +0200)]
Fix remote directories in Eshell on MS-Windows

* lisp/files.el (cd): Support remote directory names on
MS-Windows.  (Bug#33791)

6 years agoFix :type 'group' in defcustom
Drew Adams [Mon, 3 Dec 2018 20:49:39 +0000 (12:49 -0800)]
Fix :type 'group' in defcustom

* lisp/wid-edit.el (group): Fix the :format spec.  (Bug#33566)

6 years agoproject-find-file: Move the common parent directory to the prompt
Dmitry Gutov [Sat, 29 Dec 2018 00:13:54 +0000 (02:13 +0200)]
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).

6 years agoFix NS fringe bitmap drawing bug (bug#33864)
Alan Third [Thu, 27 Dec 2018 16:23:32 +0000 (16:23 +0000)]
Fix NS fringe bitmap drawing bug (bug#33864)

* src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear
correctly.

6 years agoFix commentary in dispnew.c
Eli Zaretskii [Fri, 28 Dec 2018 14:28:51 +0000 (16:28 +0200)]
Fix commentary in dispnew.c

* src/dispnew.c (buffer_posn_from_coords): Fix inaccuracies in
the commentary.

6 years ago* lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf.
Michael Albinus [Fri, 28 Dec 2018 09:22:42 +0000 (10:22 +0100)]
* lisp/net/tramp-sh.el (tramp-set-remote-path): Handle platforms w/o getconf.

6 years agoImprove motivations in gomoku messages
Paul Eggert [Fri, 28 Dec 2018 05:55:01 +0000 (21:55 -0800)]
Improve motivations in gomoku messages

* lisp/play/gomoku.el (gomoku-terminate-game):
Don't make six-year-old children cry (Bug#33803).

6 years agoAccept 1-arg 'substring' calls in byte compiler
Paul Pogonyshev [Fri, 28 Dec 2018 04:10:47 +0000 (20:10 -0800)]
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.

6 years agoImprove accept-process-process doc
Paul Eggert [Thu, 27 Dec 2018 20:52:45 +0000 (12:52 -0800)]
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).

6 years agoUpdate from Gnulib
Paul Eggert [Thu, 27 Dec 2018 19:45:21 +0000 (11:45 -0800)]
Update from Gnulib

* build-aux/config.guess, lib/regcomp.c, lib/regex.c:
* lib/regex_internal.h, lib/regexec.c: Copy from Gnulib.

6 years agoAvoid assertion violation in directory-files
Eli Zaretskii [Thu, 27 Dec 2018 16:52:30 +0000 (18:52 +0200)]
Avoid assertion violation in directory-files

* src/dired.c (directory_files_internal): Make sure MATCH is
either nil or a string.  (Bug#33889)

6 years agoBump Tramp version to 2.4.1
Michael Albinus [Thu, 27 Dec 2018 11:24:24 +0000 (12:24 +0100)]
Bump Tramp version to 2.4.1

* doc/misc/trampver.texi:
* lisp/net/tramp.el:
* lisp/net/trampver.el: Change version to "2.4.1".

6 years agoFix last change of debug.el
Martin Rudalics [Thu, 27 Dec 2018 09:29:02 +0000 (10:29 +0100)]
Fix last change of debug.el

* lisp/emacs-lisp/debug.el (debug): In noninteractive calls do
the buffer text truncation in the debugger buffer.

6 years agoTone down diff-refine-removed and diff-refine-added as well
Dmitry Gutov [Wed, 26 Dec 2018 23:40:05 +0000 (01:40 +0200)]
Tone down diff-refine-removed and diff-refine-added as well

* lisp/vc/diff-mode.el (diff-refine-removed, diff-refine-added):
Change backgrounds in light backgrounds themes (bug#33567).

6 years agoPort message-checksum to bignums
Paul Eggert [Wed, 26 Dec 2018 09:11:58 +0000 (01:11 -0800)]
Port message-checksum to bignums

* lisp/gnus/message.el (message--rotate-fixnum-left): New function.
(message-checksum): Use it instead of assuming fixnum-only arithmetic.
This should fix Bug#33083.

6 years agoSet up debugger buffer earlier and fit window to it (Bug#32825)
Martin Rudalics [Wed, 26 Dec 2018 08:09:44 +0000 (09:09 +0100)]
Set up debugger buffer earlier and fit window to it (Bug#32825)

* lisp/emacs-lisp/debug.el (debug): Set up debugger buffer
before displaying it and advise 'display-buffer' to fit the
window to it (Bug#32825).

6 years agoTone down diff-added and diff-removed in light themes
Dmitry Gutov [Wed, 26 Dec 2018 00:28:10 +0000 (02:28 +0200)]
Tone down diff-added and diff-removed in light themes

* lisp/vc/diff-mode.el (diff-removed, diff-added): Tone down
light background colors (bug#33567).

6 years ago* lisp/isearch.el (isearch-done): Reset isearch-lazy-highlight-last-string
Juri Linkov [Tue, 25 Dec 2018 21:54:26 +0000 (23:54 +0200)]
* lisp/isearch.el (isearch-done): Reset isearch-lazy-highlight-last-string

to nil (bug#33838).
(isearch-lazy-highlight-new-loop)
(isearch-lazy-highlight-buffer-update): Don't set arg ELLIPSIS of
isearch-message to t to not reset the value of isearch-error.

6 years ago* lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): Add `*' to names
Juri Linkov [Tue, 25 Dec 2018 21:49:13 +0000 (23:49 +0200)]
* lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): Add `*' to names

of ephemeral buffers like in " *org-src-fontification:%s*" from
`org-src-font-lock-fontify-block'.  (Bug#33567)
(diff-header, diff-file-header): Tone down light background colors.