
Peter Seibel <peter@javamonkey.com> writes:
Helmut Eller <e9626484@stud3.tuwien.ac.at> writes:
Peter Seibel <peter@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@javamonkey.com Lisp is the red pill. -- John Fraser, comp.lang.lisp