• Glenn Morris's avatar
    File-local variable fixes. · 7b447e9b
    Glenn Morris authored
    * lisp/files.el (local-enable-local-variables): Doc fix.
    (inhibit-local-variables-regexps): Rename from inhibit-first-line-modes-regexps.
    Keep old name as obsolete alias.  Doc fix.
    Add some extensions from auto-coding-alist.
    (inhibit-local-variables-suffixes):
    Rename from inhibit-first-line-modes-suffixes.  Doc fix.
    (inhibit-local-variables-p): New function, extracted from set-auto-mode-1.
    (set-auto-mode): Doc fix.  Respect inhibit-local-variables-regexps.
    (set-auto-mode-1): Doc fix.  Use inhibit-local-variables-p.
    (hack-local-variables): Doc fix.
    Make the mode-only case respect enable-local-variables and friends.
    Respect inhibit-local-variables-regexps for file-locals,
    but not for directory-locals.
    (set-visited-file-name): Take account of inhibit-local-variables-regexps.
    Whether it applies may change as the file name is changed.
    * lisp/jka-cmpr-hook.el (jka-compr-install):
    * lisp/jka-compr.el (jka-compr-uninstall):
    Update for inhibit-first-line-modes-suffixes name change.
    
    * etc/NEWS: Mention this change.
    
    Fixes: debbugs:10506
    7b447e9b
NEWS 52.1 KB