在置顶发帖时如何将脚注与消息文本放在一起?
我希望更好地控制电子邮件中脚注的位置。我可以编写代码来修改 footnote-mode
来执行我想要的操作,但首先我想看看其他人是否已经解决了这个问题。
当我使用 message-mode
进行置顶发布并使用 footnote-mode
添加条目时,脚注会转到缓冲区的末尾,但我希望它出现 < em>在上一条消息引用之前,其开头如下:
Elvis Presley <[email protected]> writes:
如果我根据 footnote-signature-separator
自动添加签名,则脚注将定位在签名之前,但是在电子邮件 我不使用 签名。此外,当我使用像这样的结束语时:
-Elvis
或者
Thanks,
Elvis
然后我通常希望脚注出现在该结束语之后。
我想要的是无论我是置顶发帖还是内联发帖,都能自动检测到最佳位置。我预计最好的解决方案是使用 text-properties-at
来检测 gnus-cite-*
行,并可能为脚注部分定义文本属性。和/或也许是覆盖?
另请注意,以下建议将不起作用:
(setq footnote-signature-separator "^-- $\\|@.*writes:")
这不仅对于我想要的定位控制类型来说过于简单,而且根本无法正常工作。
I want better control of the footnote positioning within an email message. I could write the code to modify footnote-mode
to do what I want, but first I want to see if somebody else has already solved this problem.
When I am top-posting with message-mode
and add an entry with footnote-mode
the footnotes go to the end of the buffer, but instead I want it to come before the previous message citation which starts out with something like:
Elvis Presley <[email protected]> writes:
If I have a signature automatically added based on footnote-signature-separator
then the footnotes get positioned before the signature, however in email I don't use a signature. And furthermore, when I use a closing like:
-Elvis
or
Thanks,
Elvis
then I usually want to footnotes to come after that closing.
What I would like is to have the best optimal position detected automatically whether I am top-posting or in-line posting. I expect the best solution will be to use text-properties-at
to detect gnus-cite-*
lines and maybe to define text properties for the footnotes section. And/or maybe overlays?
Also note that suggestions like the following will not work:
(setq footnote-signature-separator "^-- $\\|@.*writes:")
Not only is that overly simplistic for the kind of positioning control I would like, but it also simply does not work correctly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论