diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/calendar/calendar.el | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/gv.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/regexp-opt.el | 46 | ||||
| -rw-r--r-- | lisp/emacs-lisp/seq.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/etags.el | 2 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 7 |
6 files changed, 45 insertions, 20 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index ccdae484fa6..7a2b3fe1563 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -905,7 +905,7 @@ styles." | |||
| 905 | '(propertize (format "%s %d" (calendar-month-name month) year) | 905 | '(propertize (format "%s %d" (calendar-month-name month) year) |
| 906 | 'font-lock-face 'calendar-month-header) | 906 | 'font-lock-face 'calendar-month-header) |
| 907 | "Default format for calendar month headings with the American date style. | 907 | "Default format for calendar month headings with the American date style. |
| 908 | Normally you should not customize this, but `calender-month-header'." | 908 | Normally you should not customize this, but `calendar-month-header'." |
| 909 | :group 'calendar | 909 | :group 'calendar |
| 910 | :risky t | 910 | :risky t |
| 911 | :type 'sexp | 911 | :type 'sexp |
| @@ -915,7 +915,7 @@ Normally you should not customize this, but `calender-month-header'." | |||
| 915 | '(propertize (format "%s %d" (calendar-month-name month) year) | 915 | '(propertize (format "%s %d" (calendar-month-name month) year) |
| 916 | 'font-lock-face 'calendar-month-header) | 916 | 'font-lock-face 'calendar-month-header) |
| 917 | "Default format for calendar month headings with the European date style. | 917 | "Default format for calendar month headings with the European date style. |
| 918 | Normally you should not customize this, but `calender-month-header'." | 918 | Normally you should not customize this, but `calendar-month-header'." |
| 919 | :group 'calendar | 919 | :group 'calendar |
| 920 | :risky t | 920 | :risky t |
| 921 | :type 'sexp | 921 | :type 'sexp |
| @@ -925,7 +925,7 @@ Normally you should not customize this, but `calender-month-header'." | |||
| 925 | '(propertize (format "%d %s" year (calendar-month-name month)) | 925 | '(propertize (format "%d %s" year (calendar-month-name month)) |
| 926 | 'font-lock-face 'calendar-month-header) | 926 | 'font-lock-face 'calendar-month-header) |
| 927 | "Default format for calendar month headings with the ISO date style. | 927 | "Default format for calendar month headings with the ISO date style. |
| 928 | Normally you should not customize this, but `calender-month-header'." | 928 | Normally you should not customize this, but `calendar-month-header'." |
| 929 | :group 'calendar | 929 | :group 'calendar |
| 930 | :risky t | 930 | :risky t |
| 931 | :type 'sexp | 931 | :type 'sexp |
diff --git a/lisp/emacs-lisp/gv.el b/lisp/emacs-lisp/gv.el index 93572e5e658..fa7ac64bf04 100644 --- a/lisp/emacs-lisp/gv.el +++ b/lisp/emacs-lisp/gv.el | |||
| @@ -536,7 +536,7 @@ This macro only makes sense when used in a place." | |||
| 536 | "Return a reference to PLACE. | 536 | "Return a reference to PLACE. |
| 537 | This is like the `&' operator of the C language. | 537 | This is like the `&' operator of the C language. |
| 538 | Note: this only works reliably with lexical binding mode, except for very | 538 | Note: this only works reliably with lexical binding mode, except for very |
| 539 | simple PLACEs such as (function-symbol \\='foo) which will also work in dynamic | 539 | simple PLACEs such as (symbol-function \\='foo) which will also work in dynamic |
| 540 | binding mode." | 540 | binding mode." |
| 541 | (let ((code | 541 | (let ((code |
| 542 | (gv-letplace (getter setter) place | 542 | (gv-letplace (getter setter) place |
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el index cf6653046b5..ef752858a4c 100644 --- a/lisp/emacs-lisp/regexp-opt.el +++ b/lisp/emacs-lisp/regexp-opt.el | |||
| @@ -86,18 +86,44 @@ | |||
| 86 | ;;;###autoload | 86 | ;;;###autoload |
| 87 | (defun regexp-opt (strings &optional paren) | 87 | (defun regexp-opt (strings &optional paren) |
| 88 | "Return a regexp to match a string in the list STRINGS. | 88 | "Return a regexp to match a string in the list STRINGS. |
| 89 | Each string should be unique in STRINGS and should not contain any regexps, | 89 | Each string should be unique in STRINGS and should not contain |
| 90 | quoted or not. If optional PAREN is non-nil, ensure that the returned regexp | 90 | any regexps, quoted or not. Optional PAREN specifies how the |
| 91 | is enclosed by at least one regexp grouping construct. | 91 | returned regexp is surrounded by grouping constructs. |
| 92 | The returned regexp is typically more efficient than the equivalent regexp: | ||
| 93 | 92 | ||
| 94 | (let ((open (if PAREN \"\\\\(\" \"\")) (close (if PAREN \"\\\\)\" \"\"))) | 93 | The optional argument PAREN can be any of the following: |
| 95 | (concat open (mapconcat \\='regexp-quote STRINGS \"\\\\|\") close)) | ||
| 96 | 94 | ||
| 97 | If PAREN is `words', then the resulting regexp is additionally surrounded | 95 | a string |
| 98 | by \\=\\< and \\>. | 96 | the resulting regexp is preceded by PAREN and followed by |
| 99 | If PAREN is `symbols', then the resulting regexp is additionally surrounded | 97 | \\), e.g. use \"\\\\(?1:\" to produce an explicitly numbered |
| 100 | by \\=\\_< and \\_>." | 98 | group. |
| 99 | |||
| 100 | `words' | ||
| 101 | the resulting regexp is surrounded by \\=\\<\\( and \\)\\>. | ||
| 102 | |||
| 103 | `symbols' | ||
| 104 | the resulting regexp is surrounded by \\_<\\( and \\)\\_>. | ||
| 105 | |||
| 106 | non-nil | ||
| 107 | the resulting regexp is surrounded by \\( and \\). | ||
| 108 | |||
| 109 | nil | ||
| 110 | the resulting regexp is surrounded by \\(?: and \\), if it is | ||
| 111 | necessary to ensure that a postfix operator appended to it will | ||
| 112 | apply to the whole expression. | ||
| 113 | |||
| 114 | The resulting regexp is equivalent to but usually more efficient | ||
| 115 | than that of a simplified version: | ||
| 116 | |||
| 117 | (defun simplified-regexp-opt (strings &optional paren) | ||
| 118 | (let ((parens | ||
| 119 | (cond ((stringp paren) (cons paren \"\\\\)\")) | ||
| 120 | ((eq paren 'words) '(\"\\\\\\=<\\\\(\" . \"\\\\)\\\\>\")) | ||
| 121 | ((eq paren 'symbols) '(\"\\\\_<\\\\(\" . \"\\\\)\\\\_>\")) | ||
| 122 | ((null paren) '(\"\\\\(?:\" . \"\\\\)\")) | ||
| 123 | (t '(\"\\\\(\" . \"\\\\)\"))))) | ||
| 124 | (concat (car paren) | ||
| 125 | (mapconcat 'regexp-quote strings \"\\\\|\") | ||
| 126 | (cdr paren))))" | ||
| 101 | (save-match-data | 127 | (save-match-data |
| 102 | ;; Recurse on the sorted list. | 128 | ;; Recurse on the sorted list. |
| 103 | (let* ((max-lisp-eval-depth 10000) | 129 | (let* ((max-lisp-eval-depth 10000) |
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el index e5004f8cdab..9859f28f8e8 100644 --- a/lisp/emacs-lisp/seq.el +++ b/lisp/emacs-lisp/seq.el | |||
| @@ -137,7 +137,7 @@ the sequence, and its index within the sequence." | |||
| 137 | 137 | ||
| 138 | (cl-defgeneric seq-subseq (sequence start &optional end) | 138 | (cl-defgeneric seq-subseq (sequence start &optional end) |
| 139 | "Return the sequence of elements of SEQUENCE from START to END. | 139 | "Return the sequence of elements of SEQUENCE from START to END. |
| 140 | END is inclusive. | 140 | END is exclusive. |
| 141 | 141 | ||
| 142 | If END is omitted, it defaults to the length of the sequence. If | 142 | If END is omitted, it defaults to the length of the sequence. If |
| 143 | START or END is negative, it counts from the end. Signal an | 143 | START or END is negative, it counts from the end. Signal an |
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 890d55294cf..d37ab8a9817 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -1880,8 +1880,6 @@ Third arg DELIMITED (prefix arg) means replace only word-delimited matches. | |||
| 1880 | If you exit (\\[keyboard-quit], RET or q), you can resume the query replace | 1880 | If you exit (\\[keyboard-quit], RET or q), you can resume the query replace |
| 1881 | with the command \\[tags-loop-continue]. | 1881 | with the command \\[tags-loop-continue]. |
| 1882 | Fourth arg FILE-LIST-FORM non-nil means initialize the replacement loop. | 1882 | Fourth arg FILE-LIST-FORM non-nil means initialize the replacement loop. |
| 1883 | Fifth and sixth arguments START and END are accepted, for compatibility | ||
| 1884 | with `query-replace-regexp', and ignored. | ||
| 1885 | 1883 | ||
| 1886 | If FILE-LIST-FORM is non-nil, it is a form to evaluate to | 1884 | If FILE-LIST-FORM is non-nil, it is a form to evaluate to |
| 1887 | produce the list of files to search. | 1885 | produce the list of files to search. |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 927d0bb8d57..81bb9b4721e 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -366,9 +366,10 @@ The string is based on `url-privacy-level' and `url-user-agent'." | |||
| 366 | auth | 366 | auth |
| 367 | ;; Cookies | 367 | ;; Cookies |
| 368 | (when (url-use-cookies url-http-target-url) | 368 | (when (url-use-cookies url-http-target-url) |
| 369 | (url-cookie-generate-header-lines | 369 | (url-http--encode-string |
| 370 | host real-fname | 370 | (url-cookie-generate-header-lines |
| 371 | (equal "https" (url-type url-http-target-url)))) | 371 | host real-fname |
| 372 | (equal "https" (url-type url-http-target-url))))) | ||
| 372 | ;; If-modified-since | 373 | ;; If-modified-since |
| 373 | (if (and (not no-cache) | 374 | (if (and (not no-cache) |
| 374 | (member url-http-method '("GET" nil))) | 375 | (member url-http-method '("GET" nil))) |