mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-07 14:51:40 -07:00
The error messages are now displayed in a popped up buffer instead of being output in the Dired buffer and signalling an error. The file name bounds in Dired entries are now determined solely by the offsets calculated by 'ls' with the --dired option and consequently Dired now reliably recognizes file names that contain a newline (bug#80499). * etc/NEWS: Announce new Dired handling of errors from 'ls'. * lisp/dired.el (dired-internal-noselect): Check Dired buffer for file entries and if there are none kill the buffer to prevent displaying a Dired buffer with no file entries. (dired--ls-error-buffer): New variable. (dired--display-ls-error): New function. (dired, dired-other-window, dired-other-frame, dired-other-tab): Use it to pop up buffer with error message emitted by 'ls'. * lisp/files.el (insert-directory-clean): Remove the code that treats lines beginning at column 0 in a Dired buffer as error lines and consequently also remove the code using these lines to adjust the offsets specifying the bounds of the file name in the Dired entries. If the buffer contains a //DIRED-OPTIONS// line output by --dired, delete this line even when it is at BOB. (insert-directory): Remove the code that checks the return value of 'ls' and signals an error based on that value. Write any error message emitted by 'ls' to a temporary file and insert its content into a buffer, which will be popped when invoking a Dired command results in the 'ls' error. Adjust the comment above this function to accommodate file names containing a newline in Dired entries. (insert-directory-adj-pos): Remove this now unused function. * test/lisp/dired-tests.el (dired-test-filename-with-newline-1) (dired-test-filename-with-newline-2) (dired-test-ls-error-message): New tests. * test/lisp/files-tests.el (files-tests-file-name-non-special-insert-directory): Adjust test to use of 'ls' error buffer instead of signaling an error. |
||
|---|---|---|
| .. | ||
| charsets | ||
| e | ||
| forms | ||
| gnus | ||
| images | ||
| nxml | ||
| org | ||
| refcards | ||
| schema | ||
| srecode | ||
| themes | ||
| tutorials | ||
| AUTHORS | ||
| CALC-NEWS | ||
| ChangeLog.1 | ||
| compilation.txt | ||
| COPYING | ||
| copyright-assign.txt | ||
| DEBUG | ||
| DEVEL.HUMOR | ||
| DISTRIB | ||
| edt-user.el | ||
| EGLOT-NEWS | ||
| emacs-buffer.gdb | ||
| emacs-mail.desktop | ||
| emacs.desktop | ||
| emacs.icon | ||
| emacs.metainfo.xml | ||
| emacs.service | ||
| emacs_lldb.py | ||
| emacsclient-mail.desktop | ||
| emacsclient.desktop | ||
| enriched.txt | ||
| ERC-NEWS | ||
| ETAGS.EBNF | ||
| ETAGS.README | ||
| future-bug | ||
| gnus-tut.txt | ||
| grep.txt | ||
| HELLO | ||
| HISTORY | ||
| JOKES | ||
| MACHINES | ||
| MH-E-NEWS | ||
| NEWS | ||
| NEWS.1-17 | ||
| NEWS.18 | ||
| NEWS.19 | ||
| NEWS.20 | ||
| NEWS.21 | ||
| NEWS.22 | ||
| NEWS.23 | ||
| NEWS.24 | ||
| NEWS.25 | ||
| NEWS.26 | ||
| NEWS.27 | ||
| NEWS.28 | ||
| NEWS.29 | ||
| NEWS.30 | ||
| NEXTSTEP | ||
| NXML-NEWS | ||
| ORG-NEWS | ||
| org.gnu.emacs.defaults.gschema.xml | ||
| package-autosuggest.eld | ||
| package-keyring.gpg | ||
| PROBLEMS | ||
| ps-prin0.ps | ||
| ps-prin1.ps | ||
| publicsuffix.txt | ||
| README | ||
| rgb.txt | ||
| ses-example.ses | ||
| spook.lines | ||
| symbol-releases.eld | ||
| TERMS | ||
| TODO | ||
| w32-feature.el | ||
This directory contains the architecture-independent files used by or with Emacs. This includes some text files of documentation for GNU Emacs or of interest to Emacs users, and the file of dumped docstrings for Emacs functions and variables. COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES File: emacs.icon Author: Sun Microsystems, Inc Copyright (C) 1999, 2001-2026 Free Software Foundation, Inc. License: GNU General Public License version 3 or later (see COPYING)