]> git.eshelyaron.com Git - emacs.git/commit
Fix nxml-get-inside (Bug#32003)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 19 Apr 2019 03:36:04 +0000 (23:36 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 9 May 2019 10:42:40 +0000 (06:42 -0400)
commitca14dd1d4628094dd33d5d94694dcf5f29e843b8
tree3e875dde24b32704e647ba9853f52d341861a4a6
parente7ab351caa884755c032fd9544ba67a3c953144f
Fix nxml-get-inside (Bug#32003)

The change from 2016-01-16 "lisp/nxml: Use syntax-tables for comments"
made nxml-get-inside return non-nil for any string or comment,
including attribute strings.  This caused incorrect and therefore
indentation.
* lisp/nxml/nxml-rap.el: Update commentary to reflect changes to
nxml-mode parsing.
(nxml-get-inside): Only return non-nil when inside comments and
generic strings, not normal quote-delimited strings.
* test/lisp/nxml/nxml-mode-tests.el: New tests.
lisp/nxml/nxml-rap.el
test/lisp/nxml/nxml-mode-tests.el [new file with mode: 0644]