11.86; RefTeX: author field parsed incorrectly

View: New views
2 Messages — Rating Filter:   Alert me  

11.86; RefTeX: author field parsed incorrectly

by Elias Pipping-8 :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

I'm on GNU Emacs 24.0.97.1 and AUCTeX 11.86. I use the version of RefTeX
that comes with emacs.

I'm looking at the following bibtex entry(*):

@article {MR699024,
    AUTHOR = {Jaru{\v{s}}ek, Ji{\v{r}}{\'{\i}}},
     TITLE = {Contact problems with bounded friction coercive case},
   JOURNAL = {Czechoslovak Math. J.},
  FJOURNAL = {\v Cehoslovackaja Akademija Nauk. \v Cehoslovacki\u\i\
              Matemati\v ceski\u\i\ \v Zurnal. Czechoslovak Mathematical
              Journal},
    VOLUME = {33(108)},
      YEAR = {1983},
    NUMBER = {2},
     PAGES = {237--261},
      ISSN = {0011-4642},
     CODEN = {CZMJAE},
   MRCLASS = {73T05 (49A29)},
  MRNUMBER = {699024 (84h:73045)},
MRREVIEWER = {N. Gass},
}

If I paste that into an empty buffer and call

  (assoc "author" (reftex-parse-bibtex-entry nil (point-min) (point-max)))

from my understanding the following should be returned:

  ("author" . "Jaru{\\v{s}}ek, Ji{\\v{r}}{\\'{\\i}}")

instead I get

  ("author" . "Jaru{\\v{s}}ek, Ji{\\v{r}}{\\'{\\i")

with two curly brackets at the end missing.


Best regards,

Elias Pipping

(*) Generated from http://www.ams.org/mrlookup -- searching for "contact
problems with bounded friction coercive case" will do

PS (off-topic): While reading parts of the reftex source code, I came
across the following lines in reftex-do-citation:

    (when (stringp selected-entries)
      (error selected-entries))
    (unless selected-entries (error "Quit"))

    (if (stringp selected-entries)
      [..])

That first makes sure that s-e isn't a string... and then it makes sure
s-e isn't nil... and then it handles the case where s-e is a
string... I'm confused.


_______________________________________________
bug-auctex mailing list
bug-auctex@...
https://lists.gnu.org/mailman/listinfo/bug-auctex

Re: 11.86; RefTeX: author field parsed incorrectly

by Tassilo Horn-6 :: Rate this Message:

| View Threaded | Show Only this Message

Elias Pipping <pipping@...> writes:

Hi Elias,

> I'm looking at the following bibtex entry(*):
>
> @article {MR699024,
>     AUTHOR = {Jaru{\v{s}}ek, Ji{\v{r}}{\'{\i}}},
>
> If I paste that into an empty buffer and call
>
>   (assoc "author" (reftex-parse-bibtex-entry nil (point-min) (point-max)))
>
> from my understanding the following should be returned:
>
>   ("author" . "Jaru{\\v{s}}ek, Ji{\\v{r}}{\\'{\\i}}")
>
> instead I get
>
>   ("author" . "Jaru{\\v{s}}ek, Ji{\\v{r}}{\\'{\\i")
>
> with two curly brackets at the end missing.

Hm, it cut off leading and trailing {}.  Not sure why, it doesn't make
any sense to me, so I've changed that in Emacs bzr.

> PS (off-topic): While reading parts of the reftex source code, I came
> across the following lines in reftex-do-citation:
>
>     (when (stringp selected-entries)
>       (error selected-entries))
>     (unless selected-entries (error "Quit"))
>
>     (if (stringp selected-entries)
>       [..])
>
> That first makes sure that s-e isn't a string... and then it makes
> sure s-e isn't nil... and then it handles the case where s-e is a
> string... I'm confused.

Indeed, strange.  But in the current version, the first check isn't
there anymore.

Bye,
Tassilo


_______________________________________________
bug-auctex mailing list
bug-auctex@...
https://lists.gnu.org/mailman/listinfo/bug-auctex