From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: insert-directory Date: Tue, 25 May 2004 12:06:56 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200405232218.i4NMIw307789@raven.dms.auburn.edu> <200405240000.i4O00ck07917@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085515772 22277 80.91.224.253 (25 May 2004 20:09:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 May 2004 20:09:32 +0000 (UTC) Cc: pete_lee@swbell.net, peter_breton@yahoo.com, teirllm@dms.auburn.edu, eliz@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 25 22:09:05 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BSiES-0005Ly-00 for ; Tue, 25 May 2004 22:09:04 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BSiER-0005Lp-00 for ; Tue, 25 May 2004 22:09:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSfIN-0002Ah-EL for emacs-devel@quimby.gnus.org; Tue, 25 May 2004 13:00:55 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BSewK-0005k9-8G for emacs-devel@gnu.org; Tue, 25 May 2004 12:38:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BSeUA-0000nJ-C1 for emacs-devel@gnu.org; Tue, 25 May 2004 12:09:41 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSeS9-0000Ix-22 for emacs-devel@gnu.org; Tue, 25 May 2004 12:06:57 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BSeS8-0004wq-AJ; Tue, 25 May 2004 12:06:56 -0400 Original-To: Luc Teirlinck In-reply-to: <200405240000.i4O00ck07917@raven.dms.auburn.edu> (message from Luc Teirlinck on Sun, 23 May 2004 19:00:38 -0500 (CDT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23931 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23931 --- 4336,4361 ---- (when (looking-at "//SUBDIRED//") (delete-region (point) (progn (forward-line 1) (point))) (forward-line -1)) ! (if (looking-at "//DIRED//") ! (let ((end (line-end-position))) ! (forward-word 1) ! (forward-char 3) ! (while (< (point) end) ! (let ((start (+ beg (read (current-buffer)))) ! (end (+ beg (read (current-buffer))))) ! (if (= (char-after end) ?\n) ! (put-text-property start end 'dired-filename t) ! ;; It seems that we can't trust ls's output as to ! ;; byte positions of filenames. ! (put-text-property beg (point) 'dired-filename nil) ! (end-of-line)))) ! (goto-char end) ! (beginning-of-line) ! (delete-region (point) (progn (forward-line 2) (point)))) ! (forward-line 1) ! (if (looking-at "//DIRED-OPTIONS//") ! (delete-region (point) (progn (forward-line 1) (point))) ! (forward-line 1)))) I don't see any harm in that patch, so please install it if you want to.