Setting nxml-child-indent affects nxml-mode

Bug #1067928 reported by Richard Lewis on 2012-10-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Andreas Roehler

Bug Description

In extensions/highlight-indentation.el the defvar form:

  (defvar nxml-child-indent nil)

sets a variable which is used by nxml-mode to calculate indents. nxml-mode includes a defcustom form for nxml-child-indent and then uses the integer value of this variable in its nxml-compute-indent-from-previous-line function (amongst others). This function is used by nxml-indent-line which is bound in the nxml-mode-map to TAB. As a result, when python-mode is loaded, hitting TAB in an nxml-mode buffer does not indent the line.

Why does python-mode need to set nxml-child-indent to nil? Would it work to make nxml-child-indent buffer local?

Changed in python-mode:
milestone: none → 6.1.0
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers