bug#8704: 23.2; nxml-mode function nxml-electric-slash not indenting whe
From:
James Ahlborn
Subject:
bug#8704: 23.2; nxml-mode function nxml-electric-slash not indenting when completing
Date:
Thu, 19 May 2011 16:43:49 -0400
in older versions of emacs/nxml-mode the nxml-electric-slash function would both complete the close tag and auto-indent the close tag. in the latest emacs version, it seems to do one or the other. i *think* this
is an oversight, and the old functionality can be easily fixed by moving the final (when ...) block outside of the (if nxml-slash-auto-complete-flag ...) block (so that the indenting is done regardless of whether or not completion is enabled).
In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-09-01 on pluot, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10706000 configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
Important settings: value of $LC_ALL: C value of $LC_COLLATE: nil value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil
value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t
Major mode: JDE
Minor modes in effect: nxml-which-path-mode: t
flymake-mode: t semantic-mru-bookmark-mode: t semantic-idle-summary-mode: t semantic-idle-scheduler-mode: t senator-minor-mode: t jde-plugin-minor-mode: t jde-jdb-minor-mode: t desktop-save-mode: t
display-time-mode: t shell-dirtrack-mode: t which-dir-mode: t recentf-mode: t icomplete-mode: t global-hl-line-mode: t linum-mode: t autopair-mode: t autopair-global-mode: t auto-image-file-mode: t
delete-selection-mode: t show-paren-mode: t auto-insert-mode: t which-function-mode: t operator-show-mode: t page-break-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t
file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t hs-minor-mode: t
Recent input: <backspace> <backspace> <backspace> t h e SPC a r <backspace> <backspace> t a r g e t SPC l o o p SPC k e y SPC <backspace> s SPC s e t <down> <down> <down> <left> <left> s o
u <tab> C-x C-s <up> <up> <up> <up> C-c b <home> C-s n o d e <C-left> <C-left> C-SPC <C-right> <C-right> M-w C-x o C-a <up> <C-right> <C-backspace> C-x C-s
<down> <down> <down> <down> <down> <down> <M-up> <M-down> C-x C-s <up> <up> <up> <up> <f7> <return> <help-echo> <help-echo> <up> <f7> <C-backspace> <C-backspace> <C-backspace>
<C-backspace> <C-backspace> <C-backspace> <backspace> <return> C-x o C-c C-k C-x o C-x b e n <return> <home> C-s p r i n t l n C-a C-SPC <down> M-; C-s C-s <up>
C-x C-s <f7> <return> <down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4> <down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> <down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> C-c r ! C-x
b f i l <return> <C-f6> n a n n n a n n n n q y C-x C-s <f7> <return> <help-echo> M-x f i n d - f u n c <tab> <return> i m e n u - d e f <tab> c r <tab> C-g
C-x o M-. T r a n s f o r m E n <tab> T <tab> <return> <help-echo> <down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5>
<triple-mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> <triple-mouse-5> <down-mouse-5> <mouse-5> M-x f i n d - l o <tab> <return>
j t a - e m <tab> <return> C-s n x m l <down> C-a C-SPC <down> <down> <down> M-w <down-mouse-5> <mouse-5> <down-mouse-1> <mouse-1> M-x r e p o r t - e <tab> <return>
Recent messages: Loading /home/jahlborn/src/tmp/container/jde-prj.el (source)...done Loading /home/jahlborn/src/tmp/container/transform/jde-prj.el (source)...done [4 times] Quit [2 times] Loading /home/jahlborn/src/tmp/container/jde-prj.el (source)...done
Loading /home/jahlborn/src/tmp/container/transform/jde-prj.el (source)...done [2 times] Making tags completion table for /home/jahlborn/src/tmp/container/TAGS...done Loading /home/jahlborn/src/tmp/container/jde-prj.el (source)...done
Loading /home/jahlborn/src/tmp/container/transform/jde-prj.el (source)...done [2 times] Mark saved where search started Mark set