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

135277 commits

Author SHA1 Message Date
Stefan Monnier
ac1e5a5e2e * lisp/emacs-lisp/package.el: Improve generated foo-pkg.el
(package-generate-description-file): Make first line more informative.
(package-buffer-info): Include keywords, to more closely match
elpa.git's archive--metadata.
2019-02-08 14:16:31 -05:00
Glenn Morris
0f9940505f Merge from origin/emacs-26
0cd7b52 (origin/emacs-26) Minor improvements to do strings in callproc.c
b8c7017 Improve documentation of 'date-to-time' and 'parse-time-string'
46095a7 Fix downloading of URLs that end in a slash
3b60a0a * doc/misc/eww.texi (Basics): Fix eww keybindings.  (Bug#34291)
8e22025 Fix process-thread docstring
459b669 Fix failures of vc-find-revision with non-ASCII file names
e9ff190 * doc/lispref/tips.texi (Documentation Tips): Fix quotes.  (B...
3e49a08 ; * src/coding.h (struct coding_system): Fix a typo in a comm...
b657286 Add documentation for tabulated-list functions in the elisp m...
6e0f67b Fix URL in ucs-normalize.el
ce3ae1f * etc/PROBLEMS: Amend entry for profiler bug #34235 to mentio...

# Conflicts:
#	doc/lispref/os.texi
2019-02-08 09:20:40 -08:00
Glenn Morris
4f138318d3 ; Merge from origin/emacs-26
The following commit was skipped:

b51ac45 * make-dist: Remove references to src/stamp-h.in.
2019-02-08 09:18:08 -08:00
Glenn Morris
31ae9dc81b Merge from origin/emacs-26
9d87ba1 * etc/PROBLEMS: Mention profiler-report bug (Bug#34235).
2019-02-08 09:18:08 -08:00
Eli Zaretskii
0cd7b526a1 Minor improvements to do strings in callproc.c
* src/callproc.c (Fcall_process, Fcall_process_region): Minor
fixes to doc strings.  Suggested by Nicholas Drozd
<nicholasdrozd@gmail.com>.  (Bug#34274)
2019-02-08 10:46:00 +02:00
Eli Zaretskii
b8c70172f3 Improve documentation of 'date-to-time' and 'parse-time-string'
* doc/lispref/os.texi (Time Parsing): Document
'parse-time-string', and refer to it for the description of
the argument of 'date-to-time'.

* lisp/calendar/time-date.el (date-to-time): Refer in the doc
string to 'parse-time-string' for more information about the
format of the DATE argument.  (Bug#34303)
2019-02-08 10:33:13 +02:00
Robert Pluim
9e0d69b5a1 Unify three font info structures
* src/ftfont.h (struct font_info): New type, unifies similar types
from ftcrfont.c, ftfont.c and xftfont.c
* src/xftfont.c (struct xftfont_info): Remove, replace with struct
font_info.  Adjust all uses.
* src/ftcrfont.c (struct ftcrfont_info): Likewise.
* src/ftfont.c (struct ftfont_info): Likewise.
2019-02-08 09:05:11 +01:00
Eli Zaretskii
24905e9217 Minor fixes for last change
* etc/NEWS: Announce the change in EWW download behavior.

* lisp/net/eww.el (eww-download): Doc fix.  (Bug#34291)
2019-02-08 09:53:32 +02:00
Nick Drozd
51e6e0694a Download of URL in EWW falls back on current URL
* lisp/net/eww.el (eww-download): If there's no URL at point,
download the current URL instead.  Previous behavior was to
signal an error if there was no URL at point.  (Bug#34291)
* doc/misc/eww.texi (Basics): Update documentation.
2019-02-08 09:45:19 +02:00
Nick Drozd
46095a7dcb Fix downloading of URLs that end in a slash
* lisp/net/eww.el (eww-download-callback): Fix download URL
file name.  Previously this wasn't handling download URLs
correctly, resulting in all downloaded pages being named
"!", "!(1)", etc.  (Bug#34291)
2019-02-08 09:40:31 +02:00
Nick Drozd
3b60a0add7 * doc/misc/eww.texi (Basics): Fix eww keybindings. (Bug#34291) 2019-02-08 09:37:30 +02:00
Robert Pluim
8e22025f33 Fix process-thread docstring
* src/process.c (Fprocess_thread): Correct docstring.
2019-02-08 08:22:34 +01:00
Eli Zaretskii
459b669b08 Fix failures of vc-find-revision with non-ASCII file names
* lisp/vc/vc.el (vc-find-revision): Instead of binding
coding-system-for-write, make the buffer-file-coding-system of
the temporary buffer be no-conversion.  This avoids the
unwanted side effect of not encoding the command-line
arguments of the VCS commands invoked by the backend.
(Bug#34350)
2019-02-08 08:59:23 +02:00
Eli Zaretskii
e9ff190531 * doc/lispref/tips.texi (Documentation Tips): Fix quotes. (Bug#34372) 2019-02-07 19:49:57 +02:00
Eli Zaretskii
dbb1a8bc1a Minor fix for unexec builds.
* src/emacs.c (main): Fix assertions and logic for pdump
loading in builds that can both unexec and pdump.
2019-02-07 17:32:47 +02:00
Eli Zaretskii
0ceee95f85 ; Simplify last change. 2019-02-07 17:27:18 +02:00
Eli Zaretskii
005d8346b8 Avoid segfaults on MS-Windows in enexec'ed Emacs
* src/emacs.c (main) [WINDOWSNT]: Fix logic of using dynamic
heap in unexec case.  (Bug#34277)
2019-02-07 17:23:57 +02:00
Dmitry Gutov
3d6d8d795b Avoid unnecessary consing in project--files-in-directory
* lisp/progmodes/project.el (project--remote-file-names): New function.
(project--files-in-directory): Use it.
2019-02-07 14:22:47 +03:00
Ian Dunn
84b79f6a07 Add vc-hg-revert-switches
* lisp/vc/vc-hg.el (vc-hg-revert-switches): New option.
(vc-hg-revert): Use it.
2019-02-07 12:27:34 +03:00
Dmitry Gutov
5e627fa5f5 Rename multifile.el to fileloop.el
* lisp/multifile.el: Rename to fileloop.el as discussed in
https://lists.gnu.org/archive/html/emacs-devel/2018-12/msg00475.html.
Update symbol prefixes and all callers
2019-02-07 12:23:09 +03:00
Dmitry Gutov
1289ae999b ; project-ignores: Add some TODOs 2019-02-07 12:23:08 +03:00
Aurelien Aptel
b952385769 Revert "Fix typo in add-hook doc string"
This reverts commit 7fd2ad755e.
2019-02-07 09:57:15 +01:00
Juri Linkov
94b320849e Make window choice in xref commands configurable
Previously, it wasn't easy to tell xref.el commands like
xref-find-definitions or xref-find-definitions-other-window how to
choose a window for the *xref* buffer or how to find windows for
displaying the results after choosing a candidate.  This patch makes
that task easier, but keeps the current behaviour intact.

Co-authored-by: João Távora <joaotavora@gmail.com>

* lisp/progmodes/xref.el (xref--show-pos-in-buf): Simplify.
2019-02-06 22:50:02 +00:00
Robert Pluim
6ed9d0057d Add dwim function for inserting @ref variants
* lisp/textmodes/texinfo.el (texinfo-insert-dwim-@ref): New function.
Insert @ref variant based on surrounding context.
(texinfo-mode-map): Add binding for texinfo-insert-dwim-@ref.

* etc/NEWS: Describe new texinfo dwim reference functionality.
2019-02-06 18:59:01 +01:00
Eli Zaretskii
3e49a080e5 ; * src/coding.h (struct coding_system): Fix a typo in a comment. 2019-02-06 18:51:02 +02:00
Aurelien Aptel
7fd2ad755e Fix typo in add-hook doc string
* lisp/subr.el (add-hook): fix typo in doc string.
2019-02-06 17:48:29 +01:00
Eli Zaretskii
b7b0cc709e Unbreak interactive invocation of temacs on MS-Windows
* src/emacs.c (main) [WINDOWSNT]: Allow to invoke temacs
interactively without the --temacs= option.
2019-02-06 17:56:44 +02:00
Eli Zaretskii
a03de1e2a3 Prevent segfaults when running inside docker
* src/coding.c (syms_of_coding): New symbol Qus_ascii.
(reset_coding_after_pdumper_load): Call
set-safe-terminal-system-internal to set up
safe_terminal_coding after restoring from pdump file.
Reported by Philippe Vaucher <philippe.vaucher@gmail.com>.
2019-02-06 17:31:26 +02:00
Michael Albinus
19fbef549a Fix Bug#34196
* lisp/autorevert.el (auto-revert-buffers): Handle buffers with a
remote default-directory only, when they are connected.  (Bug#34196)

* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Set "connected" property.

* lisp/net/tramp.el (tramp-process-actions): Revert change from
2019-02-04.  Bug#34196 will be solved in autorevert.el.
2019-02-06 09:07:39 +01:00
Alex Branham
b657286a8c
Add documentation for tabulated-list functions in the elisp manual
* doc/lispref/modes.texi: Add documentation for
  'tabulated-list-delete-entry', 'tabulated-list-get-id',
  'tabulated-list-get-entry', 'tabulated-list-header-overlay-p',
  'tabulated-list-put-tag', and 'tabulated-list-set-col'.

Bug#21074
2019-02-05 14:49:10 -06:00
Robert Pluim
d087dcf140 Fix network stream tests
* test/lisp/net/network-stream-tests.el
(make-ipv6-tcp-server-with-unspecified-port): Skip if IPv6 is not available.
(make-ipv6-tcp-server-with-specified-port): Likewise.
(echo-server-with-local-ipv6): Likewise.
2019-02-05 15:50:03 +01:00
Glenn Morris
369d20559d * make-dist: Prefer a temporary manifest file.
This prevents the manifest cluttering up the build tree,
and possibly getting stale if --no-update is used.
2019-02-04 19:50:44 -08:00
Eli Zaretskii
ef17247fe9 Avoid segfaults due to image cache being cleared during redisplay
* src/xdisp.c (redisplay_internal): Set the
inhibit_clear_image_cache flag of a frame while its windows
are being redisplayed, and reset the flag after the call top
update_frame returns.
* src/image.c (clear_image_cache): Do nothing if the frame's
inhibit_clear_image_cache flag is set.  (Bug#34256)
* src/frame.h (struct frame): New flag inhibit_clear_image_cache.
2019-02-04 19:42:33 +02:00
Robert Pluim
f33a5dc947 Don't map imaps to 993 anymore except on old Windows versions
'open-network-stream' will do the imaps service lookup itself, and
using 993 forced the user to use the numeric value in .authinfo for
certificate lookups.

* lisp/gnus/nnimap.el (nnimap-map-port): Only do mapping for Windows
XP or earlier.
* etc/NEWS: Describe imaps mapping change.
2019-02-04 17:52:34 +01:00
Eli Zaretskii
f37000aeb2 Support (locale-info 'paper) on MS-Windows
* src/w32proc.c (LOCALE_IPAPERSIZE): Define if undefined.
(nl_langinfo): Support _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT
like glibc does.
* src/fns.c (Flocale_info): Update the doc string.

* nt/inc/langinfo.h: Add _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT
to the enumeration.
(_NL_PAPER_WIDTH, _NL_PAPER_HEIGHT): Define namesake macros.
* nt/mingw-cfg.site (emacs_cv_langinfo__nl_paper_width): Set
to 'yes'.

* doc/lispref/nonascii.texi (Locales): Update the
documentation of 'locale-info' for the argument of 'paper'.

* etc/NEWS: Update the locale-info entry.
2019-02-04 18:05:59 +02:00
Federico Tedin
d5f629d193 Allow doc-view to open password-protected PDF files (bug#33684)
* lisp/doc-view.el (doc-view-ghostscript-options): Removed "-sDEVICE"
option.
(doc-view-ghostscript-device): New customizable variable, passed as
"-sDEVICE" option to GhostScript.
(doc-view-pdf-password-protected-ghostscript-p): New function.
(doc-view-pdf->png-converter-ghostscript): Can now open
password-protected PDF files.
(doc-view-pdfdraw-program-subcommand): New function.
(doc-view-pdf-password-protected-pdfdraw-p): New function.
(doc-view-pdf->png-converter-mupdf): Can now open password-protected
PDF files.
* etc/NEWS: Mention new doc-view-mode feature.
2019-02-04 16:47:00 +01:00
Michael Albinus
d6f430cb88 Fix Bug#34196
* lisp/net/tramp.el (tramp-process-actions): Disable `global-auto-revert-mode'
temporarily.  (Bug#34196)
2019-02-04 16:03:43 +01:00
Michael Albinus
7cdf4004c8 Improve Tramp host name completion
* lisp/net/tramp-rclone.el (tramp-default-host-alist): Add empty host.

* lisp/net/tramp.el (tramp-parse-auth-sources): Require :port.
2019-02-04 16:02:46 +01:00
Robert Pluim
49f6243027 Use IPv6 localhost when family is 'ipv6
This fixes Bug#34193

* src/process.c (Fmake_network_process): Explicitly use ::1 when
using IPv6 with 'local.  Update docstring.

* test/lisp/net/network-stream-tests.el
(make-ipv6-tcp-server-with-unspecified-port):
(make-ipv6-tcp-server-with-specified-port): Test creating ipv6
local server.
(make-server): Add optional family argument, default ipv4
(echo-server-with-local-ipv4): Test connecting to 'local ipv4
(echo-server-with-local-ipv6): Test connecting to 'local ipv6

* doc/lispref/processes.texi (Network Processes): Describe
behavior when using 'local.

* etc/NEWS: Document new 'make-network-process' behavior when
connecting to 'local with ipv6.
2019-02-04 10:06:04 +01:00
Juri Linkov
4633b0ef3f * lisp/tar-mode.el (tar-extract): Call tar--try-jka-compr (bug#34251)
* lisp/tar-mode.el (tar--try-jka-compr): New function copied from
archive-try-jka-compr.

* lisp/arc-mode.el (archive-try-jka-compr): Set buffer-multibyte to t
instead of let-binding coding-system-for-read to 'no-conversion.

* test/data/decompress/tg.tar.gz:
* test/data/decompress/zg.zip: New fixtures.

* test/lisp/arc-mode-tests.el (arc-mode-test-zip-extract-gz):
* test/lisp/tar-mode-tests.el (tar-mode-test-tar-extract-gz): New tests.

* test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock)
(diff-mode-test-font-lock-syntax-one-line): Skip unless shell and
diff executables are found.
2019-02-03 23:00:29 +02:00
Jean-Christophe Helary
6e0f67b2fc Fix URL in ucs-normalize.el
* lisp/international/ucs-normalize.el: Fix URL of the HFS
normalization reference.  (Bug#34300)
2019-02-03 19:03:41 +02:00
Alan Mackenzie
ce3ae1f8d3 * etc/PROBLEMS: Amend entry for profiler bug #34235 to mention kernel 4.14.97 2019-02-03 11:38:19 +00:00
Michael Albinus
b32ac17c32 Work on accept-process-output in Tramp
* lisp/net/tramp.el (tramp-accept-process-output): Rework timer
handling.
(tramp-call-process): Adapt VEC if nil.
(tramp-interrupt-process): Use `tramp-accept-process-output'.
(tramp-process-lines): New defun.
* lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
* lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): Use it.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
Use timeout 0 in `tramp-accept-process-output'.

* test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Move up.
(tramp-test29-start-file-process, tramp-test30-make-process)
(tramp-test32-shell-command)
(tramp--test-shell-command-to-string-asynchronously): Use it.
(tramp-test35-remote-path): Suppress warning.
(tramp--test-asynchronous-requests-timeout): New defconst.
(tramp-test43-asynchronous-requests): Skip if not the only test.
Use `tramp--test-asynchronous-requests-timeout'.
Remove instrumentation.  Use `start-process-shell-command' for
watchdog.  Add timeout in timer function.  Print status messages.
Remove file operations from sentinel.  Suppress timers in
`accept-process-output'.
2019-02-03 11:07:36 +01:00
Paul Eggert
713eece307 Support (locale-info 'paper) on GNU platforms
* configure.ac (HAVE_LANGINFO__NL_PAPER_WIDTH): New macro.
* src/fns.c (Flocale_info) [HAVE_LANGINFO__NL_PAPER_WIDTH]:
Get paper width and height from locale.
2019-02-02 13:25:00 -08:00
Juri Linkov
42c8399059 * test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock): New test.
(diff-mode-test-font-lock-syntax-one-line): New test for one line.

* test/data/vc/diff-mode/hello_world.c:
* test/data/vc/diff-mode/hello_world_1.c:
* test/data/vc/diff-mode/hello_emacs.c:
* test/data/vc/diff-mode/hello_emacs_1.c: New fixtures.

* lisp/vc/diff-mode.el (diff-syntax-fontify): Move remove-overlays
from diff-syntax-fontify-hunk.  (Bug#33567)
(diff-syntax-fontify-hunk): Remove VISIT arg from insert-file-contents.
2019-02-02 23:23:16 +02:00
Paul Eggert
adc31c6bdc Update from Gnulib
This incorporates:
2019-02-02 dtoastr, ftoastr, ldtoastr: port to c-strtod changes
2019-02-01 c-strtod, c-strtold: use the bug fixes
2019-01-30 strtold: New module
* doc/misc/texinfo.tex, lib/ftoastr.c, lib/regexec.c, lib/stdlib.in.h:
* m4/stdlib_h.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* m4/c-strtod.m4: Remove.
2019-02-02 13:15:10 -08:00
Paul Eggert
6f52478e0c Fix unlikely user-full-name integer overflow
* src/editfns.c (Fuser_full_name):
Don’t assume uid fits into fixnum.
2019-02-02 10:24:12 -08:00
Eli Zaretskii
c73d18ac42 Prevent segfault in bootstrap-emacs on MinGW
* src/emacs.c (main) [WINDOWSNT]: Fix logic of determining by
argv[0] whether to use the static heap.  (Bug#34277)
2019-02-02 17:12:13 +02:00
Felicián Németh
2f55b971b4 Fix Bug#34221
* lisp/progmodes/project.el (project--files-in-directory):
Support remote files.  (Bug#34221)
2019-02-02 13:22:53 +01:00
Martin Rudalics
30c09955f6 Fix window splitting behavior of 'display-buffer-at-bottom'
* lisp/window.el (display-buffer-at-bottom): Never split an
arbitrary bottom window.  Try to split the frame's main
window instead (Bug#33870).
2019-02-02 10:16:45 +01:00