all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* feature request: improve file recovery
@ 2012-08-05 10:06 Ivan Kanis
  2012-08-05 13:32 ` Stephen J. Turnbull
  2012-08-06 10:38 ` Stefan Monnier
  0 siblings, 2 replies; 9+ messages in thread
From: Ivan Kanis @ 2012-08-05 10:06 UTC (permalink / raw)
  To: emacs devel

Hi,

I get from time to time a prompt saying I should recover a file. When I
do it, I find it difficult to make a decision. It would be nice
to improve the recover-file function to pop up a window that shows
difference between the current file and its recovery.

Is there interest for this feature? I might have the time to write the
feature if it will be integrated in emacs.
-- 
Ivan Kanis
http://ivan.kanis.fr

I can stand brute force, but brute reason is quite unbearable.  There
is something unfair about its use. It is hitting below the intellect.
    -- Oscar Wilde



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

* feature request: improve file recovery
  2012-08-05 10:06 feature request: improve file recovery Ivan Kanis
@ 2012-08-05 13:32 ` Stephen J. Turnbull
  2012-08-06 18:01   ` Ivan Kanis
  2012-08-06 10:38 ` Stefan Monnier
  1 sibling, 1 reply; 9+ messages in thread
From: Stephen J. Turnbull @ 2012-08-05 13:32 UTC (permalink / raw)
  To: Ivan Kanis; +Cc: emacs devel

Ivan Kanis writes:


 > Is there interest for this feature? I might have the time to write the
 > feature if it will be integrated in emacs.

XEmacs has it.  Looks like it was written by Ben Wing and improved by
Mike Sperber.  Neither has a generic assignment on file but I believe
both are willing to sign limited assignments.

ben and mike at xemacs dot org.




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

* Re: feature request: improve file recovery
  2012-08-05 10:06 feature request: improve file recovery Ivan Kanis
  2012-08-05 13:32 ` Stephen J. Turnbull
@ 2012-08-06 10:38 ` Stefan Monnier
  1 sibling, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2012-08-06 10:38 UTC (permalink / raw)
  To: Ivan Kanis; +Cc: emacs devel

> I get from time to time a prompt saying I should recover a file. When I
> do it, I find it difficult to make a decision. It would be nice
> to improve the recover-file function to pop up a window that shows
> difference between the current file and its recovery.

Usually I do recover-this-file and then diff-buffer-with-file.

> Is there interest for this feature? I might have the time to write the
> feature if it will be integrated in emacs.

Yes it would be nice to get that diff before doing the recovery.


        Stefan



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

* Re: feature request: improve file recovery
  2012-08-05 13:32 ` Stephen J. Turnbull
@ 2012-08-06 18:01   ` Ivan Kanis
  2012-08-07 11:48     ` Michael Sperber
  0 siblings, 1 reply; 9+ messages in thread
From: Ivan Kanis @ 2012-08-06 18:01 UTC (permalink / raw)
  To: ben, mike; +Cc: stephen, emacs devel

"Stephen J. Turnbull" <stephen@xemacs.org> a écrit

> Ivan Kanis writes:
>
>
>  > Is there interest for this feature? I might have the time to write the
>  > feature if it will be integrated in emacs.
>
> XEmacs has it.  Looks like it was written by Ben Wing and improved by
> Mike Sperber.  Neither has a generic assignment on file but I believe
> both are willing to sign limited assignments.
>
> ben and mike at xemacs dot org.

Ben, Mike,

Would you sign a limited assignment for this feature?
-- 
Ivan Kanis
http://ivan.kanis.fr

Les maris des femmes qui nous plaisent sont toujours des imbéciles.
    -- Georges Feydeau



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

* Re: feature request: improve file recovery
  2012-08-06 18:01   ` Ivan Kanis
@ 2012-08-07 11:48     ` Michael Sperber
  2012-08-07 17:09       ` Bastien
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Sperber @ 2012-08-07 11:48 UTC (permalink / raw)
  To: Ivan Kanis; +Cc: stephen, mike, ben, emacs devel


Ivan Kanis <ivan.kanis@googlemail.com> writes:

> "Stephen J. Turnbull" <stephen@xemacs.org> a écrit
>
>> Ivan Kanis writes:
>>
>>
>>  > Is there interest for this feature? I might have the time to write the
>>  > feature if it will be integrated in emacs.
>>
>> XEmacs has it.  Looks like it was written by Ben Wing and improved by
>> Mike Sperber.  Neither has a generic assignment on file but I believe
>> both are willing to sign limited assignments.

I signed copyright assignments for everything in XEmacs to the FSF a
long time ago.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



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

* Re: feature request: improve file recovery
  2012-08-07 11:48     ` Michael Sperber
@ 2012-08-07 17:09       ` Bastien
  2012-08-07 18:36         ` Stephen J. Turnbull
  2012-08-07 19:29         ` Glenn Morris
  0 siblings, 2 replies; 9+ messages in thread
From: Bastien @ 2012-08-07 17:09 UTC (permalink / raw)
  To: Michael Sperber; +Cc: mike, stephen, Ivan Kanis, ben, emacs devel

Hi Michael,

Michael Sperber <sperber@deinprogramm.de> writes:

> I signed copyright assignments for everything in XEmacs to the FSF a
> long time ago.

Can we look at the XEmacs code for this online?

Or shall I download the whole beast and digg?

I'm willing to try adding this functionality.

-- 
 Bastien



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

* Re: feature request: improve file recovery
  2012-08-07 17:09       ` Bastien
@ 2012-08-07 18:36         ` Stephen J. Turnbull
  2012-08-07 19:29         ` Glenn Morris
  1 sibling, 0 replies; 9+ messages in thread
From: Stephen J. Turnbull @ 2012-08-07 18:36 UTC (permalink / raw)
  To: Bastien; +Cc: mike, Ivan Kanis, Michael Sperber, ben, emacs devel

Bastien writes:

 > Can we look at the XEmacs code for this online?

http://bitbucket.org/xemacs/xemacs

and navigate to lisp/files.el.

The functions you're looking for are at lines 3673 `recover-file' and
3113 `diff-files-for-recover'.  The latter handles the possibility
that the autosave file and the current version have different coding
systems.



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

* Re: feature request: improve file recovery
  2012-08-07 17:09       ` Bastien
  2012-08-07 18:36         ` Stephen J. Turnbull
@ 2012-08-07 19:29         ` Glenn Morris
  2012-08-08  5:08           ` Stephen J. Turnbull
  1 sibling, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2012-08-07 19:29 UTC (permalink / raw)
  To: Bastien; +Cc: emacs devel

Bastien wrote:

> Can we look at the XEmacs code for this online?
>
> Or shall I download the whole beast and digg?
>
> I'm willing to try adding this functionality.

Before you start, don't overlook this:

   Looks like it was written by Ben Wing

who has no assignment of any kind on file AFAICS, so you should not use
this as a basis for an implementation. I don't imagine it would be
difficult to simply write the feature from scratch though.



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

* Re: feature request: improve file recovery
  2012-08-07 19:29         ` Glenn Morris
@ 2012-08-08  5:08           ` Stephen J. Turnbull
  0 siblings, 0 replies; 9+ messages in thread
From: Stephen J. Turnbull @ 2012-08-08  5:08 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Bastien, emacs devel

Glenn Morris writes:

 > Before you start, don't overlook this:
 > 
 >    Looks like it was written by Ben Wing
 > 
 > who has no assignment of any kind on file AFAICS, so you should not use
 > this as a basis for an implementation.

It's a slight risk of being unable to distribute the new code, yes.
However, the effort of copying this code is likely to be quite small
on the one hand.  On the other, Ben has expressed his willingness to
sign papers in the past on several occasions; he has no objection in
principle to doing so, and I will encourage him to do so here.  The
only real problem likely to come up is that he intermittently drops
off the 'net and may not be reading his mail.

It's not a hard feature to implement straightforwardly, I've done it
myself.  However, there are a number of nuances in the XEmacs code
that might be useful to see in advance.  And it's surely less effort
to wait a while for a reply from Ben then to try to guess what XEmacs
has already learned from experience with the feature.




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

end of thread, other threads:[~2012-08-08  5:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-05 10:06 feature request: improve file recovery Ivan Kanis
2012-08-05 13:32 ` Stephen J. Turnbull
2012-08-06 18:01   ` Ivan Kanis
2012-08-07 11:48     ` Michael Sperber
2012-08-07 17:09       ` Bastien
2012-08-07 18:36         ` Stephen J. Turnbull
2012-08-07 19:29         ` Glenn Morris
2012-08-08  5:08           ` Stephen J. Turnbull
2012-08-06 10:38 ` 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.