From: Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
Subject: Re: [angeli@iwi.uni-sb.de: [bibtex.el] Not possible to add entry in new file]
Date: Sun, 12 Oct 2003 15:03:30 +0200 [thread overview]
Message-ID: <16265.20770.469468.924642@tfkp07.physik.uni-erlangen.de> (raw)
> To: emacs-pretest-bug@gnu.org
> From: Ralf Angeli <angeli@iwi.uni-sb.de>
> Date: 25 Aug 2003 16:52:35 +0200
> Subject: [bibtex.el] Not possible to add entry in new file
> Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org
>
> After opening a new BibTeX file it is not possible to an entry via
> keyboard shortcuts like 'C-x C-e b' or the respective menu item.
> After trying this the following line appears in the *Messages* buffer:
>
> bibtex-prepare-new-entry: Beginning of buffer
>
> The problem does not occur if there is already an entry present in the
> file.
Hi
About a month ago I sent the patch below to emacs-devel@gnu.org. But
it seems to me that up to now it has not appeared in the CVS tree.
Could someone please install it?
Thank you very much,
Roland
2003-09-04 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
* textmodes/bibtex.el (bibtex-move-outside-of-entry): Bugfix. Move
backward only if point was not inside an entry.
--- bibtex.el 2003/06/30 17:59:05 1.25
+++ bibtex.el 2003/08/28 10:18:40
@@ -1656,16 +1656,15 @@
"Make sure point is outside of a BibTeX entry."
(let ((orig-point (point)))
(bibtex-end-of-entry)
- (when (<= (point) orig-point)
+ (when (< (point) orig-point)
;; We moved backward, so we weren't inside an entry to begin with.
;; Leave point at the beginning of a line, and preferably
;; at the beginning of a paragraph.
(goto-char orig-point)
(beginning-of-line 1)
- (let ((cb (char-before (1- (point)))))
- (unless (and cb (= ?\n cb))
- (re-search-forward "^[ \t]*[@\n]" nil 'move)
- (backward-char 1))))
+ (unless (= ?\n (char-before (1- (point))))
+ (re-search-forward "^[ \t]*[@\n]" nil 'move)
+ (backward-char 1)))
(skip-chars-forward " \t\n")))
(defun bibtex-beginning-of-first-entry ()
reply other threads:[~2003-10-12 13:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=16265.20770.469468.924642@tfkp07.physik.uni-erlangen.de \
--to=roland.winkler@physik.uni-erlangen.de \
/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.