[slime-devel] Re: Better solution to redefinition warnings in Allegro

Peter Seibel peter at javamonkey.com
Wed Aug 18 21:45:00 UTC 2004


Peter Seibel <peter at javamonkey.com> writes:

> Helmut Eller <e9626484 at stud3.tuwien.ac.at> writes:
>
>> Peter Seibel <peter at javamonkey.com> writes:
>>
>>> Here's the patch; please let me know what you think.
>>
>> I think this looks good.
>>
>> It's possible that the buffer-name is different from the filename,
>> e.g. "foo.lisp<3>", and I think this case is not covered by the
>> current approach.  But that's pretty uncommon.  You could probably
>> pass the buffer-file-name instead of the directory just in case the
>> actual filename is ever needed.
>
> What about if instead of (buffer-name) in slime.el we use (or
> (buffer-file-name) (buffer-name))?

Er, rather:

  (if (buffer-file-name)
    (file-name-nondirectory (buffer-file-name))
    (buffer-name))

-Peter

-- 
Peter Seibel                                      peter at javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp





More information about the slime-devel mailing list