aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2019-02-08 09:20:40 -0800
committerGlenn Morris2019-02-08 09:20:40 -0800
commit0f9940505f87de74c86de17e8a7bf793d9d8dda4 (patch)
tree0215c1cc88041710fc32a2d17818e8c66c490ca7
parent4f138318d3553162ccc6d0e4554456a65324ec25 (diff)
parent0cd7b526a14ead6cbe78df481a2fd975252bb9ac (diff)
downloademacs-0f9940505f87de74c86de17e8a7bf793d9d8dda4.tar.gz
emacs-0f9940505f87de74c86de17e8a7bf793d9d8dda4.zip
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
-rw-r--r--doc/lispref/modes.texi59
-rw-r--r--doc/lispref/os.texi23
-rw-r--r--doc/lispref/tips.texi13
-rw-r--r--doc/misc/eww.texi2
-rw-r--r--etc/PROBLEMS4
-rw-r--r--lisp/calendar/time-date.el1
-rw-r--r--lisp/international/ucs-normalize.el2
-rw-r--r--lisp/net/eww.el2
-rw-r--r--lisp/vc/vc.el7
-rw-r--r--src/callproc.c5
-rw-r--r--src/coding.h2
-rw-r--r--src/process.c2
12 files changed, 106 insertions, 16 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 143cc7c5827..6349dec98b8 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1121,6 +1121,65 @@ that tags placed via @code{tabulated-list-put-tag} will not be removed
1121from entries that haven't changed (normally all tags are removed). 1121from entries that haven't changed (normally all tags are removed).
1122@end defun 1122@end defun
1123 1123
1124@defun tabulated-list-delete-entry
1125This function deletes the entry at point.
1126
1127It returns a list @code{(@var{id} @var{cols})}, where @var{id} is the
1128ID of the deleted entry and @var{cols} is a vector of its column
1129descriptors. It moves point to the beginning of the current line. It
1130returns @code{nil} if there is no entry at point.
1131
1132Note that this function only changes the buffer contents; it does not
1133alter @code{tabulated-list-entries}.
1134@end defun
1135
1136@defun tabulated-list-get-id &optional pos
1137This @code{defsubst} returns the ID object from
1138@code{tabulated-list-entries} (if that is a list) or from the list
1139returned by @code{tabulated-list-entries} (if it is a function). If
1140omitted or @code{nil}, @var{pos} defaults to point.
1141@end defun
1142
1143@defun tabulated-list-get-entry &optional pos
1144This @code{defsubst} returns the entry object from
1145@code{tabulated-list-entries} (if that is a list) or from the list
1146returned by @code{tabulated-list-entries} (if it is a function). This
1147will be a vector for the ID at @var{pos}. If there is no entry at
1148@var{pos}, then the function returns @code{nil}.
1149@end defun
1150
1151@vindex tabulated-list-use-header-line
1152@defun tabulated-list-header-overlay-p &optional POS
1153This @code{defsubst} returns non-nil if there is a fake header at
1154@var{pos}. A fake header is used if
1155@code{tabulated-list-use-header-line} is @code{nil} to put the column
1156names at the beginning of the buffer. If omitted or @code{nil},
1157@var{pos} defaults to @code{point-min}.
1158@end defun
1159
1160@vindex tabulated-list-padding
1161@defun tabulated-list-put-tag tag &optional advance
1162This function puts @var{tag} in the padding area of the current line.
1163The padding area can be empty space at the beginning of the line, the
1164width of which is governed by @code{tabulated-list-padding}.
1165@var{tag} should be a string, with a length less than or equal to
1166@code{tabulated-list-padding}. If @var{advance} is non-nil, this
1167function advances point by one line.
1168@end defun
1169
1170@defun tabulated-list-set-col col desc &optional change-entry-data
1171This function changes the tabulated list entry at point, setting
1172@var{col} to @var{desc}. @var{col} is the column number to change, or
1173the name of the column to change. @var{desc} is the new column
1174descriptor, which is inserted via @code{tabulated-list-print-col}.
1175
1176If @var{change-entry-data} is non-nil, this function modifies the
1177underlying data (usually the column descriptor in the list
1178@code{tabulated-list-entries}) by setting the column descriptor of the
1179vector to @code{desc}.
1180@end defun
1181
1182
1124@node Generic Modes 1183@node Generic Modes
1125@subsection Generic Modes 1184@subsection Generic Modes
1126@cindex generic mode 1185@cindex generic mode
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 6fae93717a2..9766b8321fa 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -1544,7 +1544,28 @@ Time values include @code{nil}, numbers, and Lisp timestamps
1544 1544
1545@defun date-to-time string 1545@defun date-to-time string
1546This function parses the time-string @var{string} and returns the 1546This function parses the time-string @var{string} and returns the
1547corresponding Lisp timestamp. 1547corresponding Lisp timestamp. The argument @var{string} should represent
1548a date-time, and should be in one of the forms recognized by
1549@code{parse-time-string} (see below). This function assumes the GMT
1550timezone if @var{string} lacks an explicit timezone information.
1551@end defun
1552
1553@defun parse-time-string string
1554This function parses the time-string @var{string} into a list of the
1555following form:
1556
1557@example
1558(@var{sec} @var{min} @var{hour} @var{day} @var{mon} @var{year} @var{dow} @var{dst} @var{tz})
1559@end example
1560
1561@noindent
1562The format of this list is the same as what @code{decode-time} accepts
1563(@pxref{Time Conversion}), and is described in more detail there. Any
1564element that cannot be determined from the input will be set to
1565@code{nil}. The argument @var{string} should resemble an RFC 2822 or
1566ISO 8601 string, like ``Fri, 25 Mar 2016 16:24:56 +0100'' or
1567``1998-09-12T12:21:54-0200'', but this function will attempt to parse
1568less well-formed time strings as well.
1548@end defun 1569@end defun
1549 1570
1550@defun format-time-string format-string &optional time zone 1571@defun format-time-string format-string &optional time zone
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index bb701c4930a..d41fe825729 100644
--- a/doc/lispref/tips.texi
+++ b/doc/lispref/tips.texi
@@ -679,10 +679,15 @@ starting double-quote is not part of the string!
679@cindex curly quotes 679@cindex curly quotes
680@cindex curved quotes 680@cindex curved quotes
681When a documentation string refers to a Lisp symbol, write it as it 681When a documentation string refers to a Lisp symbol, write it as it
682would be printed (which usually means in lower case), surrounding 682would be printed (which usually means in lower case), surrounding it
683it with curved single quotes (@t{‘} and @t{’}). There are 683with curved single quotes (@t{‘..’}). There are two exceptions: write
684two exceptions: write @code{t} and @code{nil} without surrounding 684@code{t} and @code{nil} without surrounding punctuation. For example:
685punctuation. For example: @samp{CODE can be ‘lambda’, nil, or t}. 685
686@example
687 CODE can be ‘lambda’, nil, or t.
688@end example
689
690@noindent
686@xref{Quotation Marks,,, emacs, The GNU Emacs Manual}, for how to 691@xref{Quotation Marks,,, emacs, The GNU Emacs Manual}, for how to
687enter curved single quotes. 692enter curved single quotes.
688 693
diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi
index 3048893372e..d7dc32846e3 100644
--- a/doc/misc/eww.texi
+++ b/doc/misc/eww.texi
@@ -118,7 +118,7 @@ variable-pitch fonts or not. This sets the @code{shr-use-fonts} variable.
118@findex eww-toggle-colors 118@findex eww-toggle-colors
119@findex shr-use-colors 119@findex shr-use-colors
120@kindex F 120@kindex F
121 The @kbd{C} command (@code{eww-toggle-colors}) toggles whether to use 121 The @kbd{M-C} command (@code{eww-toggle-colors}) toggles whether to use
122HTML-specified colors or not. This sets the @code{shr-use-colors} variable. 122HTML-specified colors or not. This sets the @code{shr-use-colors} variable.
123 123
124@findex eww-download 124@findex eww-download
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index 7be0e34397c..785e6e18afa 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -1836,8 +1836,8 @@ term/xterm.el) for more details.
1836*** GNU/Linux: profiler-report outputs nothing. 1836*** GNU/Linux: profiler-report outputs nothing.
1837 1837
1838A few versions of the Linux kernel have timer bugs that break CPU 1838A few versions of the Linux kernel have timer bugs that break CPU
1839profiling; see Bug#34235. To fix the problem, upgrade to kernel 1839profiling; see Bug#34235. To fix the problem, upgrade to one of the
1840versions 4.19.19 or 4.20.6, or later. 1840kernel versions 4.14.97, 4.19.19, or 4.20.6, or later.
1841 1841
1842*** GNU/Linux: Process output is corrupted. 1842*** GNU/Linux: Process output is corrupted.
1843 1843
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el
index 11ad92e7162..6fb0f22427a 100644
--- a/lisp/calendar/time-date.el
+++ b/lisp/calendar/time-date.el
@@ -148,6 +148,7 @@ it is assumed that PICO was omitted and should be treated as zero."
148;; values. timezone-make-date-arpa-standard should help. 148;; values. timezone-make-date-arpa-standard should help.
149(defun date-to-time (date) 149(defun date-to-time (date)
150 "Parse a string DATE that represents a date-time and return a time value. 150 "Parse a string DATE that represents a date-time and return a time value.
151DATE should be in one of the forms recognized by `parse-time-string'.
151If DATE lacks timezone information, GMT is assumed." 152If DATE lacks timezone information, GMT is assumed."
152 (condition-case err 153 (condition-case err
153 (apply 'encode-time (parse-time-string date)) 154 (apply 'encode-time (parse-time-string date))
diff --git a/lisp/international/ucs-normalize.el b/lisp/international/ucs-normalize.el
index e212e14671e..9d55470d948 100644
--- a/lisp/international/ucs-normalize.el
+++ b/lisp/international/ucs-normalize.el
@@ -30,7 +30,7 @@
30;; 30;;
31;; HFS-Normalization: 31;; HFS-Normalization:
32;; Reference: 32;; Reference:
33;; http://developer.apple.com/technotes/tn/tn1150.html 33;; https://developer.apple.com/library/archive/technotes/tn/tn1150.html
34;; 34;;
35;; HFS Normalization excludes following area for decomposition. 35;; HFS Normalization excludes following area for decomposition.
36;; 36;;
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index a3f22aeb8a0..555b3bd5917 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1544,7 +1544,7 @@ Use link at point if there is one, else the current page's URL."
1544(defun eww-download-callback (status url) 1544(defun eww-download-callback (status url)
1545 (unless (plist-get status :error) 1545 (unless (plist-get status :error)
1546 (let* ((obj (url-generic-parse-url url)) 1546 (let* ((obj (url-generic-parse-url url))
1547 (path (car (url-path-and-query obj))) 1547 (path (directory-file-name (car (url-path-and-query obj))))
1548 (file (eww-make-unique-file-name 1548 (file (eww-make-unique-file-name
1549 (eww-decode-url-file-name (file-name-nondirectory path)) 1549 (eww-decode-url-file-name (file-name-nondirectory path))
1550 eww-download-directory))) 1550 eww-download-directory)))
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index e39d3d8b37c..a5c866d7503 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1996,10 +1996,13 @@ Saves the buffer to the file."
1996 (with-current-buffer filebuf 1996 (with-current-buffer filebuf
1997 (let ((failed t)) 1997 (let ((failed t))
1998 (unwind-protect 1998 (unwind-protect
1999 (let ((coding-system-for-read 'no-conversion) 1999 (let ((coding-system-for-read 'no-conversion))
2000 (coding-system-for-write 'no-conversion))
2001 (with-temp-file filename 2000 (with-temp-file filename
2002 (let ((outbuf (current-buffer))) 2001 (let ((outbuf (current-buffer)))
2002 ;; We will read the backend's output with no
2003 ;; conversions, so we should also save the
2004 ;; temporary file with no encoding conversions.
2005 (setq buffer-file-coding-system 'no-conversion)
2003 ;; Change buffer to get local value of 2006 ;; Change buffer to get local value of
2004 ;; vc-checkout-switches. 2007 ;; vc-checkout-switches.
2005 (with-current-buffer filebuf 2008 (with-current-buffer filebuf
diff --git a/src/callproc.c b/src/callproc.c
index d4558387cfc..a3d09609d7b 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -237,7 +237,7 @@ DESTINATION can also have the form (REAL-BUFFER STDERR-FILE); in that case,
237 t (mix it with ordinary output), or a file name string. 237 t (mix it with ordinary output), or a file name string.
238 238
239Fourth arg DISPLAY non-nil means redisplay buffer as output is inserted. 239Fourth arg DISPLAY non-nil means redisplay buffer as output is inserted.
240Remaining arguments are strings passed as command arguments to PROGRAM. 240Remaining arguments ARGS are strings passed as command arguments to PROGRAM.
241 241
242If executable PROGRAM can't be found as an executable, `call-process' 242If executable PROGRAM can't be found as an executable, `call-process'
243signals a Lisp error. `call-process' reports errors in execution of 243signals a Lisp error. `call-process' reports errors in execution of
@@ -1033,7 +1033,8 @@ STDERR-FILE may be nil (discard standard error output),
1033t (mix it with ordinary output), or a file name string. 1033t (mix it with ordinary output), or a file name string.
1034 1034
1035Sixth arg DISPLAY non-nil means redisplay buffer as output is inserted. 1035Sixth arg DISPLAY non-nil means redisplay buffer as output is inserted.
1036Remaining args are passed to PROGRAM at startup as command args. 1036Remaining arguments ARGS are passed to PROGRAM at startup as command-line
1037arguments.
1037 1038
1038If BUFFER is 0, `call-process-region' returns immediately with value nil. 1039If BUFFER is 0, `call-process-region' returns immediately with value nil.
1039Otherwise it waits for PROGRAM to terminate 1040Otherwise it waits for PROGRAM to terminate
diff --git a/src/coding.h b/src/coding.h
index 337ec46315e..58e12d6176a 100644
--- a/src/coding.h
+++ b/src/coding.h
@@ -450,7 +450,7 @@ struct coding_system
450 450
451 unsigned char *safe_charsets; 451 unsigned char *safe_charsets;
452 452
453 /* How may heading bytes we can skip for decoding. This is set to 453 /* How many heading bytes we can skip for decoding. This is set to
454 -1 in setup_coding_system, and updated by detect_coding. So, 454 -1 in setup_coding_system, and updated by detect_coding. So,
455 when this is equal to the byte length of the text being 455 when this is equal to the byte length of the text being
456 converted, we can skip the actual conversion process except for 456 converted, we can skip the actual conversion process except for
diff --git a/src/process.c b/src/process.c
index 9502ef461e8..802ac026249 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1360,7 +1360,7 @@ If THREAD is nil, the process is unlocked. */)
1360 1360
1361DEFUN ("process-thread", Fprocess_thread, Sprocess_thread, 1361DEFUN ("process-thread", Fprocess_thread, Sprocess_thread,
1362 1, 1, 0, 1362 1, 1, 0,
1363 doc: /* Ret the locking thread of PROCESS. 1363 doc: /* Return the locking thread of PROCESS.
1364If PROCESS is unlocked, this function returns nil. */) 1364If PROCESS is unlocked, this function returns nil. */)
1365 (Lisp_Object process) 1365 (Lisp_Object process)
1366{ 1366{