* quoting code blocks in Gnus without Org functions (was: draft group weirdness)
2011-04-06 1:43 ` Eric Abrahamsen
@ 2011-04-06 13:28 ` Ted Zlatanov
2011-04-06 14:14 ` quoting code blocks in Gnus without Org functions Julien Danjou
2011-04-10 15:50 ` draft group weirdness Eric Abrahamsen
` (3 subsequent siblings)
4 siblings, 1 reply; 23+ messages in thread
From: Ted Zlatanov @ 2011-04-06 13:28 UTC (permalink / raw)
To: ding
On Wed, 06 Apr 2011 09:43:30 +0800 Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
EA> Here's the backtrace:
EA> #+begin_src lisp
...
EA> #+end_src
I defined this skeleton for myself:
(define-skeleton skeleton-src-quote
"Insert a quoted Gnus source listing" "language: "
\n
> "#+begin_src " str \n
> "(CODE GOES HERE)" \n
> "#+end_src" \n \n)
I wonder if there's an easier way, maybe even with language completion
or auto-guessing based on the original buffer's mode, that doesn't
involve Org functions? IIRC Julien posted how to do it with Org.
Thanks
Ted
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-06 13:28 ` quoting code blocks in Gnus without Org functions (was: draft group weirdness) Ted Zlatanov
@ 2011-04-06 14:14 ` Julien Danjou
2011-04-06 14:21 ` Ted Zlatanov
0 siblings, 1 reply; 23+ messages in thread
From: Julien Danjou @ 2011-04-06 14:14 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: ding
[-- Attachment #1: Type: text/plain, Size: 381 bytes --]
On Wed, Apr 06 2011, Ted Zlatanov wrote:
> I wonder if there's an easier way, maybe even with language completion
> or auto-guessing based on the original buffer's mode, that doesn't
> involve Org functions? IIRC Julien posted how to do it with Org.
I'm not sure I understand what you want to do. Could you elaborate?
--
Julien Danjou
❱ http://julien.danjou.info
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-06 14:14 ` quoting code blocks in Gnus without Org functions Julien Danjou
@ 2011-04-06 14:21 ` Ted Zlatanov
2011-04-06 14:45 ` Julien Danjou
0 siblings, 1 reply; 23+ messages in thread
From: Ted Zlatanov @ 2011-04-06 14:21 UTC (permalink / raw)
To: ding
On Wed, 06 Apr 2011 16:14:13 +0200 Julien Danjou <julien@danjou.info> wrote:
JD> On Wed, Apr 06 2011, Ted Zlatanov wrote:
>> I wonder if there's an easier way, maybe even with language completion
>> or auto-guessing based on the original buffer's mode, that doesn't
>> involve Org functions? IIRC Julien posted how to do it with Org.
JD> I'm not sure I understand what you want to do. Could you elaborate?
I want to copy some text into the clipboard and then paste it into an
Emacs buffer (not necessarily Gnus). The original mode, e.g. lisp-mode,
should be considered when specifying the language of the code block. So
if I copy my function, it should look like this when pasted:
#+begin_src lisp
(define-skeleton skeleton-src-quote
"Insert a quoted Gnus source listing" "language: "
\n
> "#+begin_src " str \n
> "(CODE GOES HERE)" \n
> "#+end_src" \n \n)
#+end_src
...and I'd like to do it all without using Org functionality. Is that
possible?
Ted
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-06 14:21 ` Ted Zlatanov
@ 2011-04-06 14:45 ` Julien Danjou
2011-04-06 16:24 ` Ted Zlatanov
0 siblings, 1 reply; 23+ messages in thread
From: Julien Danjou @ 2011-04-06 14:45 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: ding
[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]
On Wed, Apr 06 2011, Ted Zlatanov wrote:
> I want to copy some text into the clipboard and then paste it into an
> Emacs buffer (not necessarily Gnus). The original mode, e.g. lisp-mode,
> should be considered when specifying the language of the code block. So
> if I copy my function, it should look like this when pasted:
>
> #+begin_src lisp
> (define-skeleton skeleton-src-quote
> "Insert a quoted Gnus source listing" "language: "
> \n
> > "#+begin_src " str \n
> > "(CODE GOES HERE)" \n
> > "#+end_src" \n \n)
> #+end_src
>
> ...and I'd like to do it all without using Org functionality. Is that
> possible?
Well, Org is only used to colorize the text rendered in Gnus, something
which is transparent since Org is included in Emacs.
What you want to do seems totally doable if we can have some information
about which buffer comes the yank from. But I doubt this is the case.
However you can still write something like (pseudo code :-)) and bind it
to a key:
(defun gnus-yank-code (code)
(interactive (get-selection-content-if-active)
(let ((buf (choose-a-buffer-using-something-like-gnus-dired-mail-buffers))
(mode (symbol-name major-mode)))
(with-current-buffer buf
(insert "#+begin_src " mode "\n")
(insert code)
(insert "+end_src")))))
--
Julien Danjou
❱ http://julien.danjou.info
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-06 14:45 ` Julien Danjou
@ 2011-04-06 16:24 ` Ted Zlatanov
2011-04-07 7:38 ` Julien Danjou
0 siblings, 1 reply; 23+ messages in thread
From: Ted Zlatanov @ 2011-04-06 16:24 UTC (permalink / raw)
To: ding
On Wed, 06 Apr 2011 16:45:58 +0200 Julien Danjou <julien@danjou.info> wrote:
JD> What you want to do seems totally doable if we can have some information
JD> about which buffer comes the yank from. But I doubt this is the case.
Here's my attempt. This works for ELisp code but not for others (the
`cond' needs to be extended obviously). Am I on the right track? Is
there a map of mode to "short name" that the highlight code uses? Or
can it just take the `major-mode' as string in addition to the "short
name", since it uses that for fontification anyhow?
(It felt very meta to copy the function with the function itself :)
#+begin_src lisp
(defun tzz-copy-region-with-mode-property (beg end)
(interactive "r")
(let ((text (buffer-substring beg end))
(mode major-mode))
(with-temp-buffer
(insert text)
(goto-char (point-min))
(insert "#+begin_src "
(cond
((memq mode '(lisp-interaction-mode emacs-lisp-mode))
"lisp")
(t "text"))
"\n")
(goto-char (point-max))
(insert "\n"
"#+end_src"
"\n")
(copy-region-as-kill (point-min) (point-max)))))
#+end_src
Thanks
Ted
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-06 16:24 ` Ted Zlatanov
@ 2011-04-07 7:38 ` Julien Danjou
2011-04-07 19:57 ` Ted Zlatanov
0 siblings, 1 reply; 23+ messages in thread
From: Julien Danjou @ 2011-04-07 7:38 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: ding
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
On Wed, Apr 06 2011, Ted Zlatanov wrote:
> Here's my attempt. This works for ELisp code but not for others (the
> `cond' needs to be extended obviously). Am I on the right track? Is
> there a map of mode to "short name" that the highlight code uses? Or
> can it just take the `major-mode' as string in addition to the "short
> name", since it uses that for fontification anyhow?
You do not need a cond. Simply put the current major mode symbol's name
without the -mode, e.g. lisp-interaction-mode -> lisp-interaction.
--
Julien Danjou
❱ http://julien.danjou.info
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-07 7:38 ` Julien Danjou
@ 2011-04-07 19:57 ` Ted Zlatanov
2011-04-07 21:20 ` Ted Zlatanov
2011-04-08 9:40 ` Julien Danjou
0 siblings, 2 replies; 23+ messages in thread
From: Ted Zlatanov @ 2011-04-07 19:57 UTC (permalink / raw)
To: ding
On Thu, 07 Apr 2011 09:38:48 +0200 Julien Danjou <julien@danjou.info> wrote:
JD> On Wed, Apr 06 2011, Ted Zlatanov wrote:
>> Here's my attempt. This works for ELisp code but not for others (the
>> `cond' needs to be extended obviously). Am I on the right track? Is
>> there a map of mode to "short name" that the highlight code uses? Or
>> can it just take the `major-mode' as string in addition to the "short
>> name", since it uses that for fontification anyhow?
JD> You do not need a cond. Simply put the current major mode symbol's name
JD> without the -mode, e.g. lisp-interaction-mode -> lisp-interaction.
Like this? Or should I say "text" as a fallback?
#+begin_src emacs-lisp
(defun tzz-copy-region-with-mode-property (beg end)
(interactive "r")
(let ((text (buffer-substring beg end))
(mode (symbol-name major-mode)))
(with-temp-buffer
(insert text)
(goto-char (point-min))
(insert "#+begin_src"
(if (string-match "\\(.+\\)-mode" mode)
(concat " " (match-string 1 mode))
"")
"\n")
(goto-char (point-max))
(insert "\n"
"#+end_src"
"\n")
(copy-region-as-kill (point-min) (point-max)))))
#+end_src
Thanks
Ted
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-07 19:57 ` Ted Zlatanov
@ 2011-04-07 21:20 ` Ted Zlatanov
2011-04-08 5:52 ` Ted Zlatanov
2011-04-08 9:40 ` Julien Danjou
1 sibling, 1 reply; 23+ messages in thread
From: Ted Zlatanov @ 2011-04-07 21:20 UTC (permalink / raw)
To: ding
On Thu, 07 Apr 2011 14:57:41 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote:
TZ> On Thu, 07 Apr 2011 09:38:48 +0200 Julien Danjou <julien@danjou.info> wrote:
JD> You do not need a cond. Simply put the current major mode symbol's name
JD> without the -mode, e.g. lisp-interaction-mode -> lisp-interaction.
TZ> #+begin_src emacs-lisp
This doesn't syntax-highlight like "lisp" does. So "lisp" is still
better currently.
Ted
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-07 21:20 ` Ted Zlatanov
@ 2011-04-08 5:52 ` Ted Zlatanov
2011-04-08 9:34 ` Balázs Tóth
0 siblings, 1 reply; 23+ messages in thread
From: Ted Zlatanov @ 2011-04-08 5:52 UTC (permalink / raw)
To: ding
On Thu, 07 Apr 2011 16:20:24 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote:
TZ> On Thu, 07 Apr 2011 14:57:41 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote:
TZ> On Thu, 07 Apr 2011 09:38:48 +0200 Julien Danjou <julien@danjou.info> wrote:
JD> You do not need a cond. Simply put the current major mode symbol's name
JD> without the -mode, e.g. lisp-interaction-mode -> lisp-interaction.
TZ> #+begin_src emacs-lisp
TZ> This doesn't syntax-highlight like "lisp" does. So "lisp" is still
TZ> better currently.
Huh, "lisp" is also not highlighted correctly in Gnus. I distinctly
recall the Emacs Lisp highlighting was applied to some examples you
posted, Julien. Is my example wrong or have I misconfigured something?
Thanks
Ted
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-08 5:52 ` Ted Zlatanov
@ 2011-04-08 9:34 ` Balázs Tóth
0 siblings, 0 replies; 23+ messages in thread
From: Balázs Tóth @ 2011-04-08 9:34 UTC (permalink / raw)
To: ding
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Thu, 07 Apr 2011 16:20:24 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote:
>
> TZ> On Thu, 07 Apr 2011 14:57:41 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote:
> TZ> On Thu, 07 Apr 2011 09:38:48 +0200 Julien Danjou <julien@danjou.info> wrote:
>
> JD> You do not need a cond. Simply put the current major mode symbol's name
> JD> without the -mode, e.g. lisp-interaction-mode -> lisp-interaction.
>
> TZ> #+begin_src emacs-lisp
>
> TZ> This doesn't syntax-highlight like "lisp" does. So "lisp" is still
> TZ> better currently.
>
> Huh, "lisp" is also not highlighted correctly in Gnus. I distinctly
> recall the Emacs Lisp highlighting was applied to some examples you
> posted, Julien. Is my example wrong or have I misconfigured something?
>
> Thanks
> Ted
Both "lisp" and "emacs-lisp" version is highlighted nicely for me.
Regards,
Balazs
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: quoting code blocks in Gnus without Org functions
2011-04-07 19:57 ` Ted Zlatanov
2011-04-07 21:20 ` Ted Zlatanov
@ 2011-04-08 9:40 ` Julien Danjou
2011-04-11 18:47 ` Ted Zlatanov
1 sibling, 1 reply; 23+ messages in thread
From: Julien Danjou @ 2011-04-08 9:40 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: ding
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
On Thu, Apr 07 2011, Ted Zlatanov wrote:
> Like this? Or should I say "text" as a fallback?
>
> #+begin_src emacs-lisp
> (defun tzz-copy-region-with-mode-property (beg end)
> (interactive "r")
> (let ((text (buffer-substring beg end))
> (mode (symbol-name major-mode)))
> (with-temp-buffer
> (insert text)
> (goto-char (point-min))
> (insert "#+begin_src"
> (if (string-match "\\(.+\\)-mode" mode)
> (concat " " (match-string 1 mode))
> "")
> "\n")
> (goto-char (point-max))
> (insert "\n"
> "#+end_src"
> "\n")
> (copy-region-as-kill (point-min) (point-max)))))
You do not need a fallback AFAIK, you would just end without any
fontification. :)
> This doesn't syntax-highlight like "lisp" does. So "lisp" is still
> better currently.
It does here.
> Huh, "lisp" is also not highlighted correctly in Gnus. I distinctly
> recall the Emacs Lisp highlighting was applied to some examples you
> posted, Julien. Is my example wrong or have I misconfigured something?
Check `org-src-fontify-natively' value?
--
Julien Danjou
❱ http://julien.danjou.info
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: draft group weirdness
2011-04-06 1:43 ` Eric Abrahamsen
2011-04-06 13:28 ` quoting code blocks in Gnus without Org functions (was: draft group weirdness) Ted Zlatanov
@ 2011-04-10 15:50 ` Eric Abrahamsen
2011-04-11 18:39 ` Ted Zlatanov
2011-04-10 15:54 ` Eric Abrahamsen
` (2 subsequent siblings)
4 siblings, 1 reply; 23+ messages in thread
From: Eric Abrahamsen @ 2011-04-10 15:50 UTC (permalink / raw)
To: ding
On Wed, Apr 06 2011, Eric Abrahamsen wrote:
> On Wed, Apr 06 2011, Lars Magne Ingebrigtsen wrote:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>
>>> I've been having a lot of trouble with the drafts group recently. I
>>> save drafts, go back into the drafts folder, hit 'e' to edit a message,
>>> and it asks me for a file to save into.
>>
>> That's bizarre. (setq debug-on-quit t) and `C-g' when it prompts, so
>> that we can see what function you're calling with `e'.
>
> Here's the backtrace:
>
> #+begin_src lisp
> Debugger entered--Lisp error: (quit)
> ad-Orig-completing-read("File to save in: ~/" (("dummy" . 1)) nil nil nil ido-file-history nil nil)
> completing-read("File to save in: ~/" (("dummy" . 1)) nil nil nil ido-file-history)
> byte-code("\304\305\b \"\306\307\211\n\307\v&\207" [item prompt ido-text-init history completing-read ido-make-prompt (("dummy" . 1)) nil] 7)
> ido-read-internal(file "File to save in: " ido-file-history nil nil nil)
> ido-read-file-name("File to save in: " "~/" nil nil nil nil)
> read-file-name("File to save in: ")
> basic-save-buffer()
> save-buffer()
> gnus-draft-edit-message()
> call-interactively(gnus-draft-edit-message nil nil)
> #+end_src
Other stuff…
My select method is nntp, and my secondary select methods nnml and nntp
(for gwene). Drafts get saved in ~/gnus/News/drafts/drafts, though there
is also an empty ~/gnus/Mail/drafts directory as well. Editing a single
saved earlier draft creates not only a "1" file in the above drafts
directory, but also a "2" and "3", all with the same content. These
files are not erased after the original message is sent or deleted.
(They might get erased later, I'm not sure.)
Losing marks happens when I am replying to an existing message, and save
that reply as a draft. Then when I edit the draft (or perhaps when I
send it?), the group that the original is in loses all its marks.
Hopefully something in there will raise a red flag. I've gotten better
at the debugger; "save-buffer" is obviously getting called at line 103
of gnus-draft.el, maybe I could figure out why that's the wrong buffer…
Thanks,
Eric
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: draft group weirdness
2011-04-06 1:43 ` Eric Abrahamsen
2011-04-06 13:28 ` quoting code blocks in Gnus without Org functions (was: draft group weirdness) Ted Zlatanov
2011-04-10 15:50 ` draft group weirdness Eric Abrahamsen
@ 2011-04-10 15:54 ` Eric Abrahamsen
2011-04-12 16:21 ` Lars Magne Ingebrigtsen
2011-04-12 16:19 ` Lars Magne Ingebrigtsen
2011-05-18 11:39 ` Eric Abrahamsen
4 siblings, 1 reply; 23+ messages in thread
From: Eric Abrahamsen @ 2011-04-10 15:54 UTC (permalink / raw)
To: ding
On Wed, Apr 06 2011, Eric Abrahamsen wrote:
> On Wed, Apr 06 2011, Lars Magne Ingebrigtsen wrote:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>
>>> I've been having a lot of trouble with the drafts group recently. I
>>> save drafts, go back into the drafts folder, hit 'e' to edit a message,
>>> and it asks me for a file to save into.
>>
Also! Just realized that the extra copies of the drafts do not get
automatically deleted, they popular the drafts folder and I have to
delete them by hand. My guess is the culprit is in here somewhere:
(setq gnus-home-directory "~/gnus/"
gnus-directory "~/gnus/News/"
message-directory "~/gnus/Mail/"
nnmail-message-id-cache-file "~/gnus/.nnmail-cache"
message-auto-save-directory "~/gnus/Mail/drafts"
gnus-cache-directory "~/gnus/News/cache")
Note that the "message-auto-save-directory" is *not* where messages get
autosaved, they go into the ~/gnus/News/drafts/drafts directory, same
with the deliberately saved messages.
Eric
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: draft group weirdness
2011-04-10 15:54 ` Eric Abrahamsen
@ 2011-04-12 16:21 ` Lars Magne Ingebrigtsen
2011-04-12 23:02 ` Eric Abrahamsen
0 siblings, 1 reply; 23+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-04-12 16:21 UTC (permalink / raw)
To: ding
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Also! Just realized that the extra copies of the drafts do not get
> automatically deleted, they popular the drafts folder and I have to
> delete them by hand. My guess is the culprit is in here somewhere:
>
> (setq gnus-home-directory "~/gnus/"
> gnus-directory "~/gnus/News/"
> message-directory "~/gnus/Mail/"
> nnmail-message-id-cache-file "~/gnus/.nnmail-cache"
> message-auto-save-directory "~/gnus/Mail/drafts"
> gnus-cache-directory "~/gnus/News/cache")
Ah, right. Well, something is confusing Gnus about... something. :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: draft group weirdness
2011-04-12 16:21 ` Lars Magne Ingebrigtsen
@ 2011-04-12 23:02 ` Eric Abrahamsen
0 siblings, 0 replies; 23+ messages in thread
From: Eric Abrahamsen @ 2011-04-12 23:02 UTC (permalink / raw)
To: ding
On Tue, Apr 12 2011, Lars Magne Ingebrigtsen wrote:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Also! Just realized that the extra copies of the drafts do not get
>> automatically deleted, they popular the drafts folder and I have to
>> delete them by hand. My guess is the culprit is in here somewhere:
>>
>> (setq gnus-home-directory "~/gnus/"
>> gnus-directory "~/gnus/News/"
>> message-directory "~/gnus/Mail/"
>> nnmail-message-id-cache-file "~/gnus/.nnmail-cache"
>> message-auto-save-directory "~/gnus/Mail/drafts"
>> gnus-cache-directory "~/gnus/News/cache")
>
> Ah, right. Well, something is confusing Gnus about... something. :-)
I came to the same conclusion! :)
I've done a fair amount of setting things up one way and then changing
them to another, and I think some of the changes have not been "clean".
I'd be perfectly happy to blast my setup and start afresh, if I was
confident that I'd be able to really clean out all the vestiges of prior
settings…
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: draft group weirdness
2011-04-06 1:43 ` Eric Abrahamsen
` (2 preceding siblings ...)
2011-04-10 15:54 ` Eric Abrahamsen
@ 2011-04-12 16:19 ` Lars Magne Ingebrigtsen
2011-05-18 11:39 ` Eric Abrahamsen
4 siblings, 0 replies; 23+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-04-12 16:19 UTC (permalink / raw)
To: ding
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> read-file-name("File to save in: ")
> basic-save-buffer()
> save-buffer()
> gnus-draft-edit-message()
I've been trying to debug this, but without any major success. The
symptom that's triggering this is that `buffer-file-name' is nil when
you hit `e'. That doesn't happen for me. Do you know whether you have
any customisations that would make your buffer file names disappear? (I
know, that's like looking for a needle in a haystack...)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: draft group weirdness
2011-04-06 1:43 ` Eric Abrahamsen
` (3 preceding siblings ...)
2011-04-12 16:19 ` Lars Magne Ingebrigtsen
@ 2011-05-18 11:39 ` Eric Abrahamsen
4 siblings, 0 replies; 23+ messages in thread
From: Eric Abrahamsen @ 2011-05-18 11:39 UTC (permalink / raw)
To: ding
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> On Wed, Apr 06 2011, Lars Magne Ingebrigtsen wrote:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>
>>> I've been having a lot of trouble with the drafts group recently. I
>>> save drafts, go back into the drafts folder, hit 'e' to edit a message,
>>> and it asks me for a file to save into.
>>
>> That's bizarre. (setq debug-on-quit t) and `C-g' when it prompts, so
>> that we can see what function you're calling with `e'.
I think I found the culprit here: window configuration. Doesn't make a
whole lot of sense, but neither did the error to begin with. I had a
three-pane thing going on, and I recently got rid of it because it was
such a pain to manually move point to the composition buffer when
replying to messages.
After I went back to the default, my draft strangeness went away.
Editing a draft multiple times still creates multiple editing buffers
for that message, but maybe that's normal.
It also cleared up another, equally weird problem: my mairix search
results folder was appearing in random places in the filesystem. My org
directory, recent directories I'd been working in, other places gnus had
no business knowing about… My eventual sense was that my last 'pwd'
location before switching to gnus was somehow hanging around and getting
substituted for gnus' base directory. This is mostly useless as a bug
report, I know, but I can't help mentioning it.
It's all very magical, but that's why I love emacs/gnus…
Eric
^ permalink raw reply [flat|nested] 23+ messages in thread