all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* file-attributes returns negative integer for inode value
@ 2008-03-02 22:46 Drew Adams
  2008-03-02 23:36 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2008-03-02 22:46 UTC (permalink / raw)
  To: emacs-pretest-bug

emacs -Q
 
No reliable recipe to reproduce, but for me, some directories give a
negative inode number for file-attributes. For example:
 
M-x (file-attributes "c:/drews-lisp-20/Screenshots") gives:
 
(t 1 5 5 (18378 24192) (18123 40338) (18123 40337) 0
 "drwxrwxrwx" nil -3082 240391127)
 
The inode value here is -3082. The Elisp manual, however says that if
the integer is too large, then a cons is used for the inode value. Is
this a Windows-specific problem, perhaps?
 
Also, there is a typo in the doc string for `file-attributes':
 
  ...
  If inode number is larger than the Emacs integer,
  this is a cons cell containing two integers: first the high part,
  then the low 16 bits.
 
"the Emacs integer" should presumably be "the largest Emacs integer".
 

In GNU Emacs 22.1.90.1 (i386-mingw-nt5.1.2600)
 of 2008-01-30 on PRETEST
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'
 





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-14 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-02 22:46 file-attributes returns negative integer for inode value Drew Adams
2008-03-02 23:36 ` Andreas Schwab
2008-03-03  0:12   ` Drew Adams
2008-03-03  4:25     ` Eli Zaretskii
2008-03-14 17:31       ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.