emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is the feature useful?
@ 2007-06-15 11:02 Leo
  2007-06-19  4:17 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Leo @ 2007-06-15 11:02 UTC (permalink / raw)
  To: emacs-orgmode

Dear list,

Do you think something similar to the following would be useful for org?

,----[ C-h f muse-what-changed RET ]
| muse-what-changed is an interactive compiled Lisp function in `muse-mode.el'.
| (muse-what-changed)
| 
| Show the unsaved changes that have been made to the current file.
`----

(defun muse-what-changed ()
  "Show the unsaved changes that have been made to the current file."
  (interactive)
  (diff-backup buffer-file-name))

Best,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

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

* Re: Is the feature useful?
  2007-06-15 11:02 Is the feature useful? Leo
@ 2007-06-19  4:17 ` Carsten Dominik
  2007-07-02  8:50   ` Xavier Maillard
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2007-06-19  4:17 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


On Jun 15, 2007, at 13:02, Leo wrote:

> Dear list,
>
> Do you think something similar to the following would be useful for 
> org?
>
> ,----[ C-h f muse-what-changed RET ]
> | muse-what-changed is an interactive compiled Lisp function in 
> `muse-mode.el'.
> | (muse-what-changed)
> |
> | Show the unsaved changes that have been made to the current file.
> `----

This looks like a function that is not only useful in org-mode,
but in any mode.

- Carsten

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

* Re: Is the feature useful?
  2007-06-19  4:17 ` Carsten Dominik
@ 2007-07-02  8:50   ` Xavier Maillard
  0 siblings, 0 replies; 3+ messages in thread
From: Xavier Maillard @ 2007-07-02  8:50 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Carsten Dominik <dominik <at> science.uva.nl> writes:

> > | (muse-what-changed)

> This looks like a function that is not only useful in org-mode,
> but in any mode.

Exactly. I use it all the time but this is my method:

(global-set-key
 (kbd "C-c d") 
   (lambda () (interactive) (diff-buffer-with-file (current-buffer))))

When I was more paranoid, pressing C-x C-s would have cause such thing
happening plus a yes-no question before saving the buffer content :) Now
I only use this plus version-control (to keep up to 7 old copies, 
just in case).

Xavier

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

end of thread, other threads:[~2007-07-02 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-15 11:02 Is the feature useful? Leo
2007-06-19  4:17 ` Carsten Dominik
2007-07-02  8:50   ` Xavier Maillard

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).