Re: Cannot get emacs nxml code completion to work
Niels Giesen <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
"Lennart Borgman" <[email protected]> writes: > On Fri, Oct 24, 2008 at 10:52 AM, Niels Giesen <[email protected]> wrote: >> If yes, customize `nxml-bind-meta-tab-to-complete-flag' to t: >> >> M-x customize-variable RET nxml-b TAB RET. Hit toggle button. And one >> of save for current session or safe for future sessions. >> >> Then typing M-TAB (or probably: M-C-i as `true' M-TAB is most of the >> time intercepted by a window manager for window cycling). >> >> Cheers, >> >> Niels. >> >> PS: >> >> (setq nxml-bind-meta-tab-to-complete-flag t) >> >> In your .emacs works too of course, with less clutter. > > No, it is not guaranteed to work. > Grmbl, you are right... why not? Of interest to the OP, this lead me into actually reading the documentation for `nxml-bind-meta-tab-to-complete-flag', where it says: *Non-nil means bind M-TAB in `nxml-mode-map' to `nxml-complete'. C-return will be bound to `nxml-complete' in any case. M-TAB gets swallowed by many window systems/managers, and `documentation' will show M-TAB rather than C-return as the binding `rng-complete' when both are bound. So it's better to bind M-TAB only when it will work. So C-Return should work any time, out of the box. Didn't know that. ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/emacs-nxml-mode/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/emacs-nxml-mode/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/