I have a hash-table
(named ztree-line-to-node-table) that stores the line-number
and the corresponding absolute-file-name
. The absolute-file-name
is extracted using (gethash line ztree-line-to-node-table)
.
Q: How, please, can I extract the line-number
if I know what the absolute-file-name
is?
#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data
(1
#("/Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app" 0 49
(face ztree-start-node-face))
2 "/Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents" 3 "/Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/MacOS" 4 "/Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources" 5 "/Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Info.plist" 6 "/Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/PkgInfo"))
EXAMPLE:
- The
absolute-file-name
is a path:
"/Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents"
- The
line-number
is 2.
I am looking for a means of programmatically querying the hash-table
using the absolute-file-name
to extract the line-number
-- the result of the query in this example is 2.