all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Moving by entries and paragraphs in BibTeX mode
@ 2008-01-15 22:52 Yevgeniy Makarov
  2008-01-16  3:56 ` Roland Winkler
  0 siblings, 1 reply; 3+ messages in thread
From: Yevgeniy Makarov @ 2008-01-15 22:52 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I find it surprising that forward-paragraph and backward-paragraph
commands move point by fields, not entries in BibTeX mode. (An entry
is a complete record for a publication, a field is its part, such as
Author.) The reason this is surprising is that the value of paragraph-
separate is "[ \t]*$", as in text mode. (The values of paragraph-start
are slightly different, but even if I make them the same it does not
change the behavior of BibTeX mode.)

I also did not find any commands that move the point from one entry to
the next or previous. There are bibtex-beginning-of-entry and bibtex-
end-of-entry, but they don't leave the current entry.

How can I move the point by entries?

Thank you,
Evgeny

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

* Re: Moving by entries and paragraphs in BibTeX mode
  2008-01-15 22:52 Moving by entries and paragraphs in BibTeX mode Yevgeniy Makarov
@ 2008-01-16  3:56 ` Roland Winkler
  2008-01-16 18:16   ` Yevgeniy Makarov
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Winkler @ 2008-01-16  3:56 UTC (permalink / raw)
  To: help-gnu-emacs

Yevgeniy Makarov <emakarov@gmail.com> writes:

> I find it surprising that forward-paragraph and backward-paragraph
> commands move point by fields, not entries in BibTeX mode. (An entry
> is a complete record for a publication, a field is its part, such as
> Author.) The reason this is surprising is that the value of paragraph-
> separate is "[ \t]*$", as in text mode. (The values of paragraph-start
> are slightly different, but even if I make them the same it does not
> change the behavior of BibTeX mode.)

In BibTeX files, a `paragraph' is used in other context, too. Say
the function fill-paragraph operates on one field, not on one entry,
and I find that meaningful.

> I also did not find any commands that move the point from one entry to
> the next or previous. There are bibtex-beginning-of-entry and bibtex-
> end-of-entry, but they don't leave the current entry.

The reason there are no commands for this is most likely that up to
now nobody has missed them. (BibTeX files are like a database.
Rarely you need to browse through them one by one.) 

However, if you jump from one @ to the next / previous @ you are
most likely jumping from one entry to the other. I guess that typing
C-s @ is as efficient as executing a command that does perform this
action.

Roland

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

* Re: Moving by entries and paragraphs in BibTeX mode
  2008-01-16  3:56 ` Roland Winkler
@ 2008-01-16 18:16   ` Yevgeniy Makarov
  0 siblings, 0 replies; 3+ messages in thread
From: Yevgeniy Makarov @ 2008-01-16 18:16 UTC (permalink / raw)
  To: help-gnu-emacs

> In BibTeX files, a `paragraph' is used in other context, too. Say
> the function fill-paragraph operates on one field, not on one entry,
> and I find that meaningful.

You are right: this makes sense.

> However, if you jump from one @ to the next / previous @ you are
> most likely jumping from one entry to the other. I guess that typing
> C-s @ is as efficient as executing a command that does perform this
> action.

Thanks, that's a great idea.

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

end of thread, other threads:[~2008-01-16 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 22:52 Moving by entries and paragraphs in BibTeX mode Yevgeniy Makarov
2008-01-16  3:56 ` Roland Winkler
2008-01-16 18:16   ` Yevgeniy Makarov

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.