* 2020-11-14 23:27:41+02, Teemu Likonen wrote: > * 2020-11-14 23:18:16+02, Teemu Likonen wrote: >> Variable bibtex-contline-indentation does not work as file local >> variable. The reason is that bibtex-mode command initializes variable >> fill-prefix before the possible file local variable is available. It >> gets always the global value of bibtex-contline-indentation. >> >> This can be fixed by locally let-binding fill-prefix every time in the >> relevant filling function. Patch for that is attached. > > See: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44647 I'll add one example. Currently if we want to use file or directory local variable to define bibtex indentation we must do use variable bibtex-text-indentation for normal field value indentation and then use fill-prefix with spaces to define the indentation for continuation lines: ;; .dir-locals.el ((bibtex-mode . ((bibtex-text-indentation . 20) (fill-prefix . " ")))) ; 21 spaces Quite obviously more user-friendly way would be this: ;; .dir-locals.el ((bibtex-mode . ((bibtex-text-indentation . 20) (bibtex-contline-indentation . 21)))) My patch does this. It let-binds fill-prefix every time and initializes its value by using the (possibly buffer local) value of bibtex-contline-indentation. Here is inline version of the patch so that it is easier to read in debbugs.gnu.org page.