aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2005-10-23 12:17:28 +0000
committerMichael Albinus2005-10-23 12:17:28 +0000
commit9bc260cfb76b5bbe39a3edf1b3933e4be11de759 (patch)
tree9a401462217efe6afa01833aa18141d59a59e2ba
parent9f40e1d51e7d555119d5e6de61c27bf7c9e4706e (diff)
downloademacs-9bc260cfb76b5bbe39a3edf1b3933e4be11de759.tar.gz
emacs-9bc260cfb76b5bbe39a3edf1b3933e4be11de759.zip
* files.el (directory-listing-before-filename-regexp): New
defvar. Replaces `dired-move-to-filename-regexp' from dired.el. * dired.el (dired-move-to-filename-regexp): Removed. All occurences replaced by `directory-listing-before-filename-regexp'. * dired-x.el, locate.el, vc.el: Replace `dired-move-to-filename-regexp' by `directory-listing-before-filename-regexp'. In vc.el it is overwritten locally; maybe this can be handled in files.el too. * net/ange-ftp.el (ange-ftp-date-regexp): Removed. All occurences replaced by `directory-listing-before-filename-regexp'. * faq.texi (Bugs and problems): Replace `dired-move-to-filename-regexp' by `directory-listing-before-filename-regexp'.
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/dired-x.el2
-rw-r--r--lisp/dired.el71
-rw-r--r--lisp/files.el51
-rw-r--r--lisp/locate.el6
-rw-r--r--lisp/net/ange-ftp.el43
-rw-r--r--lisp/vc.el4
-rw-r--r--man/ChangeLog6
-rw-r--r--man/faq.texi4
9 files changed, 99 insertions, 104 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e15a3b6ef6a..e3e7f75b5e6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,19 @@
12005-10-23 Michael Albinus <michael.albinus@gmx.de>
2
3 * files.el (directory-listing-before-filename-regexp): New
4 defvar. Replaces `dired-move-to-filename-regexp' from dired.el.
5
6 * dired.el (dired-move-to-filename-regexp): Removed. All
7 occurences replaced by `directory-listing-before-filename-regexp'.
8
9 * dired-x.el, locate.el, vc.el: Replace
10 `dired-move-to-filename-regexp' by
11 `directory-listing-before-filename-regexp'. In vc.el it is
12 overwritten locally; maybe this can be handled in files.el too.
13
14 * net/ange-ftp.el (ange-ftp-date-regexp): Removed. All occurences
15 replaced by `directory-listing-before-filename-regexp'.
16
12005-10-23 Andreas Schwab <schwab@suse.de> 172005-10-23 Andreas Schwab <schwab@suse.de>
2 18
3 * font-lock.el (lisp-font-lock-keywords-2): Add eval-at-startup 19 * font-lock.el (lisp-font-lock-keywords-2): Add eval-at-startup
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 8ce5e5d48d0..50c52f0ab6b 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -1517,7 +1517,7 @@ to mark all zero length files."
1517 ;; Karsten Wenger <kw@cis.uni-muenchen.de> fixed uid. 1517 ;; Karsten Wenger <kw@cis.uni-muenchen.de> fixed uid.
1518 (setq uid (buffer-substring (+ (point) 1) 1518 (setq uid (buffer-substring (+ (point) 1)
1519 (progn (forward-word 1) (point)))) 1519 (progn (forward-word 1) (point))))
1520 (re-search-forward dired-move-to-filename-regexp) 1520 (re-search-forward directory-listing-before-filename-regexp)
1521 (goto-char (match-beginning 1)) 1521 (goto-char (match-beginning 1))
1522 (forward-char -1) 1522 (forward-char -1)
1523 (setq size (string-to-number (buffer-substring (save-excursion 1523 (setq size (string-to-number (buffer-substring (save-excursion
diff --git a/lisp/dired.el b/lisp/dired.el
index 3934fe4e433..3cc83b29fdd 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -842,16 +842,17 @@ BEG..END is the line where the file info is located."
842 ;; line, the alignment if this line w.r.t the rest is messed up because 842 ;; line, the alignment if this line w.r.t the rest is messed up because
843 ;; the fields of that one line will generally be smaller. 843 ;; the fields of that one line will generally be smaller.
844 ;; 844 ;;
845 ;; To work around this problem, we here add spaces to try and re-align the 845 ;; To work around this problem, we here add spaces to try and
846 ;; fields as needed. Since this is purely aesthetic, it is of utmost 846 ;; re-align the fields as needed. Since this is purely aesthetic,
847 ;; importance that it doesn't mess up anything like 847 ;; it is of utmost importance that it doesn't mess up anything like
848 ;; `dired-move-to-filename'. To this end, we limit ourselves to adding 848 ;; `dired-move-to-filename'. To this end, we limit ourselves to
849 ;; spaces only, and to only add them at places where there was already at 849 ;; adding spaces only, and to only add them at places where there
850 ;; least one space. This way, as long as `dired-move-to-filename-regexp' 850 ;; was already at least one space. This way, as long as
851 ;; always matches spaces with "*" or "+", we know we haven't made anything 851 ;; `directory-listing-before-filename-regexp' always matches spaces
852 ;; worse. There is one spot where the exact number of spaces is 852 ;; with "*" or "+", we know we haven't made anything worse. There
853 ;; important, which is just before the actual filename, so we refrain from 853 ;; is one spot where the exact number of spaces is important, which
854 ;; adding spaces there (and within the filename as well, of course). 854 ;; is just before the actual filename, so we refrain from adding
855 ;; spaces there (and within the filename as well, of course).
855 (save-excursion 856 (save-excursion
856 (let (file file-col other other-col) 857 (let (file file-col other other-col)
857 ;; Check the there is indeed a file, and that there is anoter adjacent 858 ;; Check the there is indeed a file, and that there is anoter adjacent
@@ -953,7 +954,7 @@ If HDR is non-nil, insert a header line with the directory name."
953 (setq switches (concat "--dired " switches))) 954 (setq switches (concat "--dired " switches)))
954 ;; We used to specify the C locale here, to force English month names; 955 ;; We used to specify the C locale here, to force English month names;
955 ;; but this should not be necessary any more, 956 ;; but this should not be necessary any more,
956 ;; with the new value of dired-move-to-filename-regexp. 957 ;; with the new value of `directory-listing-before-filename-regexp'.
957 (if file-list 958 (if file-list
958 (dolist (f file-list) 959 (dolist (f file-list)
959 (let ((beg (point))) 960 (let ((beg (point)))
@@ -1837,50 +1838,6 @@ DIR must be a directory name, not a file name."
1837 1838
1838;;; Functions for finding the file name in a dired buffer line. 1839;;; Functions for finding the file name in a dired buffer line.
1839 1840
1840(defvar dired-move-to-filename-regexp
1841 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)")
1842 (l-or-quote "\\([A-Za-z']\\|[^\0-\177]\\)")
1843 ;; In some locales, month abbreviations are as short as 2 letters,
1844 ;; and they can be followed by ".".
1845 ;; In Breton, a month name can include a quote character.
1846 (month (concat l-or-quote l-or-quote "+\\.?"))
1847 (s " ")
1848 (yyyy "[0-9][0-9][0-9][0-9]")
1849 (dd "[ 0-3][0-9]")
1850 (HH:MM "[ 0-2][0-9][:.][0-5][0-9]")
1851 (seconds "[0-6][0-9]\\([.,][0-9]+\\)?")
1852 (zone "[-+][0-2][0-9][0-5][0-9]")
1853 (iso-mm-dd "[01][0-9]-[0-3][0-9]")
1854 (iso-time (concat HH:MM "\\(:" seconds "\\( ?" zone "\\)?\\)?"))
1855 (iso (concat "\\(\\(" yyyy "-\\)?" iso-mm-dd "[ T]" iso-time
1856 "\\|" yyyy "-" iso-mm-dd "\\)"))
1857 (western (concat "\\(" month s "+" dd "\\|" dd "\\.?" s month "\\)"
1858 s "+"
1859 "\\(" HH:MM "\\|" yyyy "\\)"))
1860 (western-comma (concat month s "+" dd "," s "+" yyyy))
1861 ;; Japanese MS-Windows ls-lisp has one-digit months, and
1862 ;; omits the Kanji characters after month and day-of-month.
1863 ;; On Mac OS X 10.3, the date format in East Asian locales is
1864 ;; day-of-month digits followed by month digits.
1865 (mm "[ 0-1]?[0-9]")
1866 (east-asian
1867 (concat "\\(" mm l "?" s dd l "?" s "+"
1868 "\\|" dd s mm s "+" "\\)"
1869 "\\(" HH:MM "\\|" yyyy l "?" "\\)")))
1870 ;; The "[0-9]" below requires the previous column to end in a digit.
1871 ;; This avoids recognizing `1 may 1997' as a date in the line:
1872 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README
1873 ;; The "[BkKMGTPEZY]?" below supports "ls -alh" output.
1874 ;; The ".*" below finds the last match if there are multiple matches.
1875 ;; This avoids recognizing `jservice 10 1024' as a date in the line:
1876 ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host
1877 (concat ".*[0-9][BkKMGTPEZY]?" s
1878 "\\(" western "\\|" western-comma "\\|" east-asian "\\|" iso "\\)"
1879 s "+"))
1880 "Regular expression to match up to the file name in a directory listing.
1881The default value is designed to recognize dates and times
1882regardless of the language.")
1883
1884(defvar dired-permission-flags-regexp 1841(defvar dired-permission-flags-regexp
1885 "\\([^ ]\\)[-r][-w]\\([^ ]\\)[-r][-w]\\([^ ]\\)[-r][-w]\\([^ ]\\)" 1842 "\\([^ ]\\)[-r][-w]\\([^ ]\\)[-r][-w]\\([^ ]\\)[-r][-w]\\([^ ]\\)"
1886 "Regular expression to match the permission flags in `ls -l'.") 1843 "Regular expression to match the permission flags in `ls -l'.")
@@ -1898,12 +1855,12 @@ Return the position of the beginning of the filename, or nil if none found."
1898 (cond 1855 (cond
1899 ((and change (< change eol)) 1856 ((and change (< change eol))
1900 (goto-char change)) 1857 (goto-char change))
1901 ((re-search-forward dired-move-to-filename-regexp eol t) 1858 ((re-search-forward directory-listing-before-filename-regexp eol t)
1902 (goto-char (match-end 0))) 1859 (goto-char (match-end 0)))
1903 ((re-search-forward dired-permission-flags-regexp eol t) 1860 ((re-search-forward dired-permission-flags-regexp eol t)
1904 ;; Ha! There *is* a file. Our regexp-from-hell just failed to find it. 1861 ;; Ha! There *is* a file. Our regexp-from-hell just failed to find it.
1905 (if raise-error 1862 (if raise-error
1906 (error "Unrecognized line! Check dired-move-to-filename-regexp")) 1863 (error "Unrecognized line! Check directory-listing-before-filename-regexp"))
1907 (beginning-of-line) 1864 (beginning-of-line)
1908 nil) 1865 nil)
1909 (raise-error 1866 (raise-error
diff --git a/lisp/files.el b/lisp/files.el
index 89ff4da76a6..4373738080a 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4475,6 +4475,57 @@ program specified by `directory-free-space-program' if that is non-nil."
4475 (forward-word -1) 4475 (forward-word -1)
4476 (buffer-substring (point) end))))))))) 4476 (buffer-substring (point) end)))))))))
4477 4477
4478;; The following expression replaces `dired-move-to-filename-regexp'.
4479(defvar directory-listing-before-filename-regexp
4480 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)")
4481 (l-or-quote "\\([A-Za-z']\\|[^\0-\177]\\)")
4482 ;; In some locales, month abbreviations are as short as 2 letters,
4483 ;; and they can be followed by ".".
4484 ;; In Breton, a month name can include a quote character.
4485 (month (concat l-or-quote l-or-quote "+\\.?"))
4486 (s " ")
4487 (yyyy "[0-9][0-9][0-9][0-9]")
4488 (dd "[ 0-3][0-9]")
4489 (HH:MM "[ 0-2][0-9][:.][0-5][0-9]")
4490 (seconds "[0-6][0-9]\\([.,][0-9]+\\)?")
4491 (zone "[-+][0-2][0-9][0-5][0-9]")
4492 (iso-mm-dd "[01][0-9]-[0-3][0-9]")
4493 (iso-time (concat HH:MM "\\(:" seconds "\\( ?" zone "\\)?\\)?"))
4494 (iso (concat "\\(\\(" yyyy "-\\)?" iso-mm-dd "[ T]" iso-time
4495 "\\|" yyyy "-" iso-mm-dd "\\)"))
4496 (western (concat "\\(" month s "+" dd "\\|" dd "\\.?" s month "\\)"
4497 s "+"
4498 "\\(" HH:MM "\\|" yyyy "\\)"))
4499 (western-comma (concat month s "+" dd "," s "+" yyyy))
4500 ;; Japanese MS-Windows ls-lisp has one-digit months, and
4501 ;; omits the Kanji characters after month and day-of-month.
4502 ;; On Mac OS X 10.3, the date format in East Asian locales is
4503 ;; day-of-month digits followed by month digits.
4504 (mm "[ 0-1]?[0-9]")
4505 (east-asian
4506 (concat "\\(" mm l "?" s dd l "?" s "+"
4507 "\\|" dd s mm s "+" "\\)"
4508 "\\(" HH:MM "\\|" yyyy l "?" "\\)")))
4509 ;; The "[0-9]" below requires the previous column to end in a digit.
4510 ;; This avoids recognizing `1 may 1997' as a date in the line:
4511 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README
4512
4513 ;; The "[BkKMGTPEZY]?" below supports "ls -alh" output.
4514 ;; The ".*" below finds the last match if there are multiple matches.
4515 ;; This avoids recognizing `jservice 10 1024' as a date in the line:
4516 ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host
4517
4518 ;; vc dired listings provide the state or blanks between file
4519 ;; permissions and date. The state is always surrounded by
4520 ;; parantheses:
4521 ;; -rw-r--r-- (modified) 2005-10-22 21:25 files.el
4522 ;; This is not supported yet.
4523 (concat ".*[0-9][BkKMGTPEZY]?" s
4524 "\\(" western "\\|" western-comma "\\|" east-asian "\\|" iso "\\)"
4525 s "+"))
4526 "Regular expression to match up to the file name in a directory listing.
4527The default value is designed to recognize dates and times
4528regardless of the language.")
4478 4529
4479(defvar insert-directory-ls-version 'unknown) 4530(defvar insert-directory-ls-version 'unknown)
4480 4531
diff --git a/lisp/locate.el b/lisp/locate.el
index 390e0ec72b3..5b61ed522e9 100644
--- a/lisp/locate.el
+++ b/lisp/locate.el
@@ -376,13 +376,13 @@ do not work in subdirectories.
376 (set (make-local-variable 'dired-directory) "/") 376 (set (make-local-variable 'dired-directory) "/")
377 (set (make-local-variable 'dired-subdir-switches) locate-ls-subdir-switches) 377 (set (make-local-variable 'dired-subdir-switches) locate-ls-subdir-switches)
378 (setq dired-switches-alist nil) 378 (setq dired-switches-alist nil)
379 (make-local-variable 'dired-move-to-filename-regexp) 379 (make-local-variable 'directory-listing-before-filename-regexp)
380 ;; This should support both Unix and Windoze style names 380 ;; This should support both Unix and Windoze style names
381 (setq dired-move-to-filename-regexp 381 (setq directory-listing-before-filename-regexp
382 (concat "^." 382 (concat "^."
383 (make-string (1- locate-filename-indentation) ?\ ) 383 (make-string (1- locate-filename-indentation) ?\ )
384 "\\(/\\|[A-Za-z]:\\)\\|" 384 "\\(/\\|[A-Za-z]:\\)\\|"
385 (default-value 'dired-move-to-filename-regexp))) 385 (default-value 'directory-listing-before-filename-regexp)))
386 (make-local-variable 'dired-actual-switches) 386 (make-local-variable 'dired-actual-switches)
387 (setq dired-actual-switches "") 387 (setq dired-actual-switches "")
388 (make-local-variable 'dired-permission-flags-regexp) 388 (make-local-variable 'dired-permission-flags-regexp)
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index f50ca07a488..758346e3647 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -2666,36 +2666,6 @@ away in the internal cache."
2666;;;; Directory information caching support. 2666;;;; Directory information caching support.
2667;;;; ------------------------------------------------------------ 2667;;;; ------------------------------------------------------------
2668 2668
2669(defconst ange-ftp-date-regexp
2670 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)")
2671 ;; In some locales, month abbreviations are as short as 2 letters,
2672 ;; and they can be padded on the right with spaces.
2673 ;; weiand: changed: month ends with . or , or .,
2674;;old (month (concat l l "+ *"))
2675 (month (concat l l "+[.]?,? *"))
2676 ;; Recognize any non-ASCII character.
2677 ;; The purpose is to match a Kanji character.
2678 (k "[^\0-\177]")
2679 (s " ")
2680 (mm "[ 0-1][0-9]")
2681 ;; weiand: changed: day ends with .
2682;;old (dd "[ 0-3][0-9]")
2683 (dd "[ 0-3][0-9][.]?")
2684 (western (concat "\\(" month s dd "\\|" dd s month "\\)"))
2685 (japanese (concat mm k s dd k)))
2686 ;; Require the previous column to end in a digit.
2687 ;; This avoids recognizing `1 may 1997' as a date in the line:
2688 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README
2689 ;; albinus:
2690 ;; Require also the following column to start in a digit.
2691 ;; This avoids recognizing `kfs 10' as a date in the line:
2692 ;; -rw------- 1 kfs 10 May 27 2003 .autorun.lck
2693;; (concat "[0-9]" s "\\(" western "\\|" japanese "\\)" s))
2694 (concat "[0-9]" s "\\(" western "\\|" japanese "\\)" s "+[0-9]"))
2695 "Regular expression to match up to the column before the file name in a
2696directory listing. This regular expression is designed to recognize dates
2697regardless of the language.")
2698
2699(defvar ange-ftp-add-file-entry-alist nil 2669(defvar ange-ftp-add-file-entry-alist nil
2700 "Alist saying how to add file entries on certain OS types. 2670 "Alist saying how to add file entries on certain OS types.
2701Association list of pairs \( TYPE \. FUNC \), where FUNC 2671Association list of pairs \( TYPE \. FUNC \), where FUNC
@@ -2730,13 +2700,8 @@ The main reason for this alist is to deal with file versions in VMS.")
2730 ;;Extract the filename from the current line of a dired-like listing. 2700 ;;Extract the filename from the current line of a dired-like listing.
2731 `(let ((eol (progn (end-of-line) (point)))) 2701 `(let ((eol (progn (end-of-line) (point))))
2732 (beginning-of-line) 2702 (beginning-of-line)
2733 (if (re-search-forward ange-ftp-date-regexp eol t) 2703 (if (re-search-forward directory-listing-before-filename-regexp eol t)
2734 (progn 2704 (buffer-substring (point) eol))))
2735 (skip-chars-forward " ")
2736 (skip-chars-forward "^ " eol)
2737 (skip-chars-forward " " eol)
2738 ;; We bomb on filenames starting with a space.
2739 (buffer-substring (point) eol)))))
2740 2705
2741;; This deals with the F switch. Should also do something about 2706;; This deals with the F switch. Should also do something about
2742;; unquoting names obtained with the SysV b switch and the GNU Q 2707;; unquoting names obtained with the SysV b switch and the GNU Q
@@ -2851,7 +2816,7 @@ match subdirectories as well.")
2851 ;; (3) The twilight zone. 2816 ;; (3) The twilight zone.
2852 ;; We'll assume (1) for now. 2817 ;; We'll assume (1) for now.
2853 nil) 2818 nil)
2854 ((re-search-forward ange-ftp-date-regexp nil t) 2819 ((re-search-forward directory-listing-before-filename-regexp nil t)
2855 (beginning-of-line) 2820 (beginning-of-line)
2856 (ange-ftp-ls-parser switches)) 2821 (ange-ftp-ls-parser switches))
2857 ((re-search-forward "^[^ \n\t]+ +\\([0-9]+\\|-\\|=\\) " nil t) 2822 ((re-search-forward "^[^ \n\t]+ +\\([0-9]+\\|-\\|=\\) " nil t)
@@ -5532,7 +5497,7 @@ Other orders of $ and _ seem to all work just fine.")
5532 (let ((tbl (make-hash-table :test 'equal))) 5497 (let ((tbl (make-hash-table :test 'equal)))
5533 (goto-char (point-min)) 5498 (goto-char (point-min))
5534 (save-match-data 5499 (save-match-data
5535 (while (re-search-forward ange-ftp-date-regexp nil t) 5500 (while (re-search-forward directory-listing-before-filename-regexp nil t)
5536 (end-of-line) 5501 (end-of-line)
5537 (skip-chars-backward " ") 5502 (skip-chars-backward " ")
5538 (let ((end (point))) 5503 (let ((end (point)))
diff --git a/lisp/vc.el b/lisp/vc.el
index f7afbedc354..fc743f4962a 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -2061,10 +2061,10 @@ There is a special command, `*l', to mark all files currently locked."
2061 ;; when vc-dired-mode-map is initialized. 2061 ;; when vc-dired-mode-map is initialized.
2062 (set-keymap-parent vc-dired-mode-map dired-mode-map) 2062 (set-keymap-parent vc-dired-mode-map dired-mode-map)
2063 (add-hook 'dired-after-readin-hook 'vc-dired-hook nil t) 2063 (add-hook 'dired-after-readin-hook 'vc-dired-hook nil t)
2064 ;; The following is slightly modified from dired.el, 2064 ;; The following is slightly modified from files.el,
2065 ;; because file lines look a bit different in vc-dired-mode 2065 ;; because file lines look a bit different in vc-dired-mode
2066 ;; (the column before the date does not end in a digit). 2066 ;; (the column before the date does not end in a digit).
2067 (set (make-local-variable 'dired-move-to-filename-regexp) 2067 (set (make-local-variable 'directory-listing-before-filename-regexp)
2068 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)") 2068 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)")
2069 ;; In some locales, month abbreviations are as short as 2 letters, 2069 ;; In some locales, month abbreviations are as short as 2 letters,
2070 ;; and they can be followed by ".". 2070 ;; and they can be followed by ".".
diff --git a/man/ChangeLog b/man/ChangeLog
index 5a2741177e2..0a225d2f93f 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,9 @@
12005-10-23 Michael Albinus <michael.albinus@gmx.de>
2
3 * faq.texi (Bugs and problems): Replace
4 `dired-move-to-filename-regexp' by
5 `directory-listing-before-filename-regexp'.
6
12005-10-22 Eli Zaretskii <eliz@gnu.org> 72005-10-22 Eli Zaretskii <eliz@gnu.org>
2 8
3 * newsticker.texi (UPDATED): Set value. 9 * newsticker.texi (UPDATED): Set value.
diff --git a/man/faq.texi b/man/faq.texi
index 1212ed87d8e..4ac0bdc979c 100644
--- a/man/faq.texi
+++ b/man/faq.texi
@@ -3228,7 +3228,7 @@ setting things up so that @samp{ls -l} outputs US date format. This can
3228be done by setting the locale. See your OS manual for more information. 3228be done by setting the locale. See your OS manual for more information.
3229 3229
3230The second approach involves changing the regular expression used by 3230The second approach involves changing the regular expression used by
3231dired, @code{dired-move-to-filename-regexp}. 3231dired, @code{directory-listing-before-filename-regexp}.
3232 3232
3233@c ------------------------------------------------------------ 3233@c ------------------------------------------------------------
3234@node Compiling and installing Emacs, Finding Emacs and related packages, Bugs and problems, Top 3234@node Compiling and installing Emacs, Finding Emacs and related packages, Bugs and problems, Top
@@ -4634,7 +4634,7 @@ keymaps.
4634 4634
4635However, in the specific case of @kbd{C-h} and @key{DEL}, you should 4635However, in the specific case of @kbd{C-h} and @key{DEL}, you should
4636toggle @code{normal-erase-is-backspace-mode} instead of calling 4636toggle @code{normal-erase-is-backspace-mode} instead of calling
4637@code{keyboard-translate}. @inforef{DEL Does Not Delete, DEL Does Not Delete, 4637@code{keyboard-translate}. @inforef{DEL Does Not Delete, DEL Does Not Delete,
4638emacs}. 4638emacs}.
4639 4639
4640Keyboard translations are not the same as key bindings in keymaps. 4640Keyboard translations are not the same as key bindings in keymaps.