GNU bug report logs - #1907
23.0.60; bibtex failed on this bib entry

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Wed, 14 Jan 2009 22:45:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1907 in the body.
You can then email your comments to 1907 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1907; Package emacs. (Wed, 14 Jan 2009 22:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 14 Jan 2009 22:45:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; bibtex failed on this bib entry
Date: Thu, 15 Jan 2009 06:37:55 +0800
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug <at> gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

In BibTeX-mode run C-c C-c on this entry to get the backtrace.

@misc{dingle1976qeh,
  title={{Quantum effects in heterostructure lasers}},
  author={Dingle, R. and Henry, C.H.},
  year={1976},
  month=sep # "~21",
  publisher={Google Patents},
  note={US Patent 3,982,207}
}

The bib entry can also be obtained from the following link
http://scholar.google.com/scholar.bib?hl=en&lr=&newwindow=1&output=search&q=info:O42N6xYt09QJ:scholar.google.com/&output=citation&oe=ASCII&oi=citation

Backtrace:

Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 143 210)
  scan-sexps(143 1)
  forward-sexp(1)
  bibtex-parse-field-string()
  bibtex-parse-field-text()
  bibtex-parse-association(bibtex-parse-field-name bibtex-parse-field-text)
  bibtex-parse-field()
  bibtex-valid-entry(t)
  bibtex-end-of-entry()
  bibtex-fill-entry()
  bibtex-format-entry()
  (cond ((bibtex-string= entry-type "preamble") (error "No clean up of @Preamble entries")) ((bibtex-string= entry-type "string") (setq entry-type ...)) (t (bibtex-format-entry)))
  (let ((case-fold-search t) (start ...) (_ ...) (entry-type ...) (key ...)) (cond (... ...) (... ...) (t ...)) (when (or new-key ...) (setq key ...) (if ... ...) (save-excursion ... ... ...)) (unless called-by-reformat (let* ... ... ... ... ...) (if bibtex-clean-entry-hook ...)))
  bibtex-clean-entry(nil)
  call-interactively(bibtex-clean-entry nil nil)

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
d:/Applications/emacs/etc/DEBUG for instructions.


In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-12-14 on BREPNB
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENG
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: BibTeX

Minor modes in effect:
  diff-auto-refine-mode: t
  TeX-PDF-mode: t
  dired-omit-mode: t
  recentf-mode: t
  icomplete-mode: t
  savehist-mode: t
  display-time-mode: t
  xterm-mouse-mode: t
  delete-selection-mode: t
  global-auto-revert-mode: t
  minibuffer-depth-indicate-mode: t
  which-function-mode: t
  show-paren-mode: t
  rcirc-track-minor-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<right> <right> <right> <right> <right> <right> SPC 
<left> <left> SPC C-c C-c q <down> <down> <down> <down> 
<down> <up> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
C-c C-c <down> <down> <down> <down> <down> C-c C-u 
<down> <down> <down> <down> <up> <up> <up> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <down> <down> <down> <down> 
<down> <down> <down> C-c C-e M <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <escape> C-h C-w C-x C-o C-x C-o <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> C-c C-c 
<down-mouse-1> <mouse-1> M-w M-w w <lwindow> C-c C-u 
<down-mouse-1> <mouse-1> <help-echo> <help-echo> <help-echo> 
C-y C-c C-c <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <down> <down> <down> <down> 
<down> <down> <down> <up> <up> <up> <up> <up> <up> 
<up> <up> <down> <down> <down> <down> <down> <up> <up> 
<up> <up> <up> <down> <down> <down> <down> <down> <down> 
<down> <down> C-x C-s <help-echo> <help-echo> <help-echo> 
M-x r e p o r <tab> b u <tab> <return>

Recent messages:
Back to top level.
Used for reference key creation if author and editor fields are missing
Mark set




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1907; Package emacs. (Thu, 15 Jan 2009 14:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 15 Jan 2009 14:15:03 GMT) Full text and rfc822 format available.

Message #10 received at 1907 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Roland Winkler <roland.winkler <at> physik.uni-erlangen.de>
Cc: Leo <sdl.web <at> gmail.com>, 1907 <at> debbugs.gnu.org
Subject: Re: 23.0.60; bibtex failed on this bib entry
Date: Thu, 15 Jan 2009 09:09:01 -0500
Hi Roland, could you take a look at this bug report?

Thanks.


Leo <sdl.web <at> gmail.com> wrote:

> In BibTeX-mode run C-c C-c on this entry to get the backtrace.
>
> @misc{dingle1976qeh,
>   title={{Quantum effects in heterostructure lasers}},
>   author={Dingle, R. and Henry, C.H.},
>   year={1976},
>   month=sep # "~21",
>   publisher={Google Patents},
>   note={US Patent 3,982,207}
> }
>
> The bib entry can also be obtained from the following link
> http://scholar.google.com/scholar.bib?hl=en&lr=&newwindow=1&output=search&q=info:O42N6xYt09QJ:scholar.google.com/&output=citation&oe=ASCII&oi=citation
>
> Backtrace:
>
> Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 143
> 210)
>   scan-sexps(143 1)
>   forward-sexp(1)
>   bibtex-parse-field-string()
>   bibtex-parse-field-text()
>   bibtex-parse-association(bibtex-parse-field-name
>   bibtex-parse-field-text)
>   bibtex-parse-field()
>   bibtex-valid-entry(t)
>   bibtex-end-of-entry()
>   bibtex-fill-entry()
>   bibtex-format-entry()
>   (cond ((bibtex-string= entry-type "preamble") (error "No clean up of
>   @Preamble entries")) ((bibtex-string= entry-type "string") (setq
>   entry-type ...)) (t (bibtex-format-entry)))
>   (let ((case-fold-search t) (start ...) (_ ...) (entry-type ...) (key
>   ...)) (cond (... ...) (... ...) (t ...)) (when (or new-key ...) (setq
>   key ...) (if ... ...) (save-excursion ... ... ...)) (unless
>   called-by-reformat (let* ... ... ... ... ...) (if
>   bibtex-clean-entry-hook ...)))
>   bibtex-clean-entry(nil)
>   call-interactively(bibtex-clean-entry nil nil)





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1907; Package emacs. (Thu, 15 Jan 2009 23:25:03 GMT) Full text and rfc822 format available.

Message #13 received at 1907 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 1907 <at> debbugs.gnu.org,
        Roland Winkler <roland.winkler <at> physik.uni-erlangen.de>,
        Leo <sdl.web <at> gmail.com>
Subject: Re: bug#1907: 23.0.60; bibtex failed on this bib entry
Date: Thu, 15 Jan 2009 18:17:36 -0500
I can't reproduce this in the current cvs started with -Q.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1907; Package emacs. (Fri, 16 Jan 2009 01:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 16 Jan 2009 01:50:04 GMT) Full text and rfc822 format available.

Message #18 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#1907: 23.0.60; bibtex failed on this bib entry
Date: Fri, 16 Jan 2009 01:45:48 +0000
On 2009-01-15 14:09 +0000, Chong Yidong wrote:
> Hi Roland, could you take a look at this bug report?
>
> Thanks.
[...]

On 2009-01-15 23:17 +0000, Glenn Morris wrote:
> I can't reproduce this in the current cvs started with -Q.

Please set the following:

(setq bibtex-entry-format
      (append '(opts-or-alts required-fields numerical-fields)
              '(whitespace realign delimiters unify-case)))

I can reproduce this with GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of
2008-12-14 on BREPNB.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1907; Package emacs. (Fri, 16 Jan 2009 02:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Glenn Morris <rgm <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 16 Jan 2009 02:35:03 GMT) Full text and rfc822 format available.

Message #23 received at 1907 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Leo <sdl.web <at> gmail.com>, 1907 <at> debbugs.gnu.org
Cc: Roland Winkler <roland.winkler <at> physik.uni-erlangen.de>
Subject: Re: bug#1907: 23.0.60; bibtex failed on this bib entry
Date: Thu, 15 Jan 2009 21:28:44 -0500
Leo wrote (on Fri, 16 Jan 2009 at 01:45 +0000):

> Please set the following:

In future, please provide all the relevant information in the initial report.

This usually a complete, concise recipe starting from emacs -Q:


emacs -Q --eval "(setq bibtex-entry-format '(delimiters))" file.bib

where file.bib contains:

@misc{foo,
  month=sep # "~21",
}




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1907; Package emacs. (Fri, 16 Jan 2009 14:40:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 16 Jan 2009 14:40:04 GMT) Full text and rfc822 format available.

Message #28 received at 1907 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
To: Leo <sdl.web <at> gmail.com>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, Glenn Morris <rgm <at> gnu.org>,
        1907 <at> debbugs.gnu.org
Subject: Re: 23.0.60; bibtex failed on this bib entry
Date: Fri, 16 Jan 2009 15:30:33 +0100
Leo <sdl.web <at> gmail.com> wrote:
> In BibTeX-mode run C-c C-c on this entry to get the backtrace.
>
> @misc{dingle1976qeh,
>   title={{Quantum effects in heterostructure lasers}},
>   author={Dingle, R. and Henry, C.H.},
>   year={1976},
>   month=sep # "~21",
>   publisher={Google Patents},
>   note={US Patent 3,982,207}
> }

I've installed a patch that should handle properly concatenated
fields like the above month field. Does it work for you?

Thanks,

Roland




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1907; Package emacs. (Fri, 16 Jan 2009 17:20:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 16 Jan 2009 17:20:04 GMT) Full text and rfc822 format available.

Message #33 received at 1907 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: Roland Winkler <Roland.Winkler <at> physik.uni-erlangen.de>
Cc: 1907 <at> debbugs.gnu.org, Chong Yidong <cyd <at> stupidchicken.com>
Subject: Re: bug#1907: 23.0.60; bibtex failed on this bib entry
Date: Fri, 16 Jan 2009 17:14:48 +0000
On 2009-01-16 14:30 +0000, Roland Winkler wrote:
> Leo <sdl.web <at> gmail.com> wrote:
>> In BibTeX-mode run C-c C-c on this entry to get the backtrace.
>>
>> @misc{dingle1976qeh,
>
>>   title={{Quantum effects in heterostructure lasers}},
>>   author={Dingle, R. and Henry, C.H.},
>>   year={1976},
>>   month=sep # "~21",
>>   publisher={Google Patents},
>>   note={US Patent 3,982,207}
>> }
>
> I've installed a patch that should handle properly concatenated
> fields like the above month field. Does it work for you?

Yes. Thank you for the fix.

>
> Thanks,
>
> Roland

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.




bug closed, send any further explanations to Leo <sdl.web <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Fri, 16 Jan 2009 17:25:04 GMT) Full text and rfc822 format available.

Message #36 received at 1907-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
To: 1907-done <at> debbugs.gnu.org
Subject: Re: bug#1907: 23.0.60; bibtex failed on this bib entry
Date: Sat, 17 Jan 2009 16:33:23 +0100
Bug 1907 can be closed.

Fix:

(bibtex-format-entry): For updating field delimiters, allow fields
that are composed of strings and string constants.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sun, 15 Feb 2009 15:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.