1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

134959 commits

Author SHA1 Message Date
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
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
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
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
Paul Eggert
ee7514b91b Update from Gnulib
* build-aux/config.guess, lib/regcomp.c, lib/regex.c:
* lib/regex_internal.h, lib/regexec.c: Copy from Gnulib.
2018-12-27 11:45:47 -08:00
Eli Zaretskii
a8576aba8f Avoid assertion violation in directory-files
* src/dired.c (directory_files_internal): Make sure MATCH is
either nil or a string.  (Bug#33889)
2018-12-27 18:52:30 +02:00
Michael Albinus
13dfe15ef4 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".
2018-12-27 12:24:24 +01:00
Martin Rudalics
091450811b Fix last change of debug.el
* lisp/emacs-lisp/debug.el (debug): In noninteractive calls do
the buffer text truncation in the debugger buffer.
2018-12-27 10:29:02 +01:00
Dmitry Gutov
806ae9fc48 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).
2018-12-27 01:40:05 +02:00
Paul Eggert
b9c0ea6a6b 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.
2018-12-26 01:12:32 -08:00
Martin Rudalics
bbc7015e7b 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).
2018-12-26 09:09:44 +01:00
Dmitry Gutov
092b36dbd6 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).
2018-12-26 02:28:10 +02:00
Juri Linkov
4fd19c236f * 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.
2018-12-25 23:54:26 +02:00
Juri Linkov
f360cf9843 * 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.
2018-12-25 23:49:13 +02:00
Dmitry Gutov
9916410fa8 Prepend 'rubocop' with 'bundle exec' when appropriate 2018-12-25 18:23:01 +02:00
Dmitry Gutov
e533848dd3 ; Documentation updates 2018-12-25 17:32:10 +02:00
Dmitry Gutov
a361cc88a1 Use rubocop --lint when no .rubocop.yml
* lisp/progmodes/ruby-mode.el (ruby-flymake-rubocop): When no
config file found, only run lint cops (bug#31760).
2018-12-25 17:16:22 +02:00
Michael Albinus
9fe788a1fa Provide tramp-adb-handle-make-process
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
Add `tramp-adb-handle-make-process' and
`tramp-handle-start-file-process'.
(tramp-adb-handle-make-process): New defun, derived from
`tramp-adb-handle-start-file-process'.  (Bug#28691)
2018-12-25 11:08:30 +01:00
Michael Albinus
a94ac604d8 Provide tramp-sh-handle-make-process
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
Add `tramp-sh-handle-make-process' and
`tramp-handle-start-file-process'.
(tramp-sh-handle-make-process): New defun, derived from
`tramp-sh-handle-start-file-process'.  (Bug#28691)

* lisp/net/tramp.el (tramp-handle-start-file-process): New defun.

* test/lisp/net/tramp-tests.el (tramp-test30-make-process):
New test.
(tramp-test31-interrupt-process, tramp-test32-shell-command)
(tramp-test33-environment-variables)
(tramp-test33-environment-variables-and-port-numbers)
(tramp-test34-explicit-shell-file-name, tramp-test35-exec-path)
(tramp-test35-remote-path, tramp-test36-vc-registered)
(tramp-test37-make-auto-save-file-name)
(tramp-test38-find-backup-file-name)
(tramp-test39-make-nearby-temp-file)
(tramp-test40-special-characters)
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls, tramp-test41-utf8)
(tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
(tramp-test41-utf8-with-ls, tramp-test42-file-system-info)
(tramp-test43-asynchronous-requests, tramp-test44-auto-load)
(tramp-test44-delay-load, tramp-test44-recursive-load)
(tramp-test44-remote-load-path, tramp-test45-unload): Rename.
2018-12-24 14:28:31 +01:00
Dmitry Gutov
fd244507c5 xref-goto-xref: Highlight the exact symbol after the jump
* lisp/progmodes/xref.el (xref-goto-xref): Bind
'xref--current-item' to highlight the exact symbol after the jump
and not the whole line.
2018-12-24 05:11:02 +02:00
Dmitry Gutov
d4c1518474 ; Don't require semantic/symref, it's unnecessary now 2018-12-24 04:37:24 +02:00
Dmitry Gutov
48a28f8e38 execute-extended-command: Skip waiting in more cases
* lisp/simple.el (execute-extended-command): Don't wait when
there's no binding the current command, and the user doesn't want
to see "shorter" suggestions, or TYPED is nil anyway.
2018-12-24 04:36:36 +02:00
Eli Zaretskii
a0108f7871 ; * etc/HELLO: Remove stray x-charset. (Bug#33851) 2018-12-23 20:27:12 +02:00
Stephen Leake
9578c2aa22 Fix a simple bug in display-buffer-use-some-frame
* lisp/window.el (display-buffer-use-some-frame): Simplify the
predicate, fix TYPE arg to window--display-buffer.
2018-12-23 10:23:26 -08:00
Michael Albinus
492ab11368 ; Add +++ to recent entry in etc/NEWS 2018-12-23 09:51:22 +01:00
Michael Albinus
04c768b95b ; Fix wording in etc/NEWS 2018-12-23 09:50:27 +01:00
Michael Albinus
3ea89acac2 Handle `make-process' in Tramp and ange-ftp
* doc/lispref/processes.texi (Asynchronous Processes):
Explain, that not all file name handlers support `make-process'.

* lisp/net/ange-ftp.el:
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
* lisp/net/tramp.el (tramp-file-name-for-operation): Add `make-process'.

* lisp/vc/ediff-util.el:
* src/process.c:
* test/src/process-tests.el: Use "file name handler" consequently.
2018-12-23 09:48:05 +01:00
Michael Albinus
0f9be72701 Clarify thread switching while waiting for process output
* doc/lispref/threads.texi (Threads): Clarify, that thread
switching happens when waiting for process output from
asynchronous processes.
2018-12-23 09:04:37 +01:00
Juri Linkov
072b4c679d * lisp/simple.el (next-error-no-select): Use save-selected-window.
Let-bind display alist of display-buffer-overriding-action to
`(inhibit-same-window . t)'.  (Bug#32607)
2018-12-23 01:52:25 +02:00
Philipp Stephani
039be4e025 Add file name handler support for 'make-process' (Bug#28691)
* src/process.c (Fmake_process): Add new keyword argument
':file-handler'.
(syms_of_process) <make-process, :file-handler>: Define new symbols.

* lisp/files.el (file-name-non-special): Add support for
'make-process'.

* test/src/process-tests.el (make-process/file-handler/found)
(make-process/file-handler/not-found)
(make-process/file-handler/disable): New unit tests.
(process-tests--file-handler): New helper function.

* test/lisp/files-tests.el
(files-tests-file-name-non-special-make-process): New unit test.

* doc/lispref/files.texi (Magic File Names): Document that
'make-process' can invoke file name handlers.

* doc/lispref/processes.texi (Asynchronous Processes): Document
':file-handlers' argument to 'make-process'.

* etc/NEWS (Lisp Changes in Emacs 27.1): Mention new
:file-handler argument for 'make-process'.
2018-12-22 22:10:48 +01:00
Eli Zaretskii
b41789f31f * etc/HELLO: Add missing charset properties for Japanese and Korean. 2018-12-22 22:41:53 +02:00
Charles A. Roelli
898a0234c9 Macroexpand before evaluating in eval-expression (bis)
* lisp/simple.el (eval-expression): Macroexpand before
evaluating.  This repeats the fix made for Bug#20730 in
another branch of the code a few lines down.
2018-12-22 17:29:37 +01:00
Charles A. Roelli
24ddea074a Improve process doc. with respect to handling of large input (Bug#33191)
* src/process.c (Fprocess_send_region, Fprocess_send_string):
Document that process input longer than the process input
buffer may be split into bunches.  Remove an outdated
reference to a 500 character split boundary.
* doc/lispref/processes.texi (Asynchronous Processes): Remove
mention of "stray character injections" in PTY processes.  See
also the comment about ICANON in src/sysdep.c, function
child_setup_tty.
2018-12-22 17:14:36 +01:00
Thomas Fitzsimmons
d2ff6627f9 ldap.el: Do not set process-connection-type
* lisp/net/ldap.el (ldap-search-internal): Leave
process-connection-type at its default value.  (Bug#33050)
2018-12-22 09:59:39 -05:00
Michael Albinus
2931016831 ; Cosmetic changes in etc/NEWS 2018-12-22 14:18:59 +01:00
Michael Albinus
36c270daaf ; Cosmetic changes to etc/NEWS 2018-12-22 14:07:49 +01:00
Michael Albinus
88b41c40d0 Use "file name handler" consequently
* doc/lispref/files.texi:
* doc/lispref/processes.texi:
* doc/misc/ediff.texi:
* lisp/simple.el:
* lisp/vc/ediff-ptch.el:
* src/buffer.c:
* src/dired.c:
* src/fileio.c:
* src/image.c:
* src/insdel.c:
* src/w32fns.c: Use "file name handler" consequently.
2018-12-22 13:57:54 +01:00
Terrence Brannon
85516b8cc8 Minor copyedits in landmark.el
* lisp/obsolete/landmark.el: Fix author's email and commentary.
2018-12-22 12:46:15 +02:00