Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Peter S Galbraith
Aaron M. Ucko <[EMAIL PROTECTED]> wrote: > Peter S Galbraith <[EMAIL PROTECTED]> writes: > > > No. Emacs21 from woody. reftex.el line161 even says: > > Ah, never mind, I just hadn't actually turned on that minor mode. :-) > FWIW, it looks like C-c ! is still free (HYPERtext -> excitement?) >

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Roland Stigge
Folks, On Wed, 2003-08-13 at 21:38, Peter S Galbraith wrote: > C-c . runs the command LaTeX-mark-environment >which is an interactive compiled Lisp function in `latex'. > > You could say that's an AUC TeX bug and use it! :-) > > Okay, truth-telling time. I use "C-c b" to store a keymep for

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Aaron M. Ucko
Peter S Galbraith <[EMAIL PROTECTED]> writes: > No. Emacs21 from woody. reftex.el line161 even says: Ah, never mind, I just hadn't actually turned on that minor mode. FWIW, it looks like C-c ! is still free (HYPERtext -> excitement?) as is C-c @. -- Aaron M. Ucko, KB1CJC (amu at alum.mit.edu,

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Peter S Galbraith
Aaron M. Ucko <[EMAIL PROTECTED]> wrote: > Peter S Galbraith <[EMAIL PROTECTED]> writes: > > > C-c < runs the command reftex-index > >which is an interactive autoloaded Lisp function in `reftex-index'. > > Not under either FSF Emacs 21 or XEmacs 21 on my system, which has > quite a few extra

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Aaron M. Ucko
Roland Stigge <[EMAIL PROTECTED]> writes: > And what if some other obscure package which I don't have installed > already uses it? You pretty much only really need to worry about conflicts with AucTeX, which is where latex.el comes from in the first place; just load it up, open a LaTeX file, and

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Peter S Galbraith
Roland Stigge <[EMAIL PROTECTED]> wrote: > > |* Sequences consisting of `C-c' followed by `{', `}', `<', `>', `:' > > | or `;' are also reserved for major modes. > > | > > |* Sequences consisting of `C-c' followed by any other punctuation > > | character are allocated for minor

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Roland Stigge
On Wed, 2003-08-13 at 19:57, Peter S Galbraith wrote: > > Thanks. Is the additional define-key still appropriate? > > No. The above is all you need. OK. > > > But use a different key again. C-c C-c is already used in AUC-TeX's > > > LaTeX-mode-map: > > > > > > C-c C-c runs the command TeX-com

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Aaron M. Ucko
Peter S Galbraith <[EMAIL PROTECTED]> writes: > Roland Stigge <[EMAIL PROTECTED]> wrote: > >> Aaron M. Ucko wrote: >> > As for the actual binding: "C-c C-c h" is out, because "C-c C-c" is >> > already bound (quite usefully) to TeX-command-master and therefore >> > unavailable as a prefix. Perhaps

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Peter S Galbraith
Roland Stigge <[EMAIL PROTECTED]> wrote: > Aaron M. Ucko wrote: > > As for the actual binding: "C-c C-c h" is out, because "C-c C-c" is > > already bound (quite usefully) to TeX-command-master and therefore > > unavailable as a prefix. Perhaps "C-c <"? (Mnemonic: HTML tags start > > with "<") >

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Roland Stigge
Aaron M. Ucko wrote: > As for the actual binding: "C-c C-c h" is out, because "C-c C-c" is > already bound (quite usefully) to TeX-command-master and therefore > unavailable as a prefix. Perhaps "C-c <"? (Mnemonic: HTML tags start > with "<") Good idea. Hands up against it. Else, I will use this

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Roland Stigge
On Wed, 2003-08-13 at 19:11, Peter S Galbraith wrote: > > -(global-set-key "\C-ch" 'hyperlatex-format-buffer) > > +(eval-after-load "latex" > > +'(add-to-list 'after-load-alist > > + '("latex" (define-key LaTeX-mode-map > > + (kbd "C-c C-c h") > > +

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Peter S Galbraith
Roland Stigge <[EMAIL PROTECTED]> wrote: > On Wed, 2003-08-13 at 19:11, Peter S Galbraith wrote: > > > -(global-set-key "\C-ch" 'hyperlatex-format-buffer) > > > +(eval-after-load "latex" > > > +'(add-to-list 'after-load-alist > > > + '("latex" (define-key LaTeX-mode-map > > > +

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Aaron M. Ucko
Roland Stigge <[EMAIL PROTECTED]> writes: > Does the following look reasonable? Sorry, but no, the point of eval-after-load is avoiding the conditional: (eval-after-load "latex" '(define-key LaTeX-mode-map (kbd "...") 'hyperlatex-format-buffer)) As for the actual binding: "C-c C-c h" is out,

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Peter S Galbraith
Roland Stigge <[EMAIL PROTECTED]> wrote: > On Wed, 2003-08-13 at 17:24, Roland Stigge wrote: > > +(eval-after-load "latex" > > +(add-to-list 'after-load-alist > > + '("latex" (define-key LaTeX-mode-map > > + (kbd "C-c C-c h") > > +

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Roland Stigge
On Wed, 2003-08-13 at 17:24, Roland Stigge wrote: > +(eval-after-load "latex" > +(add-to-list 'after-load-alist > + '("latex" (define-key LaTeX-mode-map > + (kbd "C-c C-c h") > + 'hyperlatex-format-buffer))) > + (define-ke

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Roland Stigge
On Wed, 2003-08-13 at 16:59, Peter S Galbraith wrote: > > A user complained about the global keymap bindings for hyperlatex > > in emacs. Since Emacs Lisp is not my "native language", please > > acknowledge the following patch: > Perhaps use `eval-after-load' instead of the conditional. Does the

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Aaron M. Ucko
I'd suggest using eval-after-load rather than the "if" setup: (eval-after-load '(define-key ...)) Also, as Tatsuya said, it's best to leave "C-c " bindings free for user customization. -- Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) Finger [EMAIL PROTECTED] (NOT a valid e-mai

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Roland Stigge
Hi, Tatsuya Kinoshita wrote: > Don't use C-c LETTER, because these sequences are reserved for > users. > > "GNU Emacs Lisp Reference Manual": > > | Emacs Lisp CodingConventions > > |* Please do not define `C-c LETTER' as a key in your major modes. > | These sequences are reserved for user

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Peter S Galbraith
Roland Stigge <[EMAIL PROTECTED]> wrote: > Hi, > > I'm the maintainer of the Debian hyperlatex package. > > A user complained about the global keymap bindings for hyperlatex > in emacs. Since Emacs Lisp is not my "native language", please > acknowledge the following patch: > > =

Re: Bug#198887: emacs21: envvars not being inherited everywhere

2003-08-13 Thread Rob Browning
"Jeff Sheinberg" <[EMAIL PROTECTED]> writes: > Here is my workaround, is goes into my ~/.xsession file, which is > a #!/bin/sh script, > > # Source profiles only if not yet done so. > if test "${ENV:-}" != "${env:-}" ; then > test -f /etc/profile && . /etc/profil

Re: Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Tatsuya Kinoshita
On August 13, 2003 at 9:59AM +0200, Roland Stigge <[EMAIL PROTECTED]> wrote: > A user complained about the global keymap bindings for hyperlatex > in emacs. Since Emacs Lisp is not my "native language", please > acknowledge the following patch: > -(global-set-key "\C-ch" 'hyperlatex-format-buffer

Hyperlatex default emacs key bindings for Debian

2003-08-13 Thread Roland Stigge
Hi, I'm the maintainer of the Debian hyperlatex package. A user complained about the global keymap bindings for hyperlatex in emacs. Since Emacs Lisp is not my "native language", please acknowledge the following patch: == --- de