Daiki Ueno writes: > Presumably this might be the culprit. It copies the function > `netrc-store-data' from netrc.el and most likely the format is different > from the one used by netrc.el included in XEmacs packages. Sorry I was missing the point. Please ignore my guess the above. After debugging with XEmacs (I could reproduce the problem), now I suspect that the cause is elsewhere. Even with or without the above change, (netrc-parse "~/.authinfo.gpg") always returns nil except the first time, because the netrc-cache handling is buggy. netrc saves the content of the file in a form mangled with base64 and rot13. However, XEmacs does not have rot13-string and dgnushack.el defines rot13-string as a macro: (defmacro rot13-string (string) "Return ROT13 encryption of STRING." `(with-temp-buffer (insert ,string) (translate-region (point-min) (point-max) ,rot13-display-table) (buffer-string))) netrc-parse uses it as to save the contents: (setq netrc-cache ... (rot13-string (base64-encode-string (buffer-string)))) Guess what will happen. Since buffer-string is called from the buffer created by rot13-string, it will always return "". I'm attaching a patch.