Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@pdc.kth.se>
Cc: lconrad@world.std.com, ding@gnus.org, bugs@gnus.org
Subject: Re: major problem with recent cvs
Date: 14 Mar 2000 12:42:35 +0100	[thread overview]
Message-ID: <ilug0ttu6ac.fsf@badis.pdc.kth.se> (raw)
In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "14 Mar 2000 11:48:37 +0100"

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> > +	 (expand-file-name (concat group "/") dir)
> 
> Do you think it would be good to use the following instead?
> 
> (file-name-as-directory (expand-file-name group dir))
> 
> Just a thought.

Good idea, here's a new patch.

Index: lisp/nnmail.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnmail.el,v
retrieving revision 5.48
diff -w -u -r5.48 nnmail.el
--- lisp/nnmail.el	2000/03/13 19:43:14	5.48
+++ lisp/nnmail.el	2000/03/14 11:43:56
@@ -470,13 +470,14 @@
      ;; If this directory exists, we use it directly.
      (if (or nnmail-use-long-file-names
 	     (file-directory-p (concat dir group)))
-	 (expand-file-name group dir)
+	 (file-name-as-directory (expand-file-name group dir))
        ;; If not, we translate dots into slashes.
+       (file-name-as-directory
        (expand-file-name
 	(mm-encode-coding-string
 	 (nnheader-replace-chars-in-string group ?. ?/)
 	 nnmail-pathname-coding-system)
-	dir)))
+	 dir))))
    (or file "")))
 
 (defun nnmail-get-active ()
Index: lisp/nnheader.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnheader.el,v
retrieving revision 5.35
diff -w -u -r5.35 nnheader.el
--- lisp/nnheader.el	2000/03/13 13:50:38	5.35
+++ lisp/nnheader.el	2000/03/14 11:43:56
@@ -730,12 +730,13 @@
    (let ((dir (file-name-as-directory (expand-file-name dir))))
      ;; If this directory exists, we use it directly.
      (if (file-directory-p (concat dir group))
-	 (expand-file-name group dir)
+	 (file-name-as-directory (expand-file-name group dir))
        ;; If not, we translate dots into slashes.
+       (file-name-as-directory
        (expand-file-name (mm-encode-coding-string
 			  (nnheader-replace-chars-in-string group ?. ?/)
 			  nnheader-pathname-coding-system)
-			 dir)))
+			  dir))))
    (cond ((null file) "")
 	 ((numberp file) (int-to-string file))
 	 (t file))))



  reply	other threads:[~2000-03-14 11:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-13 16:54 Laura Conrad
2000-03-13 23:58 ` Simon Josefsson
2000-03-14 10:48   ` Kai Großjohann
2000-03-14 11:42     ` Simon Josefsson [this message]
2000-03-14 14:56       ` lconrad
2000-03-14 15:07         ` Karl Kleinpaste
2000-03-14 15:37           ` Laura Conrad
2000-03-14 15:59         ` Kai Großjohann
2000-03-14 16:18           ` Laura Conrad
2000-03-14 16:55           ` Gunnar Evermann
2000-03-14 16:57             ` Kai Großjohann
2000-03-14 16:47         ` Kai Großjohann
2000-03-14 20:18           ` lconrad
2000-03-17 17:12         ` Resolution (was: Re: major problem with recent cvs) lconrad
2000-03-15 10:43       ` major problem with recent cvs Per Abrahamsen
2000-03-15 18:07         ` Jan Vroonhof
2000-03-16 10:34           ` Per Abrahamsen
2000-03-16 11:40             ` Jan Vroonhof
2000-03-17 13:20               ` Per Abrahamsen
2000-03-14 16:43   ` Jan Vroonhof
2000-03-14 17:17   ` Jan Vroonhof
     [not found] <8aj6qv$qvc$1@quimby.gnus.org>
2000-03-13 20:48 ` Emerick Rogul
2000-03-14 17:35   ` Matt Swift

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilug0ttu6ac.fsf@badis.pdc.kth.se \
    --to=jas@pdc.kth.se \
    --cc=bugs@gnus.org \
    --cc=ding@gnus.org \
    --cc=lconrad@world.std.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).