Closed brabalan closed 10 years ago
I think this should fix it...
I still see the bug. I left a comment in the commit where I guess it should be changed (assuming the control flow is supposed to reach that point).
Let me know.
Yes, it's working. Thanks a lot!
When viewing a mail with an attachment using gnus, I get the following backtrace (bytecode removed):
The problematic call is here https://github.com/ergoemacs/ergoemacs-mode/blob/master/ergoemacs-advices.el#L166
At this point,
file
is the string"0001-ox-beamer.el-Match-latex-backend-in-generation-of-au.patch"
(the name of the attachment) coming from the call tobuffer-file-name
on https://github.com/ergoemacs/ergoemacs-mode/blob/master/ergoemacs-advices.el#L152As the call
(file-name-directory file)
returnsnil
, the subsequent call toexpand-file-name
fails.I'm using the current version of ergoemacs and the git version of gnus.