]> git.eshelyaron.com Git - emacs.git/commit
Fix problem with auto-mode and dir-locals-collect-variables
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 25 Jan 2017 16:43:44 +0000 (17:43 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 25 Jan 2017 16:43:44 +0000 (17:43 +0100)
commit82b6b3cf8ff2544be4aab5157c3df05e98d77ab6
tree6614562bcab44a7e9c772770395162d6537ae822
parent97934ffb5673fe7d7498fb31a9bdf32fd8e0c5c7
Fix problem with auto-mode and dir-locals-collect-variables

* lisp/files.el (dir-locals-collect-variables): When run from
auto-mode, the file in question may not be an absolute path
name (bug#24016).

Example backtrace:

Debugger entered--Lisp error: (args-out-of-range "compile-1st-in-loa
  dir-locals-collect-variables(((emacs-lisp-mode (indent-tabs-mode))
  hack-dir-local-variables()
  hack-local-variables(no-mode)
  run-mode-hooks(diff-mode-hook)
  diff-mode()
  mm-display-inline-fontify((#<buffer  *mm*-923037> ("text/x-diff" (
lisp/files.el