all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Rmail conversion misfeature
@ 2009-03-20 22:52 Richard M Stallman
  2009-03-21  1:10 ` Stefan Monnier
  2009-03-21  2:25 ` Glenn Morris
  0 siblings, 2 replies; 6+ messages in thread
From: Richard M Stallman @ 2009-03-20 22:52 UTC (permalink / raw)
  To: emacs-devel

Querying before converting a Babyl file is misguided feature.
There is no way to proceed except to convert it.

I think the motive for this was to help people avoid
unwittingly rewriting Babyl files in mbox format.
I see the desirability of that goal, but this cure is
worse than the disease.  I plan to delete it.

I can envision a better way to achieve that goal: (1) mark the buffer
unmodified after conversion, and (2) change the operations that would
modify the buffer first warn you and query.  That feature won't cause
any hassles just to look at the file, but when you try to alter it,
you will be notified that this would result in changing its format
when you save the changes.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rmail conversion misfeature
  2009-03-20 22:52 Rmail conversion misfeature Richard M Stallman
@ 2009-03-21  1:10 ` Stefan Monnier
  2009-03-22  3:03   ` Richard M Stallman
  2009-03-21  2:25 ` Glenn Morris
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2009-03-21  1:10 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

> Querying before converting a Babyl file is misguided feature.
> There is no way to proceed except to convert it.

> I think the motive for this was to help people avoid
> unwittingly rewriting Babyl files in mbox format.
> I see the desirability of that goal, but this cure is
> worse than the disease.  I plan to delete it.

> I can envision a better way to achieve that goal: (1) mark the buffer
> unmodified after conversion, and (2) change the operations that would
> modify the buffer first warn you and query.  That feature won't cause
> any hassles just to look at the file, but when you try to alter it,
> you will be notified that this would result in changing its format
> when you save the changes.

That sounds good.  The only downside I could imagine is if you look at
this file repeatedly without ever modifying it, and it's large enough
that conversion takes a non-negligible time.  Not sure how likely is such
a scenario.


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rmail conversion misfeature
  2009-03-20 22:52 Rmail conversion misfeature Richard M Stallman
  2009-03-21  1:10 ` Stefan Monnier
@ 2009-03-21  2:25 ` Glenn Morris
  2009-03-22  3:03   ` Richard M Stallman
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2009-03-21  2:25 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard M Stallman wrote:

> Querying before converting a Babyl file is misguided feature.
> There is no way to proceed except to convert it.

Why not add a defcustom controlling this:

nil                   don't convert, just visit literally
t                     convert without asking
anything else         ask

When asking, it could offer you the choice to set said defcustom to
either t or nil (similar to how unsafe file local variables get handled).

> I can envision a better way to achieve that goal: (1) mark the
> buffer unmodified after conversion, and (2) change the operations
> that would modify the buffer first warn you and query. That feature
> won't cause any hassles just to look at the file, but when you try
> to alter it, you will be notified that this would result in changing
> its format when you save the changes.

That seems a bit complicated.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rmail conversion misfeature
  2009-03-21  1:10 ` Stefan Monnier
@ 2009-03-22  3:03   ` Richard M Stallman
  0 siblings, 0 replies; 6+ messages in thread
From: Richard M Stallman @ 2009-03-22  3:03 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

    That sounds good.  The only downside I could imagine is if you look at
    this file repeatedly without ever modifying it, and it's large enough
    that conversion takes a non-negligible time.

If you want to convert the file, it is easy to type commands
that will modify the RMAIL buffer and cause it to be saved.
d u s




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rmail conversion misfeature
  2009-03-21  2:25 ` Glenn Morris
@ 2009-03-22  3:03   ` Richard M Stallman
  2009-03-22 14:03     ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Richard M Stallman @ 2009-03-22  3:03 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

    Why not add a defcustom controlling this:

    nil                   don't convert, just visit literally
    t                     convert without asking
    anything else         ask

I will not object to offering the current behavior as an option,
but it seems so undesirable that I can't believe anyone would choose it,
so why bother to offer it?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rmail conversion misfeature
  2009-03-22  3:03   ` Richard M Stallman
@ 2009-03-22 14:03     ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-03-22 14:03 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

>     Why not add a defcustom controlling this:
>     nil                   don't convert, just visit literally
>     t                     convert without asking
>     anything else         ask

> I will not object to offering the current behavior as an option,
> but it seems so undesirable that I can't believe anyone would choose it,
> so why bother to offer it?

Agreed, your proposal is just much better.  As a general rule, asking
questions in `find-file' is not a good idea (tho it's sometimes the best
we can do).


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-22 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20 22:52 Rmail conversion misfeature Richard M Stallman
2009-03-21  1:10 ` Stefan Monnier
2009-03-22  3:03   ` Richard M Stallman
2009-03-21  2:25 ` Glenn Morris
2009-03-22  3:03   ` Richard M Stallman
2009-03-22 14:03     ` Stefan Monnier

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.