* Strange problem with Gnus.
@ 2008-11-29 16:06 Andy Stewart
2008-11-30 18:10 ` Tassilo Horn
2008-11-30 19:38 ` Drew Adams
0 siblings, 2 replies; 3+ messages in thread
From: Andy Stewart @ 2008-11-29 16:06 UTC (permalink / raw
To: help-gnu-emacs
Hi, all.
I have setup `mml-default-directory' with "~/.gnus/", so when i attach a
file, Gnus will find files in "~/.gnus" default.
But when i use command `mml-attach-file' attach a file, example
"attach.el".
It will insert some part:
,------
| ... filename=#("~/.gnus/attach.el" 0 25 (face nil)) disposition=...
| ...
`------
When i send mail, will got error information
:mm-insert-file-contents: Opening input file: no such file or directory,
/home/andy/MyEmacs/Gnus/#("~/.gnus/attach.el" 0 25 (face nil))"
And i think right is like this:
,------
| ... filename="~/.gnus/attach.el" disposition=...
| ...
`------
And now attach file success.
So i want to ask why `mml-attach-file' have to insert "#(" front of
filepath, and why insert "0 25 (face nil))" after filepath?
Is my configuration wrong?
Any help?
Thank you very much.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Strange problem with Gnus.
2008-11-29 16:06 Strange problem with Gnus Andy Stewart
@ 2008-11-30 18:10 ` Tassilo Horn
2008-11-30 19:38 ` Drew Adams
1 sibling, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2008-11-30 18:10 UTC (permalink / raw
To: help-gnu-emacs
Andy Stewart <lazycat.manatee@gmail.com> writes:
Hi Andy,
> ,------
> | ... filename=#("~/.gnus/attach.el" 0 25 (face nil)) disposition=...
> | ...
> `------
Hm, the #(...) is text with fontification information. Do you use some
selfmade function to select the attachment? It looks to me that you use
`buffer-substring' somewhere where you should use
`buffer-substring-no-properties'.
> Is my configuration wrong?
Hard to tell without seeing it. ;-)
Bye,
Tassilo
--
My opinions may have changed, but not the fact that I am right.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Strange problem with Gnus.
2008-11-29 16:06 Strange problem with Gnus Andy Stewart
2008-11-30 18:10 ` Tassilo Horn
@ 2008-11-30 19:38 ` Drew Adams
1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-11-30 19:38 UTC (permalink / raw
To: 'Andy Stewart', help-gnu-emacs
Hi Andy,
This is a known Gnus bug (reported to gnus.gnus-bug by Daniel Dehennin,
2008-06-21). The problem is that Gnus simply plugs in (prints) a propertized
Lisp string as the value of the `filename' MML attribute. It does not ensure
that whatever it plugs in is in fact a valid MML attribute value. In particular,
it does not first remove any Emacs text properties (such as `face') from the
Lisp string.
I'm guessing that you are using Icicles - that can make this Gnus bug manifest.
Fortunately, there is an easy workaround.
IIUC, Gnus uses completion to pick up the string that it blindly plugs in.
Unlike vanilla Emacs, by default Icicles lets completion return a propertized
string. For example, if the completion candidates have the `face' property, then
the string that `completing-read' or `read-file-name' returns is such a
propertized string.
This is a feature. But you can turn it off by simply customizing option
`icicle-unpropertize-completion-result-flag' to non-nil. That will mean that you
give up that feature generally, but that's no big deal.
HTH, and sorry for the trouble. You might want to follow up with Gnus
development. I just checked gnus.gnus-bug, and there has apparently been no
reply to Daniel's bug report (subject: "File attachement with icicles is a
problem"). I don't know if Gnus development records and tracks bugs, other than
via the newsgroup.
- Drew
> From: Andy Stewart Sent: Saturday, November 29, 2008 8:06 AM
> I have setup `mml-default-directory' with "~/.gnus/", so when
> i attach a file, Gnus will find files in "~/.gnus" default.
>
> But when i use command `mml-attach-file' attach a file, example
> "attach.el". It will insert some part:
> filename=#("~/.gnus/attach.el" 0 25 (face nil)) disposition=...
> When i send mail, will got error information
>
> :mm-insert-file-contents: Opening input file: no such file or
> directory, /home/andy/MyEmacs/Gnus/#("~/.gnus/attach.el" 0 25
> (face nil))"
>
> And i think right is like this:
> filename="~/.gnus/attach.el" disposition=...
> And now attach file success.
>
> So i want to ask why `mml-attach-file' have to insert "#(" front of
> filepath, and why insert "0 25 (face nil))" after filepath?
> Is my configuration wrong? Any help?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-30 19:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-29 16:06 Strange problem with Gnus Andy Stewart
2008-11-30 18:10 ` Tassilo Horn
2008-11-30 19:38 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.