bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1806: dired-pop-to-buffer in wrong place


From: Juri Linkov
Subject: bug#1806: dired-pop-to-buffer in wrong place
Date: Thu, 04 Oct 2012 11:51:11 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu)

>> +(make-obsolete-variable 'dired-shrink-to-fit
>> +                    "use the Customization interface to add a new rule
>> +to `display-buffer-alist' where condition regexp is \"Marked Files\",
>> +action argument symbol is `window-height' and its value is nil." "24.3")
>
> I think it's OK.  Though we should decide generally whether we (1) want
> an exact match for such buffers (that is, including space and asterisks)

In the Customization UI it would be simple to type a regexp without
special characters.  OTOH, the user will be able to copy the exact match
from the docstring, so we could add the exact match to docstrings:

(make-obsolete-variable 'dired-shrink-to-fit
                        "use the Customization interface to add a new rule
to `display-buffer-alist' where condition regexp is \"^ \\*Marked Files\\*$\",
action argument symbol is `window-height' and its value is nil." "24.3")

> and (2) whether obsoletion strings can be that long (I have not found
> any when I searched recently).

Just try to evaluate this `make-obsolete-variable' and see its result
in `C-h v dired-shrink-to-fit RET'.

> We should add the detailed code somewhere, probably to the Elisp manual.
> As an example, I didn't know that using an ACTION argument where the
> FUNCTION component is nil would work in the first place.

I learned about this feature from Stefan's comment in
http://debbugs.gnu.org/3419#133

> There are further issues.

Let's discuss them on emacs-devel.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]