bugMIT/GNU Scheme - Bugs: bug #44913, PATHNAME-TYPE reports wrong file...

 
 

bug #44913: PATHNAME-TYPE reports wrong file types for backup files in Dired buffers

Submitted by:  None
Submitted on:  Fri 24 Apr 2015 02:50:46 AM UTC  
 
Category:  runtime Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Suboptimal behavior
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Rich Loveland
Originator Email:  -email is unavailable- Open/Closed:  Open
Keywords: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 25 Apr 2015 12:51:21 AM UTC, comment #1:

I think the real problem is that pathname-type is not unspecific too, like pathname-version. Unix doesn't have either one, numerous customs notwithstanding. DIRECTORY-READ should really be returning pathnames with just a name component on Unix, e.g. "my-diary.txt.gpg~". That seems VASTLY less troublesome than guessing. I'll throw in a glob function as a consolation. :-)

Matt Birkholz <mhb>
Project Member
Fri 24 Apr 2015 02:50:46 AM UTC, original submission:

To reproduce:

1. In Edwin, browse a directory in dired where you have some numbered autosave files, e.g., 'foo.txt.~12~'. Position your cursor on one of these files.

2. M-: (ge '(edwin dired))

3. M-: (pathname-type (dired-current-pathname))

Expected behavior is that it returns "txt", since that is the file type.

Actual behavior is that it returns "~12~".

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mhb (Posted a comment)
  • -email is unavailable- added by mhb
  • -email is unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-25 mhb Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.3