Re: Alpha version of RefDB menu
Michael Smith <[email protected]>
| Newsgroups | gmane.text.refdb.devel |
|---|---|
| Message-ID | <20031205143926.GB1920@theThirdPoliceman> |
Hi Markus,
You wrote:
> Hi Michael,
>
> thanks a lot for the code. I've checked it out today. The first tests
> look promising. I've tried everything I could, and so far everything
> works as expected. Nice piece of work.
Great -- good to hear that it's actually working.
> One minor thing I've noted though is that in some queries the
> *refdbc-output* buffer does not pop up. Instead you see the result in
> the minibuffer, although *refdbc-output* is updated properly. Is Emacs
> doing this by design?
Yeah, and I don't know a good way to get around that behavior. Doc for
'shell-command-on-region' says:
If the output is short enough to display in the echo area (which is
determined by the variable `max-mini-window-height' if
`resize-mini-windows' is non-nil), it is shown there, but it is
nonetheless available in buffer `*Shell Command Output*' even though
that buffer is not automatically displayed. If there is no output, or
if output is inserted in the current buffer, then `*Shell Command
Output*' is deleted.
I guess I could have it set 'max-mini-window-height' to 1 (meaning 1
line). But that would affect global behavior (or at least behavior of
whatever mode your in), and I reckon many people wouldn't like that a
whole lot.
> We (you?) need to figure out a way to select the input and output
> types. It would be nice to auto-detect the input type, i.e. append a
> -t risx to the addref command if the current buffer uses an XML mode,
> and append nothing if the current buffer uses the RIS mode.
I reckon that's doable. Would just need to figure out how.
> The output type would have to be selectable via the menu. Currently
> scrn (the default), html, xhtml, db31, db31x, teix, ris, risx are
> supported. This option is also invoked with a -t <type> on the getref
> command line.
OK. That's easy enough to add. Seems like I could just make a submenu
that looks like this:
Select Output Type
Screen
HTML
XHTML
DocBook SGML
DocBook XML
TEI XML
RIS
RIS XML
BTW, you doc says bibtex is also a valid output type. Should I add that
to the menu too?
--Mike
> Michael Smith writes:
> > I've just checked in the initial version of the refdb-menu.el package
> > into the RefDB project CVS (in the 'elisp' directory at the root,
> > parallel to the perlmod and refdb modules). It's also attached.
> >
> [...]
> > Please try it out and let me know if it works at all for you at this
> > point.
signature.asc
(application/pgp-signature, 155 B)
-----BEGIN PGP SIGNATURE----- iD8DBQE/0JiesGCNMsnBsxkRAr6ZAJ4ux5qMhc6E3GnKuBxh6IIO9JHWGgCeIBPq UNWHSRtzG5NTiPiLWpTD4To= =qwEM -----END PGP SIGNATURE-----