all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* M-n in diff mode: use to a better spot?
@ 2004-06-06 11:08 Kai Grossjohann
  2004-06-06 22:33 ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Grossjohann @ 2004-06-06 11:08 UTC (permalink / raw)


For composing my ChangeLog entries, I like to do C-x v = on the
current file (or `=' from PCL-CVS), then I iterate over the hunks and
describe each change listed there.

However, it fairly often happens that the beginning of the hunk is
not in the method I would like to describe.  So what I do is to
manually move point down to the line starting with + or -, so that
C-x 4 a will automatically fill in the right method name for me.

WIBNI there was some automatic way of moving to the right spot in the
diff buffer, so that C-x 4 a can provide a better default?

Kai

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

* Re: M-n in diff mode: use to a better spot?
  2004-06-06 11:08 M-n in diff mode: use to a better spot? Kai Grossjohann
@ 2004-06-06 22:33 ` Richard Stallman
  2004-06-07  5:13   ` Kai Grossjohann
  2004-06-13 16:56   ` Kai Grossjohann
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Stallman @ 2004-06-06 22:33 UTC (permalink / raw)
  Cc: emacs-devel

    WIBNI there was some automatic way of moving to the right spot in the
    diff buffer, so that C-x 4 a can provide a better default?

Are you suggesting that if point is at the start of the hunk, C-x 4 a
should operate on the file position of first change in the hunk, rather
than on the file position corresponding to point?  That would have the
effect you want, and I think it would not cause problems.

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

* Re: M-n in diff mode: use to a better spot?
  2004-06-06 22:33 ` Richard Stallman
@ 2004-06-07  5:13   ` Kai Grossjohann
  2004-06-07 19:17     ` Richard Stallman
  2004-06-13 16:56   ` Kai Grossjohann
  1 sibling, 1 reply; 5+ messages in thread
From: Kai Grossjohann @ 2004-06-07  5:13 UTC (permalink / raw)


Richard Stallman <rms@gnu.org> writes:

>     WIBNI there was some automatic way of moving to the right spot in the
>     diff buffer, so that C-x 4 a can provide a better default?
>
> Are you suggesting that if point is at the start of the hunk, C-x 4 a
> should operate on the file position of first change in the hunk, rather
> than on the file position corresponding to point?  That would have the
> effect you want, and I think it would not cause problems.

That would be fine.  Another possibility is for M-n to move to the
first +/-/! line inside the hunk instead of to the start of the
hunk.  Yet another possibility is to make a new command which moves
to the +/-/! line inside the hunk.  I would be happy with any one of
these.

Kai

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

* Re: M-n in diff mode: use to a better spot?
  2004-06-07  5:13   ` Kai Grossjohann
@ 2004-06-07 19:17     ` Richard Stallman
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2004-06-07 19:17 UTC (permalink / raw)
  Cc: emacs-devel

    That would be fine.  Another possibility is for M-n to move to the
    first +/-/! line inside the hunk instead of to the start of the
    hunk.

That would look strange, I think.  Especially if it moves to the
"first" + line, in the second part of the hunk, because that comes
earlier in the source than the first - line in the first part of the
hunk.

So I suggest changing C-x 4 a's defaulting.

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

* Re: M-n in diff mode: use to a better spot?
  2004-06-06 22:33 ` Richard Stallman
  2004-06-07  5:13   ` Kai Grossjohann
@ 2004-06-13 16:56   ` Kai Grossjohann
  1 sibling, 0 replies; 5+ messages in thread
From: Kai Grossjohann @ 2004-06-13 16:56 UTC (permalink / raw)


Richard Stallman <rms@gnu.org> writes:

>     WIBNI there was some automatic way of moving to the right spot in the
>     diff buffer, so that C-x 4 a can provide a better default?
>
> Are you suggesting that if point is at the start of the hunk, C-x 4 a
> should operate on the file position of first change in the hunk, rather
> than on the file position corresponding to point?  That would have the
> effect you want, and I think it would not cause problems.

Done.

I wonder, if point is at the start of a file, should it then operate
on the file position of the first change in the first hunk?
Currently, it doesn't.

Kai

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

end of thread, other threads:[~2004-06-13 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-06 11:08 M-n in diff mode: use to a better spot? Kai Grossjohann
2004-06-06 22:33 ` Richard Stallman
2004-06-07  5:13   ` Kai Grossjohann
2004-06-07 19:17     ` Richard Stallman
2004-06-13 16:56   ` Kai Grossjohann

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.