aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-06-05 06:30:25 +0200
committerStefan Kangas2022-06-05 06:30:25 +0200
commitd46e94f23fbbd522f2a017444b29f9f18203b4bc (patch)
tree606ec60566bda5eebbdea6bc5aee835fcafdef2f
parentddfb91c0a7e46f0332caf82237cabc736ddfd276 (diff)
parent1b8719835a200a2be17da226e82030f691caba80 (diff)
downloademacs-d46e94f23fbbd522f2a017444b29f9f18203b4bc.tar.gz
emacs-d46e94f23fbbd522f2a017444b29f9f18203b4bc.zip
Merge from origin/emacs-28
1b8719835a Update to Org 9.5.4 92c5faafd7 Clarify documentation of 'string-to-unibyte' 2848512654 ; * lisp/files.el (find-file): Avoid too short lines in do... 672f9f787f Improve keystrokes in doc strings in some find-file functions ef5651cc77 Fix segfaults when starting on 80x26 TTY frames bfa647972f ; Fix doc string of 'delete-selection-repeat-replace-region' a95d46e00f Make it explicit that a couple of _s in lispref are unders... 5c74c25123 Remove from FAQ the MS-Windows info about BDF fonts edb48646f2 Fix Display Property manual example
-rw-r--r--doc/lispref/control.texi2
-rw-r--r--doc/lispref/display.texi2
-rw-r--r--doc/lispref/nonascii.texi11
-rw-r--r--doc/lispref/strings.texi2
-rw-r--r--doc/misc/efaq.texi70
-rw-r--r--etc/refcards/orgcard.tex2
-rw-r--r--lisp/delsel.el3
-rw-r--r--lisp/files.el21
-rw-r--r--lisp/org/org-clock.el4
-rw-r--r--lisp/org/org-version.el4
-rw-r--r--lisp/org/org.el2
-rw-r--r--src/dispnew.c26
12 files changed, 53 insertions, 96 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 63dc2f866af..d4520ebdee5 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -525,7 +525,7 @@ core pattern can have the following forms:
525 525
526@table @code 526@table @code
527 527
528@item _ 528@item _@r{ (underscore)}
529Matches any @var{expval}. 529Matches any @var{expval}.
530This is also known as @dfn{don't care} or @dfn{wildcard}. 530This is also known as @dfn{don't care} or @dfn{wildcard}.
531 531
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 653b249a407..b98c2f8fa93 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -5057,7 +5057,7 @@ which are evaluated at display time. This could be unsafe in certain
5057situations, e.g., when the display specification was generated by some 5057situations, e.g., when the display specification was generated by some
5058external program/agent. Wrapping a display specification in a list 5058external program/agent. Wrapping a display specification in a list
5059that begins with the special symbol @code{disable-eval}, as in 5059that begins with the special symbol @code{disable-eval}, as in
5060@w{@code{('disable-eval @var{spec})}}, will disable evaluation of any 5060@w{@code{(disable-eval @var{spec})}}, will disable evaluation of any
5061Lisp in @var{spec}, while still supporting all the other display 5061Lisp in @var{spec}, while still supporting all the other display
5062property features. 5062property features.
5063 5063
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index d7d25dc36af..6dc23637a79 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -280,11 +280,12 @@ to the codepoints @code{#x3FFF80} through @code{#x3FFFFF}, inclusive
280 280
281@defun string-to-unibyte string 281@defun string-to-unibyte string
282This function returns a unibyte string containing the same sequence of 282This function returns a unibyte string containing the same sequence of
283characters as @var{string}. It signals an error if @var{string} 283characters as @var{string}. If @var{string} is a unibyte string, it
284contains a non-@acronym{ASCII} character. If @var{string} is a 284is returned unchanged. Otherwise, @acronym{ASCII} characters and
285unibyte string, it is returned unchanged. Use this function for 285characters in the @code{eight-bit} charset are converted to their
286@var{string} arguments that contain only @acronym{ASCII} and eight-bit 286corresponding byte values. Use this function for @var{string}
287characters. 287arguments that contain only @acronym{ASCII} and eight-bit characters;
288the function signals an error if any other characters are encountered.
288@end defun 289@end defun
289 290
290@defun byte-to-string byte 291@defun byte-to-string byte
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 413e17750e9..78f1344cada 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -1348,7 +1348,7 @@ given width, if specified.
1348This flag converts the substituted text to upper case (@pxref{Case 1348This flag converts the substituted text to upper case (@pxref{Case
1349Conversion}). 1349Conversion}).
1350 1350
1351@item _ 1351@item _@r{ (underscore)}
1352This flag converts the substituted text to lower case (@pxref{Case 1352This flag converts the substituted text to lower case (@pxref{Case
1353Conversion}). 1353Conversion}).
1354@end table 1354@end table
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index 07f3669e160..a98c4b6a614 100644
--- a/doc/misc/efaq.texi
+++ b/doc/misc/efaq.texi
@@ -4274,75 +4274,6 @@ add the following line to your @file{~/.emacs}:
4274 (setq ps-multibyte-buffer 'bdf-font-except-latin) 4274 (setq ps-multibyte-buffer 'bdf-font-except-latin)
4275@end lisp 4275@end lisp
4276 4276
4277A few additional steps are necessary for MS-Windows; they are listed
4278below.
4279
4280First, make sure @emph{all} the directories with BDF font files are
4281mentioned in @code{bdf-directory-list}. On Unix and GNU/Linux
4282systems, one normally runs @kbd{make install} to install the BDF fonts
4283in the same directory. By contrast, Windows users typically don't run
4284the Intlfonts installation command, but unpack the distribution in
4285some directory, which leaves the BDF fonts in its subdirectories. For
4286example, assume that you unpacked Intlfonts in @file{C:/Intlfonts};
4287then you should set @code{bdf-directory-list} as follows:
4288
4289@lisp
4290 (setq bdf-directory-list
4291 '("C:/Intlfonts/Asian"
4292 "C:/Intlfonts/Chinese" "C:/Intlfonts/Chinese.X"
4293 "C:/Intlfonts/Chinese.BIG" "C:/Intlfonts/Ethiopic"
4294 "C:/Intlfonts/European" "C:/Intlfonts/European.BIG"
4295 "C:/Intlfonts/Japanese" "C:/Intlfonts/Japanese.X"
4296 "C:/Intlfonts/Japanese.BIG" "C:/Intlfonts/Korean.X"
4297 "C:/Intlfonts/Misc"))
4298@end lisp
4299
4300@cindex @code{w32-bdf-filename-alist}
4301@cindex @code{w32-find-bdf-fonts}
4302Next, you need to set up the variable @code{w32-bdf-filename-alist} to
4303an alist of the BDF fonts and their corresponding file names.
4304Assuming you have set @code{bdf-directory-list} to name all the
4305directories with the BDF font files, the following Lisp snippet will
4306set up @code{w32-bdf-filename-alist}:
4307
4308@lisp
4309 (setq w32-bdf-filename-alist
4310 (w32-find-bdf-fonts bdf-directory-list))
4311@end lisp
4312
4313Now, create fontsets for the BDF fonts:
4314
4315@smallexample
4316 (create-fontset-from-fontset-spec
4317 "-*-fixed-medium-r-normal-*-16-*-*-*-c-*-fontset-bdf,
4318 japanese-jisx0208:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1983-*,
4319 katakana-jisx0201:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0201*-*,
4320 latin-jisx0201:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0201*-*,
4321 japanese-jisx0208-1978:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1978-*,
4322 thai-tis620:-misc-fixed-medium-r-normal--16-160-72-72-m-80-tis620.2529-1,
4323 lao:-misc-fixed-medium-r-normal--16-160-72-72-m-80-MuleLao-1,
4324 tibetan-1-column:-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-80-MuleTibetan-1,
4325 ethiopic:-Admas-Ethiomx16f-Medium-R-Normal--16-150-100-100-M-160-Ethiopic-Unicode,
4326 tibetan:-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-160-MuleTibetan-0")
4327@end smallexample
4328
4329Many of the international bdf fonts from Intlfonts are type 0, and
4330therefore need to be added to font-encoding-alist:
4331
4332@lisp
4333 (setq font-encoding-alist
4334 (append '(("MuleTibetan-0" (tibetan . 0))
4335 ("GB2312" (chinese-gb2312 . 0))
4336 ("JISX0208" (japanese-jisx0208 . 0))
4337 ("JISX0212" (japanese-jisx0212 . 0))
4338 ("VISCII" (vietnamese-viscii-lower . 0))
4339 ("KSC5601" (korean-ksc5601 . 0))
4340 ("MuleArabic-0" (arabic-digit . 0))
4341 ("MuleArabic-1" (arabic-1-column . 0))
4342 ("MuleArabic-2" (arabic-2-column . 0)))
4343 font-encoding-alist))
4344@end lisp
4345
4346You can now use the Emacs font menu to select the @samp{bdf: 16-dot medium} 4277You can now use the Emacs font menu to select the @samp{bdf: 16-dot medium}
4347fontset, or you can select it by setting the default font in your 4278fontset, or you can select it by setting the default font in your
4348@file{~/.emacs}: 4279@file{~/.emacs}:
@@ -4351,7 +4282,6 @@ fontset, or you can select it by setting the default font in your
4351 (set-frame-font "fontset-bdf") 4282 (set-frame-font "fontset-bdf")
4352@end lisp 4283@end lisp
4353 4284
4354
4355@c ------------------------------------------------------------ 4285@c ------------------------------------------------------------
4356@node Mail and news 4286@node Mail and news
4357@chapter Mail and news 4287@chapter Mail and news
diff --git a/etc/refcards/orgcard.tex b/etc/refcards/orgcard.tex
index 2b4718805a6..bb4bc5b25df 100644
--- a/etc/refcards/orgcard.tex
+++ b/etc/refcards/orgcard.tex
@@ -1,5 +1,5 @@
1% Reference Card for Org Mode 1% Reference Card for Org Mode
2\def\orgversionnumber{9.5.3} 2\def\orgversionnumber{9.5.4}
3\def\versionyear{2021} % latest update 3\def\versionyear{2021} % latest update
4\input emacsver.tex 4\input emacsver.tex
5 5
diff --git a/lisp/delsel.el b/lisp/delsel.el
index c9d3cf269b7..5310328e5fd 100644
--- a/lisp/delsel.el
+++ b/lisp/delsel.el
@@ -121,7 +121,8 @@ the active region is killed instead of deleted."
121 "Repeat replacing text of highlighted region with typed text. 121 "Repeat replacing text of highlighted region with typed text.
122Search for the next stretch of text identical to the region last replaced 122Search for the next stretch of text identical to the region last replaced
123by typing text over it and replaces it with the same stretch of text. 123by typing text over it and replaces it with the same stretch of text.
124With ARG, repeat that many times. `\\[universal-argument]' means until end of buffer." 124With ARG (interactively, prefix numeric argument), repeat that many times.
125Just `\\[universal-argument]' means repeat until the end of the buffer's accessible portion."
125 (interactive "P") 126 (interactive "P")
126 (let ((old-text (and delete-selection-save-to-register 127 (let ((old-text (and delete-selection-save-to-register
127 (get-register delete-selection-save-to-register))) 128 (get-register delete-selection-save-to-register)))
diff --git a/lisp/files.el b/lisp/files.el
index 2aef4d9230a..b5da0ea5c52 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1733,19 +1733,18 @@ rather than FUN itself, to `minibuffer-setup-hook'."
1733 1733
1734(defun find-file (filename &optional wildcards) 1734(defun find-file (filename &optional wildcards)
1735 "Edit file FILENAME. 1735 "Edit file FILENAME.
1736Switch to a buffer visiting file FILENAME, 1736\\<minibuffer-local-map>Switch to a buffer visiting file FILENAME, creating one if none
1737creating one if none already exists. 1737already exists.
1738Interactively, the default if you just type RET is the current directory, 1738Interactively, the default if you just type RET is the current directory,
1739but the visited file name is available through the minibuffer history: 1739but the visited file name is available through the minibuffer history:
1740type \\[next-history-element] to pull it into the minibuffer. 1740type \\[next-history-element] to pull it into the minibuffer.
1741 1741
1742The first time \\[next-history-element] is used after Emacs prompts for 1742The first time \\[next-history-element] is used after Emacs prompts for the file name,
1743the file name, the result is affected by `file-name-at-point-functions', 1743the result is affected by `file-name-at-point-functions', which by
1744which by default try to guess the file name by looking at point in the 1744default try to guess the file name by looking at point in the current
1745current buffer. Customize the value of `file-name-at-point-functions' 1745buffer. Customize the value of `file-name-at-point-functions' or set
1746or set it to nil, if you want only the visited file name and the 1746it to nil, if you want only the visited file name and the current
1747current directory to be available on first \\[next-history-element] 1747directory to be available on first \\[next-history-element] request.
1748request.
1749 1748
1750You can visit files on remote machines by specifying something 1749You can visit files on remote machines by specifying something
1751like /ssh:SOME_REMOTE_MACHINE:FILE for the file name. You can 1750like /ssh:SOME_REMOTE_MACHINE:FILE for the file name. You can
@@ -1758,7 +1757,7 @@ Interactively, or if WILDCARDS is non-nil in a call from Lisp,
1758expand wildcards (if any) and visit multiple files. You can 1757expand wildcards (if any) and visit multiple files. You can
1759suppress wildcard expansion by setting `find-file-wildcards' to nil. 1758suppress wildcard expansion by setting `find-file-wildcards' to nil.
1760 1759
1761To visit a file without any kind of conversion and without 1760\\<global-map>To visit a file without any kind of conversion and without
1762automatically choosing a major mode, use \\[find-file-literally]." 1761automatically choosing a major mode, use \\[find-file-literally]."
1763 (interactive 1762 (interactive
1764 (find-file-read-args "Find file: " 1763 (find-file-read-args "Find file: "
@@ -1774,6 +1773,7 @@ automatically choosing a major mode, use \\[find-file-literally]."
1774Like \\[find-file] (which see), but creates a new window or reuses 1773Like \\[find-file] (which see), but creates a new window or reuses
1775an existing one. See the function `display-buffer'. 1774an existing one. See the function `display-buffer'.
1776 1775
1776\\<minibuffer-local-map>\
1777Interactively, the default if you just type RET is the current directory, 1777Interactively, the default if you just type RET is the current directory,
1778but the visited file name is available through the minibuffer history: 1778but the visited file name is available through the minibuffer history:
1779type \\[next-history-element] to pull it into the minibuffer. 1779type \\[next-history-element] to pull it into the minibuffer.
@@ -1806,6 +1806,7 @@ expand wildcards (if any) and visit multiple files."
1806Like \\[find-file] (which see), but creates a new frame or reuses 1806Like \\[find-file] (which see), but creates a new frame or reuses
1807an existing one. See the function `display-buffer'. 1807an existing one. See the function `display-buffer'.
1808 1808
1809\\<minibuffer-local-map>\
1809Interactively, the default if you just type RET is the current directory, 1810Interactively, the default if you just type RET is the current directory,
1810but the visited file name is available through the minibuffer history: 1811but the visited file name is available through the minibuffer history:
1811type \\[next-history-element] to pull it into the minibuffer. 1812type \\[next-history-element] to pull it into the minibuffer.
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el
index 67cda1b7464..fdc9818a5a8 100644
--- a/lisp/org/org-clock.el
+++ b/lisp/org/org-clock.el
@@ -1104,7 +1104,7 @@ to be CLOCKED OUT."))))
1104 60)) 1104 60))
1105 (keep 1105 (keep
1106 (or (and (memq ch '(?k ?K)) 1106 (or (and (memq ch '(?k ?K))
1107 (read-number "Keep how many minutes? " default)) 1107 (read-number "Keep how many minutes: " default))
1108 (and (memq ch '(?t ?T)) 1108 (and (memq ch '(?t ?T))
1109 (floor 1109 (floor
1110 (/ (float-time 1110 (/ (float-time
@@ -1112,7 +1112,7 @@ to be CLOCKED OUT."))))
1112 60))))) 1112 60)))))
1113 (gotback 1113 (gotback
1114 (and (memq ch '(?g ?G)) 1114 (and (memq ch '(?g ?G))
1115 (read-number "Got back how many minutes ago? " default))) 1115 (read-number "Got back how many minutes ago: " default)))
1116 (subtractp (memq ch '(?s ?S))) 1116 (subtractp (memq ch '(?s ?S)))
1117 (barely-started-p (org-time-less-p 1117 (barely-started-p (org-time-less-p
1118 (org-time-subtract last-valid (cdr clock)) 1118 (org-time-subtract last-valid (cdr clock))
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el
index 6bafb6fc378..6bdcb0afff5 100644
--- a/lisp/org/org-version.el
+++ b/lisp/org/org-version.el
@@ -5,13 +5,13 @@
5(defun org-release () 5(defun org-release ()
6 "The release version of Org. 6 "The release version of Org.
7Inserted by installing Org mode or when a release is made." 7Inserted by installing Org mode or when a release is made."
8 (let ((org-release "9.5.3")) 8 (let ((org-release "9.5.4"))
9 org-release)) 9 org-release))
10;;;###autoload 10;;;###autoload
11(defun org-git-version () 11(defun org-git-version ()
12 "The Git version of Org mode. 12 "The Git version of Org mode.
13Inserted by installing Org or when a release is made." 13Inserted by installing Org or when a release is made."
14 (let ((org-git-version "release_9.5.3-6-gef41f3")) 14 (let ((org-git-version "release_9.5.4"))
15 org-git-version)) 15 org-git-version))
16 16
17(provide 'org-version) 17(provide 'org-version)
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 0dfd53a3a72..008230500d7 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -9,7 +9,7 @@
9;; Homepage: https://orgmode.org 9;; Homepage: https://orgmode.org
10;; Package-Requires: ((emacs "25.1")) 10;; Package-Requires: ((emacs "25.1"))
11 11
12;; Version: 9.5.3 12;; Version: 9.5.4
13 13
14;; This file is part of GNU Emacs. 14;; This file is part of GNU Emacs.
15;; 15;;
diff --git a/src/dispnew.c b/src/dispnew.c
index 795c928bc13..7a4d9f8710b 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1837,7 +1837,18 @@ adjust_frame_glyphs (struct frame *f)
1837 if (FRAME_WINDOW_P (f)) 1837 if (FRAME_WINDOW_P (f))
1838 adjust_frame_glyphs_for_window_redisplay (f); 1838 adjust_frame_glyphs_for_window_redisplay (f);
1839 else 1839 else
1840 adjust_frame_glyphs_for_frame_redisplay (f); 1840 {
1841 adjust_frame_glyphs_for_frame_redisplay (f);
1842 eassert (FRAME_INITIAL_P (f)
1843 || noninteractive
1844 || !initialized
1845 || (f->current_matrix
1846 && f->current_matrix->nrows > 0
1847 && f->current_matrix->rows
1848 && f->desired_matrix
1849 && f->desired_matrix->nrows > 0
1850 && f->desired_matrix->rows));
1851 }
1841 1852
1842 /* Don't forget the buffer for decode_mode_spec. */ 1853 /* Don't forget the buffer for decode_mode_spec. */
1843 adjust_decode_mode_spec_buffer (f); 1854 adjust_decode_mode_spec_buffer (f);
@@ -2119,6 +2130,19 @@ adjust_frame_glyphs_for_frame_redisplay (struct frame *f)
2119 SET_FRAME_GARBAGED (f); 2130 SET_FRAME_GARBAGED (f);
2120 } 2131 }
2121 } 2132 }
2133 else if (!FRAME_INITIAL_P (f) && !noninteractive && initialized)
2134 {
2135 if (!f->desired_matrix->nrows || !f->desired_matrix->rows)
2136 {
2137 adjust_glyph_matrix (NULL, f->desired_matrix, 0, 0, matrix_dim);
2138 SET_FRAME_GARBAGED (f);
2139 }
2140 if (!f->current_matrix->nrows || !f->current_matrix->rows)
2141 {
2142 adjust_glyph_matrix (NULL, f->current_matrix, 0, 0, matrix_dim);
2143 SET_FRAME_GARBAGED (f);
2144 }
2145 }
2122} 2146}
2123 2147
2124 2148