aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2022-04-16 13:45:50 -0400
committerEli Zaretskii2022-04-16 13:45:50 -0400
commit8804dfdb1a7337aae8eaa48924692fd65d0916e2 (patch)
treea40bc4fd044f8f8d781f868821336d08194b0c3a
parentcb953504abf45a85a6c5bcdd118315d5217e6226 (diff)
parent5e47d6284bf184cb21acb1fb142ddb6eeea9c8ec (diff)
downloademacs-8804dfdb1a7337aae8eaa48924692fd65d0916e2.tar.gz
emacs-8804dfdb1a7337aae8eaa48924692fd65d0916e2.zip
Merge from origin/emacs-28
5e47d6284b * lisp/gnus/mm-encode.el (mm-default-file-encoding): Fix "... e71c7a7c60 Fix default-directory of buffers visiting files in renamed... cccaa9c31d Fix a kill-append regression 33828e4818 * doc/misc/eww.texi (Advanced): Correct outdated info (bug... e8d2f40f41 Clean up the MSDOS port 338eda09d8 Fix typo in next-error-find-buffer-function # Conflicts: # doc/misc/eww.texi
-rw-r--r--doc/misc/eww.texi8
-rw-r--r--lisp/dired-aux.el37
-rw-r--r--lisp/gnus/mm-encode.el2
-rw-r--r--lisp/simple.el4
-rw-r--r--msdos/sed1v2.inp6
-rw-r--r--msdos/sedlibmk.inp3
-rw-r--r--src/msdos.h9
7 files changed, 43 insertions, 26 deletions
diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi
index 6d1ba3962f3..f23180c1d4e 100644
--- a/doc/misc/eww.texi
+++ b/doc/misc/eww.texi
@@ -311,11 +311,9 @@ state the directionality.
311size or content. By customizing @code{shr-max-image-proportion} you 311size or content. By customizing @code{shr-max-image-proportion} you
312can set the maximal image proportion in relation to the window they 312can set the maximal image proportion in relation to the window they
313are displayed in. E.g., 0.7 means an image is allowed to take up 70% 313are displayed in. E.g., 0.7 means an image is allowed to take up 70%
314of the width and height. If Emacs supports image scaling (ImageMagick 314of the width and height. If Emacs supports image scaling, then larger
315support required) then larger images are scaled down. You can block 315images are scaled down. You can block specific images completely by
316specific images completely by customizing @code{shr-blocked-images}, 316customizing @code{shr-blocked-images}.
317or, if you want to only allow some specific images, customize
318@code{shr-allowed-images}.
319 317
320@vindex shr-inhibit-images 318@vindex shr-inhibit-images
321 You can control image display by customizing 319 You can control image display by customizing
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index c49e4e91d83..7edfde08f80 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -1896,22 +1896,23 @@ rename them using `vc-rename-file'."
1896 "Rename FILE to NEWNAME. 1896 "Rename FILE to NEWNAME.
1897Signal a `file-already-exists' error if a file NEWNAME already exists 1897Signal a `file-already-exists' error if a file NEWNAME already exists
1898unless OK-IF-ALREADY-EXISTS is non-nil." 1898unless OK-IF-ALREADY-EXISTS is non-nil."
1899 (dired-handle-overwrite newname) 1899 (let ((file-is-dir-p (file-directory-p file)))
1900 (dired-maybe-create-dirs (file-name-directory newname)) 1900 (dired-handle-overwrite newname)
1901 (if (and dired-vc-rename-file 1901 (dired-maybe-create-dirs (file-name-directory newname))
1902 (vc-backend file) 1902 (if (and dired-vc-rename-file
1903 (ignore-errors (vc-responsible-backend newname))) 1903 (vc-backend file)
1904 (vc-rename-file file newname) 1904 (ignore-errors (vc-responsible-backend newname)))
1905 ;; error is caught in -create-files 1905 (vc-rename-file file newname)
1906 (rename-file file newname ok-if-already-exists)) 1906 ;; error is caught in -create-files
1907 ;; Silently rename the visited file of any buffer visiting this file. 1907 (rename-file file newname ok-if-already-exists))
1908 (and (get-file-buffer file) 1908 ;; Silently rename the visited file of any buffer visiting this file.
1909 (with-current-buffer (get-file-buffer file) 1909 (and (get-file-buffer file)
1910 (set-visited-file-name newname nil t))) 1910 (with-current-buffer (get-file-buffer file)
1911 (dired-remove-file file) 1911 (set-visited-file-name newname nil t)))
1912 ;; See if it's an inserted subdir, and rename that, too. 1912 (dired-remove-file file)
1913 (when (file-directory-p file) 1913 ;; See if it's an inserted subdir, and rename that, too.
1914 (dired-rename-subdir file newname))) 1914 (when file-is-dir-p
1915 (dired-rename-subdir file newname))))
1915 1916
1916(defun dired-rename-subdir (from-dir to-dir) 1917(defun dired-rename-subdir (from-dir to-dir)
1917 (setq from-dir (file-name-as-directory from-dir) 1918 (setq from-dir (file-name-as-directory from-dir)
@@ -1924,7 +1925,7 @@ unless OK-IF-ALREADY-EXISTS is non-nil."
1924 (while blist 1925 (while blist
1925 (with-current-buffer (car blist) 1926 (with-current-buffer (car blist)
1926 (if (and buffer-file-name 1927 (if (and buffer-file-name
1927 (file-in-directory-p buffer-file-name expanded-from-dir)) 1928 (dired-in-this-tree-p buffer-file-name expanded-from-dir))
1928 (let ((modflag (buffer-modified-p)) 1929 (let ((modflag (buffer-modified-p))
1929 (to-file (replace-regexp-in-string 1930 (to-file (replace-regexp-in-string
1930 (concat "^" (regexp-quote from-dir)) 1931 (concat "^" (regexp-quote from-dir))
@@ -1943,7 +1944,7 @@ unless OK-IF-ALREADY-EXISTS is non-nil."
1943 (while alist 1944 (while alist
1944 (setq elt (car alist) 1945 (setq elt (car alist)
1945 alist (cdr alist)) 1946 alist (cdr alist))
1946 (if (file-in-directory-p (car elt) expanded-dir) 1947 (if (dired-in-this-tree-p (car elt) expanded-dir)
1947 ;; ELT's subdir is affected by the rename 1948 ;; ELT's subdir is affected by the rename
1948 (dired-rename-subdir-2 elt dir to))) 1949 (dired-rename-subdir-2 elt dir to)))
1949 (if (equal dir default-directory) 1950 (if (equal dir default-directory)
diff --git a/lisp/gnus/mm-encode.el b/lisp/gnus/mm-encode.el
index ead3bae219d..39b1ad1f3b9 100644
--- a/lisp/gnus/mm-encode.el
+++ b/lisp/gnus/mm-encode.el
@@ -99,7 +99,7 @@ This variable should never be set directly, but bound before a call to
99 99
100;;;###autoload 100;;;###autoload
101(define-obsolete-function-alias 'mm-default-file-encoding 101(define-obsolete-function-alias 'mm-default-file-encoding
102 #'mm-default-file-type "future") ;Old bad name. 102 #'mm-default-file-type "28.1") ;Old bad name.
103;;;###autoload 103;;;###autoload
104(defun mm-default-file-type (file) 104(defun mm-default-file-type (file)
105 "Return a default content type for FILE." 105 "Return a default content type for FILE."
diff --git a/lisp/simple.el b/lisp/simple.el
index bbab57703de..7e964c9d1d5 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -222,7 +222,7 @@ rejected, and the function returns nil."
222 222
223(defcustom next-error-find-buffer-function #'ignore 223(defcustom next-error-find-buffer-function #'ignore
224 "Function called to find a `next-error' capable buffer. 224 "Function called to find a `next-error' capable buffer.
225This functions takes the same three arguments as the function 225This function takes the same three arguments as the function
226`next-error-find-buffer', and should return the buffer to be 226`next-error-find-buffer', and should return the buffer to be
227used by the subsequent invocation of the command `next-error' 227used by the subsequent invocation of the command `next-error'
228and `previous-error'. 228and `previous-error'.
@@ -5289,7 +5289,7 @@ If `kill-append-merge-undo' is non-nil, remove the last undo
5289boundary in the current buffer." 5289boundary in the current buffer."
5290 (let ((cur (car kill-ring))) 5290 (let ((cur (car kill-ring)))
5291 (kill-new (if before-p (concat string cur) (concat cur string)) 5291 (kill-new (if before-p (concat string cur) (concat cur string))
5292 (or (string= cur "") 5292 (or (= (length cur) 0)
5293 (null (get-text-property 0 'yank-handler cur))))) 5293 (null (get-text-property 0 'yank-handler cur)))))
5294 (when (and kill-append-merge-undo (not buffer-read-only)) 5294 (when (and kill-append-merge-undo (not buffer-read-only))
5295 (let ((prev buffer-undo-list) 5295 (let ((prev buffer-undo-list)
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp
index 4cc733ee79e..b7818f8b21e 100644
--- a/msdos/sed1v2.inp
+++ b/msdos/sed1v2.inp
@@ -198,6 +198,8 @@ s/ *@WEBP_LIBS@//
198/^PAXCTL_dumped *=/s/=.*$/=/ 198/^PAXCTL_dumped *=/s/=.*$/=/
199/^PAXCTL_notdumped *=/s/=.*$/=/ 199/^PAXCTL_notdumped *=/s/=.*$/=/
200/^DUMPING *=/s/@DUMPING@/unexec/ 200/^DUMPING *=/s/@DUMPING@/unexec/
201/^[ \t]*MAKE_PDUMPER_FINGERPRINT = *$/c\
202MAKE_PDUMPER_FINGERPRINT =
201/^lisp\.mk:/,/^$/c\ 203/^lisp\.mk:/,/^$/c\
202lisp.mk: $(lispsource)/loadup.el\ 204lisp.mk: $(lispsource)/loadup.el\
203 @rm -f $@\ 205 @rm -f $@\
@@ -209,6 +211,10 @@ lisp.mk: $(lispsource)/loadup.el\
209 211
210/^ [ ]*\$(AM_V_at)\$(libsrc)\/make-docfile -d/s!make-docfile!make-docfile -o $(etc)/DOC! 212/^ [ ]*\$(AM_V_at)\$(libsrc)\/make-docfile -d/s!make-docfile!make-docfile -o $(etc)/DOC!
211/ > \$(etc)\/DOC *$/s/ >.*$// 213/ > \$(etc)\/DOC *$/s/ >.*$//
214/^\$(etc)\/DOC/,/^$/{
215 /^$/i\
216 cd ../src
217}
212/^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-docfile.*>.*globals.tmp/s!make-docfile!make-docfile -o globals.tmp! 218/^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-docfile.*>.*globals.tmp/s!make-docfile!make-docfile -o globals.tmp!
213/^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-doc/s!>.*$!! 219/^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-doc/s!>.*$!!
214/^\$(libsrc)\/make-docfile\$(EXEEXT): /i\ 220/^\$(libsrc)\/make-docfile\$(EXEEXT): /i\
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp
index 45e03621ce3..302fefe19f0 100644
--- a/msdos/sedlibmk.inp
+++ b/msdos/sedlibmk.inp
@@ -180,11 +180,14 @@ s/@PACKAGE@/emacs/
180/^GL_GNULIB_ENVIRON *=/s/@GL_GNULIB_ENVIRON@/1/ 180/^GL_GNULIB_ENVIRON *=/s/@GL_GNULIB_ENVIRON@/1/
181/^GL_GNULIB_FDATASYNC *=/s/@GL_GNULIB_FDATASYNC@/1/ 181/^GL_GNULIB_FDATASYNC *=/s/@GL_GNULIB_FDATASYNC@/1/
182/^GL_GNULIB_GETLOADAVG *=/s/@GL_GNULIB_GETLOADAVG@/1/ 182/^GL_GNULIB_GETLOADAVG *=/s/@GL_GNULIB_GETLOADAVG@/1/
183/^GL_GNULIB_GETRANDOM *=/s/@GL_GNULIB_GETRANDOM@/1/
183/^GL_GNULIB_UNISTD_H_GETOPT *=/s/@GL_GNULIB_UNISTD_H_GETOPT@/1/ 184/^GL_GNULIB_UNISTD_H_GETOPT *=/s/@GL_GNULIB_UNISTD_H_GETOPT@/1/
185/^GL_GNULIB_MEMMEM *=/s/@GL_GNULIB_MEMMEM@/1/
184/^GL_GNULIB_MEMRCHR *=/s/@GL_GNULIB_MEMRCHR@/1/ 186/^GL_GNULIB_MEMRCHR *=/s/@GL_GNULIB_MEMRCHR@/1/
185/^GL_GNULIB_MEMPCPY *=/s/@GL_GNULIB_MEMPCPY@/1/ 187/^GL_GNULIB_MEMPCPY *=/s/@GL_GNULIB_MEMPCPY@/1/
186/^GL_GNULIB_MKOSTEMP *=/s/@GL_GNULIB_MKOSTEMP@/1/ 188/^GL_GNULIB_MKOSTEMP *=/s/@GL_GNULIB_MKOSTEMP@/1/
187/^GL_GNULIB_MKTIME *=/s/@GL_GNULIB_MKTIME@/1/ 189/^GL_GNULIB_MKTIME *=/s/@GL_GNULIB_MKTIME@/1/
190/^GL_GNULIB_SIGDESCR_NP *=/s/@GL_GNULIB_SIGDESCR_NP@/1/
188/^GL_GNULIB_TIME_R *=/s/@GL_GNULIB_TIME_R@/1/ 191/^GL_GNULIB_TIME_R *=/s/@GL_GNULIB_TIME_R@/1/
189/^GL_GNULIB_TIMEGM *=/s/@GL_GNULIB_TIMEGM@/1/ 192/^GL_GNULIB_TIMEGM *=/s/@GL_GNULIB_TIMEGM@/1/
190/^GL_GNULIB_TIME_RZ *=/s/@GL_GNULIB_TIME_RZ@/1/ 193/^GL_GNULIB_TIME_RZ *=/s/@GL_GNULIB_TIME_RZ@/1/
diff --git a/src/msdos.h b/src/msdos.h
index 7e57c7c1102..24697bcf24b 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -22,6 +22,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
22#include <dpmi.h> 22#include <dpmi.h>
23 23
24#include "termhooks.h" /* struct terminal */ 24#include "termhooks.h" /* struct terminal */
25struct terminal;
26
27extern unsigned int _dos_commit(int);
28#define tcdrain(f) _dos_commit(f)
25 29
26int dos_ttraw (struct tty_display_info *); 30int dos_ttraw (struct tty_display_info *);
27int dos_ttcooked (void); 31int dos_ttcooked (void);
@@ -57,6 +61,11 @@ ssize_t readlinkat (int, const char *, char *, size_t);
57int fstatat (int, char const *, struct stat *, int); 61int fstatat (int, char const *, struct stat *, int);
58int unsetenv (const char *); 62int unsetenv (const char *);
59int faccessat (int, const char *, int, int); 63int faccessat (int, const char *, int, int);
64int openat (int, const char *, int, int);
65int fchmodat (int, const char *, mode_t, int);
66int futimens (int, const struct timespec[2]);
67int utimensat (int, const char *, const struct timespec[2], int);
68
60void msdos_fatal_signal (int); 69void msdos_fatal_signal (int);
61void syms_of_msdos (void); 70void syms_of_msdos (void);
62int pthread_sigmask (int, const sigset_t *, sigset_t *); 71int pthread_sigmask (int, const sigset_t *, sigset_t *);