[Bug: 21.4.22] recent-files.el missing error handling

Aidan Kehoe kehoea at parhasard.net
Sun Jun 13 05:29:09 EDT 2010


 Ar an t-aonú lá déag de mí Meitheamh, scríobh Thomas Viehweger: 

 > recent-files.el,v 1.9 
 > If the path length is too long the recent-files menue becomes unusable. 
 >  
 > It seems, only the Windows build is affected by this bug. At least 
 > Debian-testing is not affected. 
 >  
 > Syntax error: "Gui item produces too long displayable string", "%_1 ...." 
 >  
 > It would be nice, if a new variable would be introduced, for example 
 > recent-files-max-filename-len 
 > and cut the first characters of the path/file similar as 
 > recent-files-filename-replacements does. 

The issue also doesn’t arise with 21.5, where the relevant buffer is
allocated dynamically. 

The actual limit is MAX_MENUITEM_LENGTH, #define’d in gui.h as 128. The
function to modify would be #'recent-files-entry-to-menu-entry; I’m not in a
rush to do it myself, but if you were to submit a patch that worked for you,
I’d be happy to commit it.

-- 
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
  -- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research



More information about the XEmacs-Beta mailing list