From: Mario Lassnig <mario@lassnig.net>
To: help-gnu-emacs@gnu.org
Subject: Re: diff-mode
Date: Tue, 14 Dec 2010 15:57:33 +0100 [thread overview]
Message-ID: <ie80kr$9hn$1@speranza.aioe.org> (raw)
In-Reply-To: mailman.4.1292337645.794.help-gnu-emacs@gnu.org
On 12/14/10 3:40 PM, Andrea Crotti wrote:
> Eli Zaretskii<eliz@gnu.org> writes:
>>
>> "Tools->Apply patch" from the menu bar. Is this what you want?
>
> Yes but well, something where I can read and analyze the diff before
> patching one by one is better.
> Diff-mode is perfectly fine, it would be perfect with a bit more
> font-locking but that's already good like this...
>
>>
>> When you press `q', Emacs asks a question. You must answer `y' (yes)
>> to get the control frame close automatically. Did you do that?
>
> Yes sure I did, and in fact it quits, but the small window remain there
> until I close it manually.
> But now I tried with "Emacs -Q" and this works fine, so it's something
> related to my configuration...
>
>
How about this? Side-by-side comparison, no external control frame,
and once you quit, it goes back to your previous visual configuration...
(setq ediff-window-setup-function 'ediff-setup-windows-plain)
(setq ediff-split-window-function 'split-window-horizontally)
(add-hook 'ediff-load-hook
(lambda ()
(add-hook 'ediff-before-setup-hook
(lambda ()
(setq ediff-saved-window-configuration
(current-window-configuration))))
(let ((restore-window-configuration
(lambda ()
(set-window-configuration
ediff-saved-window-configuration))))
(add-hook 'ediff-quit-hook restore-window-configuration
'append)
(add-hook 'ediff-suspend-hook
restore-window-configuration 'append))))
(add-hook 'ediff-cleanup-hook
(lambda ()
(kill-buffer ediff-buffer-A)))
next prev parent reply other threads:[~2010-12-14 14:57 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-12 11:44 diff-mode Andrea Crotti
2010-12-12 15:09 ` diff-mode Drew Adams
2010-12-12 17:59 ` diff-mode Andrea Crotti
2010-12-12 18:14 ` diff-mode Drew Adams
2010-12-13 23:22 ` diff-mode Andrea Crotti
2010-12-13 23:35 ` diff-mode Drew Adams
2010-12-14 10:04 ` diff-mode Eli Zaretskii
2010-12-14 10:13 ` diff-mode Leo
2010-12-14 11:07 ` diff-mode Eli Zaretskii
2010-12-14 14:40 ` diff-mode Andrea Crotti
2010-12-14 15:22 ` diff-mode Eli Zaretskii
[not found] ` <mailman.4.1292337645.794.help-gnu-emacs@gnu.org>
2010-12-14 14:57 ` Mario Lassnig [this message]
[not found] ` <mailman.2.1292282577.11279.help-gnu-emacs@gnu.org>
2010-12-14 8:43 ` diff-mode Elena
2010-12-14 10:11 ` diff-mode Eli Zaretskii
2010-12-14 10:16 ` diff-mode Leo
[not found] ` <mailman.1.1292321505.27999.help-gnu-emacs@gnu.org>
2010-12-14 13:40 ` diff-mode Elena
2010-12-14 14:57 ` diff-mode Andrea Crotti
2010-12-14 15:48 ` diff-mode Drew Adams
2010-12-14 15:57 ` diff-mode Andrea Crotti
2010-12-14 16:06 ` diff-mode Drew Adams
[not found] ` <mailman.5.1292338693.794.help-gnu-emacs@gnu.org>
2010-12-14 15:35 ` diff-mode Elena
2010-12-14 16:07 ` diff-mode Eli Zaretskii
2010-12-14 18:20 ` diff-mode Andrea Crotti
[not found] ` <mailman.7.1292342885.25302.help-gnu-emacs@gnu.org>
2010-12-14 16:22 ` diff-mode Elena
2010-12-14 18:51 ` diff-mode Eli Zaretskii
[not found] ` <mailman.5.1292352715.11323.help-gnu-emacs@gnu.org>
2010-12-14 19:48 ` diff-mode Elena
2010-12-14 15:46 ` diff-mode Richard Riley
2010-12-14 15:45 ` diff-mode Richard Riley
2010-12-15 14:12 ` diff-mode José A. Romero L.
2010-12-15 15:00 ` diff-mode Elena
2010-12-15 16:28 ` diff-mode José A. Romero L.
2010-12-15 16:46 ` diff-mode José A. Romero L.
2010-12-15 16:50 ` diff-mode José A. Romero L.
[not found] <mailman.3.1292154786.23431.help-gnu-emacs@gnu.org>
2010-12-12 12:46 ` diff-mode rusi
2010-12-12 18:02 ` diff-mode Andrea Crotti
[not found] ` <mailman.4.1292177110.18751.help-gnu-emacs@gnu.org>
2010-12-13 4:52 ` diff-mode rusi
2010-12-12 18:23 ` diff-mode Elena
2010-12-12 18:26 ` diff-mode Elena
2010-12-15 4:47 ` diff-mode Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ie80kr$9hn$1@speranza.aioe.org' \
--to=mario@lassnig.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.