Subject: bug#13945: `abreviated-home-dir' isn't documented

From: [email-masked]
Date: Sat, 01 Apr 2017 21:59:25 -0400

tags 13945 notabug
close 13945
quit

Xue Fuqiao <[email-masked]> writes:

> In the source code of `command-line':
>
>   ;; Force recomputation, in case it was computed during the dump.
>   (setq abbreviated-home-dir nil)
>
> The variable `abbreviated-home-dir' (which is defined in files.el) is
> not documented in elisp manual. (Maybe there isn't a need?)

It doesn't need to be documented in the elisp manual, the docstring
should be enough.

> BTW what does the expression above do?  I had searched loadup.el and
> some other files in `lisp/', but I didn't find anything useful.

It forces abbreviated-home-dir to be recomputed next time
abbreviate-file-name is called.

    (defun abbreviate-file-name (filename)
      ...
          (or abbreviated-home-dir
              (setq abbreviated-home-dir
              ...