diff options
| -rw-r--r-- | doc/lispref/ChangeLog | 1 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 123f1731311..c23073e4254 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * variables.texi (File Local Variables): | 3 | * variables.texi (File Local Variables): |
| 4 | Update hack-local-variables `mode-only' return value. | 4 | Update hack-local-variables `mode-only' return value. |
| 5 | Add some more details on what this function does in the other case. | ||
| 5 | 6 | ||
| 6 | 2011-05-19 Glenn Morris <rgm@gnu.org> | 7 | 2011-05-19 Glenn Morris <rgm@gnu.org> |
| 7 | 8 | ||
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 7a8536933dc..08712466b5c 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1670,7 +1670,10 @@ This function works by walking the alist stored in | |||
| 1670 | @code{file-local-variables-alist} and applying each local variable in | 1670 | @code{file-local-variables-alist} and applying each local variable in |
| 1671 | turn. It calls @code{before-hack-local-variables-hook} and | 1671 | turn. It calls @code{before-hack-local-variables-hook} and |
| 1672 | @code{hack-local-variables-hook} before and after applying the | 1672 | @code{hack-local-variables-hook} before and after applying the |
| 1673 | variables, respectively. | 1673 | variables, respectively. It only calls the before-hook if the alist |
| 1674 | is non-@code{nil}; it always calls the other hook. This | ||
| 1675 | function ignores a @samp{mode} element if it specifies the same major | ||
| 1676 | mode as the buffer already has. | ||
| 1674 | 1677 | ||
| 1675 | If the optional argument @var{mode-only} is non-@code{nil}, then all | 1678 | If the optional argument @var{mode-only} is non-@code{nil}, then all |
| 1676 | this function does is return a symbol specifying the major mode, | 1679 | this function does is return a symbol specifying the major mode, |