aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2020-06-07 09:03:59 -0700
committerGlenn Morris2020-06-07 09:03:59 -0700
commitfa6d56529f9ebaedaf62ecbf8887ffecca7dce12 (patch)
tree922e12ffbf813534647a96788b9a5fb77b4f2288 /lisp
parent6cb557e7a58d7f1c2e9afceeba45d0ced2aff214 (diff)
parent35661ef943d261f6c43e93e475ddd8516f4a4b62 (diff)
downloademacs-fa6d56529f9ebaedaf62ecbf8887ffecca7dce12.tar.gz
emacs-fa6d56529f9ebaedaf62ecbf8887ffecca7dce12.zip
Merge from origin/emacs-27
35661ef943 (origin/emacs-27) Fix typo in "(elisp) Type Keywords" 1af0e95fec Gnus nnir-summary-line-format has no effect dd366b5d3b Improve documentation of 'window-text-pixel-size' fbd49f969e * src/xdisp.c (Fwindow_text_pixel_size): Doc fix. (Bug#41... d8593fd19f Minor improvements to EDE and EIEIO manuals 3916e63f9e Have Fido mode also imitate Ido mode in ignore-case options cc35b197c7 Update package-menu-quick-help bf09106256 Improve documentation of 'sort-subr' 73749efa13 Update Ukrainian transliteration 30a7ee505a Fix Arabic shaping when eww/shr fill the text to be rendered 7d323f07c0 Silence some byte-compiler warnings in tests cf473e742f * test/lisp/battery-tests.el: New file. b07e3b1d97 Improve format-spec documentation (bug#41571) # Conflicts: # test/lisp/emacs-lisp/package-tests.el
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/package.el7
-rw-r--r--lisp/format-spec.el49
-rw-r--r--lisp/gnus/nnir.el9
-rw-r--r--lisp/icomplete.el5
-rw-r--r--lisp/language/cyril-util.el6
5 files changed, 50 insertions, 26 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 6298244c399..6fc80594125 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -3302,7 +3302,7 @@ If optional arg BUTTON is non-nil, describe its associated package."
3302 '(("install," "delete," "unmark," ("execute" . 1)) 3302 '(("install," "delete," "unmark," ("execute" . 1))
3303 ("next," "previous") 3303 ("next," "previous")
3304 ("Hide-package," "(-toggle-hidden") 3304 ("Hide-package," "(-toggle-hidden")
3305 ("refresh-contents," "g-redisplay," "filter," "help"))) 3305 ("g-refresh-contents," "/-filter," "help")))
3306 3306
3307(defun package--prettify-quick-help-key (desc) 3307(defun package--prettify-quick-help-key (desc)
3308 "Prettify DESC to be displayed as a help menu." 3308 "Prettify DESC to be displayed as a help menu."
@@ -3310,7 +3310,7 @@ If optional arg BUTTON is non-nil, describe its associated package."
3310 (if (listp (cdr desc)) 3310 (if (listp (cdr desc))
3311 (mapconcat #'package--prettify-quick-help-key desc " ") 3311 (mapconcat #'package--prettify-quick-help-key desc " ")
3312 (let ((place (cdr desc)) 3312 (let ((place (cdr desc))
3313 (out (car desc))) 3313 (out (copy-sequence (car desc))))
3314 (add-text-properties place (1+ place) 3314 (add-text-properties place (1+ place)
3315 '(face (bold font-lock-warning-face)) 3315 '(face (bold font-lock-warning-face))
3316 out) 3316 out)
@@ -3790,6 +3790,9 @@ packages."
3790 (package--has-keyword-p pkg-desc keyword)) 3790 (package--has-keyword-p pkg-desc keyword))
3791 (concat "keyword:" (string-join keyword ","))))) 3791 (concat "keyword:" (string-join keyword ",")))))
3792 3792
3793(define-obsolete-function-alias
3794 'package-menu-filter #'package-menu-filter-by-keyword "27.1")
3795
3793(defun package-menu-filter-by-name (name) 3796(defun package-menu-filter-by-name (name)
3794 "Filter the \"*Packages*\" buffer by NAME regexp. 3797 "Filter the \"*Packages*\" buffer by NAME regexp.
3795Display only packages with name that matches regexp NAME. 3798Display only packages with name that matches regexp NAME.
diff --git a/lisp/format-spec.el b/lisp/format-spec.el
index f418cea4259..9278bd74c42 100644
--- a/lisp/format-spec.el
+++ b/lisp/format-spec.el
@@ -29,35 +29,46 @@
29 29
30(defun format-spec (format specification &optional only-present) 30(defun format-spec (format specification &optional only-present)
31 "Return a string based on FORMAT and SPECIFICATION. 31 "Return a string based on FORMAT and SPECIFICATION.
32FORMAT is a string containing `format'-like specs like \"su - %u %k\", 32FORMAT is a string containing `format'-like specs like \"su - %u %k\".
33while SPECIFICATION is an alist mapping from format spec characters 33SPECIFICATION is an alist mapping format specification characters
34to values. 34to their substitutions.
35 35
36For instance: 36For instance:
37 37
38 (format-spec \"su - %u %l\" 38 (format-spec \"su - %u %l\"
39 `((?u . ,(user-login-name)) 39 \\=`((?u . ,(user-login-name))
40 (?l . \"ls\"))) 40 (?l . \"ls\")))
41 41
42Each format spec can have modifiers, where \"%<010b\" means \"if 42Each %-spec may contain optional flag and width modifiers, as
43the expansion is shorter than ten characters, zero-pad it, and if 43follows:
44it's longer, chop off characters from the left side\".
45 44
46The following modifiers are allowed: 45 %<flags><width>character
47 46
48* 0: Use zero-padding. 47The following flags are allowed:
49* -: Pad to the right.
50* ^: Upper-case the expansion.
51* _: Lower-case the expansion.
52* <: Limit the length by removing chars from the left.
53* >: Limit the length by removing chars from the right.
54 48
55Any text properties on a %-spec itself are propagated to the text 49* 0: Pad to the width, if given, with zeros instead of spaces.
56that it generates. 50* -: Pad to the width, if given, on the right instead of the left.
51* <: Truncate to the width, if given, on the left.
52* >: Truncate to the width, if given, on the right.
53* ^: Convert to upper case.
54* _: Convert to lower case.
57 55
58If ONLY-PRESENT, format spec characters not present in 56The width modifier behaves like the corresponding one in `format'
59SPECIFICATION are ignored, and the \"%\" characters are left 57when applied to %s.
60where they are, including \"%%\" strings." 58
59For example, \"%<010b\" means \"substitute into the output the
60value associated with ?b in SPECIFICATION, either padding it with
61leading zeros or truncating leading characters until it's ten
62characters wide\".
63
64Any text properties of FORMAT are copied to the result, with any
65text properties of a %-spec itself copied to its substitution.
66
67ONLY-PRESENT indicates how to handle %-spec characters not
68present in SPECIFICATION. If it is nil or omitted, emit an
69error; otherwise leave those %-specs and any occurrences of
70\"%%\" in FORMAT verbatim in the result, including their text
71properties, if any."
61 (with-temp-buffer 72 (with-temp-buffer
62 (insert format) 73 (insert format)
63 (goto-char (point-min)) 74 (goto-char (point-min))
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index 0277524a8c6..722969c21ba 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -663,7 +663,7 @@ A non-nil `specs' arg must be an alist with `nnir-query-spec' and
663 (let ((backend (car (gnus-server-to-method server)))) 663 (let ((backend (car (gnus-server-to-method server))))
664 (if backend 664 (if backend
665 (nnoo-change-server backend server definitions) 665 (nnoo-change-server backend server definitions)
666 (add-hook 'gnus-summary-prepared-hook 'nnir-mode) 666 (add-hook 'gnus-summary-generate-hook 'nnir-mode)
667 (nnoo-change-server 'nnir server definitions)))) 667 (nnoo-change-server 'nnir server definitions))))
668 668
669(deffoo nnir-request-group (group &optional server dont-check _info) 669(deffoo nnir-request-group (group &optional server dont-check _info)
@@ -1850,8 +1850,11 @@ is also searched."
1850 1850
1851(defun nnir-mode () 1851(defun nnir-mode ()
1852 (when (eq (car (gnus-find-method-for-group gnus-newsgroup-name)) 'nnir) 1852 (when (eq (car (gnus-find-method-for-group gnus-newsgroup-name)) 'nnir)
1853 (setq gnus-summary-line-format 1853 (when (and nnir-summary-line-format
1854 (or nnir-summary-line-format gnus-summary-line-format)) 1854 (not (string= nnir-summary-line-format
1855 gnus-summary-line-format)))
1856 (setq gnus-summary-line-format nnir-summary-line-format)
1857 (gnus-update-format-specifications nil 'summary))
1855 (when (bound-and-true-p gnus-registry-enabled) 1858 (when (bound-and-true-p gnus-registry-enabled)
1856 (remove-hook 'gnus-summary-article-delete-hook 'gnus-registry-action t) 1859 (remove-hook 'gnus-summary-article-delete-hook 'gnus-registry-action t)
1857 (remove-hook 'gnus-summary-article-move-hook 'gnus-registry-action t) 1860 (remove-hook 'gnus-summary-article-move-hook 'gnus-registry-action t)
diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index c12f3901f09..60ef0247bae 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -330,7 +330,10 @@ if that doesn't produce a completion match."
330 icomplete-hide-common-prefix nil 330 icomplete-hide-common-prefix nil
331 completion-styles '(flex) 331 completion-styles '(flex)
332 completion-flex-nospace nil 332 completion-flex-nospace nil
333 completion-category-defaults nil))) 333 completion-category-defaults nil
334 completion-ignore-case t
335 read-buffer-completion-ignore-case t
336 read-file-name-completion-ignore-case t)))
334 337
335;;;###autoload 338;;;###autoload
336(define-minor-mode fido-mode 339(define-minor-mode fido-mode
diff --git a/lisp/language/cyril-util.el b/lisp/language/cyril-util.el
index e7a12675905..a3a6f3fdd94 100644
--- a/lisp/language/cyril-util.el
+++ b/lisp/language/cyril-util.el
@@ -152,6 +152,7 @@ If the argument is nil, we return the display table to its standard state."
152 (aset standard-display-table ?љ [?l ?j]) 152 (aset standard-display-table ?љ [?l ?j])
153 (aset standard-display-table ?њ [?n ?j]) 153 (aset standard-display-table ?њ [?n ?j])
154 (aset standard-display-table ?џ [?d ?z]) 154 (aset standard-display-table ?џ [?d ?z])
155 (aset standard-display-table ?ґ [?g])
155 156
156 (aset standard-display-table ?Є [?Y ?e]) 157 (aset standard-display-table ?Є [?Y ?e])
157 (aset standard-display-table ?Ї [?Y ?i]) 158 (aset standard-display-table ?Ї [?Y ?i])
@@ -166,6 +167,7 @@ If the argument is nil, we return the display table to its standard state."
166 (aset standard-display-table ?Љ [?L ?j]) 167 (aset standard-display-table ?Љ [?L ?j])
167 (aset standard-display-table ?Њ [?N ?j]) 168 (aset standard-display-table ?Њ [?N ?j])
168 (aset standard-display-table ?Џ [?D ?j]) 169 (aset standard-display-table ?Џ [?D ?j])
170 (aset standard-display-table ?Ґ [?G])
169 171
170 (when (equal cyrillic-language "Bulgarian") 172 (when (equal cyrillic-language "Bulgarian")
171 (aset standard-display-table ?щ [?s ?h ?t]) 173 (aset standard-display-table ?щ [?s ?h ?t])
@@ -182,7 +184,9 @@ If the argument is nil, we return the display table to its standard state."
182 (aset standard-display-table ?й [?i]) 184 (aset standard-display-table ?й [?i])
183 (aset standard-display-table ?Й [?Y]) 185 (aset standard-display-table ?Й [?Y])
184 (aset standard-display-table ?ю [?i ?u]) 186 (aset standard-display-table ?ю [?i ?u])
185 (aset standard-display-table ?я [?i ?a])))) 187 (aset standard-display-table ?я [?i ?a])
188 (aset standard-display-table ?г [?h])
189 (aset standard-display-table ?Г [?H]))))
186 190
187;; 191;;
188(provide 'cyril-util) 192(provide 'cyril-util)