On Thu, Aug 12, 2021 at 10:20 AM Vladimir Lomov <[email protected]> wrote:
>
> Hello,
> ** Hongyi Zhao <[email protected]> [2021-08-11 12:42:28 +0800]:
>
> Okay, let's try to clarify situation and to sort out different errors.
>
> > On Wed, Aug 11, 2021 at 10:43 AM Vladimir Lomov <[email protected]> wrote:
[...]
> >>
> >> I open the document in Emacs (with my configuration of
> >> AUCTeX+RefTeX+CDLaTeX),
> >> did the same thing as Arash and got[1]
> >>
> >> ------------------------------------------------------------------------------
> >> (bib "/home/vladimir/tmp/test/sample.bib")
> >> ------------------------------------------------------------------------------
>
> > To be sure, how to eval the form in the verbatim env?
>
> Ahh, I thought it might be unclear but didn't ask. Emacs allows you to
> "evaluate" any part of buffer as Emacs Lisp code (see, e.g., "Operating on the
> Region" in Emacs manual), even code on a line (see "27.9 Evaluating Emacs Lisp
> Expressions") running "C-x C-e" on the line.
>
> > I try to eval the following in *scratch* buffer with `C-j', but obtain
> > `nilnil':
>
> > (insert "\n" (format "%S" (symbol-value reftex-docstruct-symbol)))
>
> > nilnil
>
> Do this in the buffer with open document.
Running "C-x C-e" on the line from within the opened document still
give me the following result:
(insert "\n"
(format "%S" (symbol-value reftex-docstruct-symbol)))
nil
Best, Hongyi