GNU bug report logs -
#11571
24.0.97; doc string of `dired-get-subdir-min'
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sun, 27 May 2012 21:40:02 UTC
Severity: minor
Found in version 24.0.97
Fixed in version 27.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 11571 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> Actually, the real bug is that `dired-get-subdir-min' has no doc string, so the
> doc string of `cdr' is used in its stead. The whole point of defining and using
> a separate function for this, instead of just coding with `cdr', is to enable
> readers of the code - and a fortiori the doc - to think in terms of the data
> structure of directories and not just abstract cons cells. There should be doc
> at the proper level of abstraction here.
Help says:
---
dired-get-subdir-min is an alias for `cdr' in `dired.el'.
(dired-get-subdir-min LIST)
Return the cdr of LIST. If arg is nil, return nil.
Error if arg is not nil and not a cons cell. See also `cdr-safe'.
---
I think that's fine.
However:
;; can't use macro, must be redefinable for other alist format in dired-nstd.
(defalias 'dired-get-subdir-min 'cdr)
Which is kinda er.
I don't know what nstd is, and the function doesn't seem to be redefined
anywhere, so is this just legacy gunk? Should `dired-get-subdir-min'
just be replaced by `cdr' in all the calling sites?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
This bug report was last modified 5 years and 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.