[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error report on startup
From: |
Herbert Euler |
Subject: |
Re: Error report on startup |
Date: |
Fri, 02 Mar 2007 09:23:45 +0800 |
For me, the library is type-break mode, and the file is ~/.type-break.
If I did not read the source and did some digging work, I cannot
know it is the file ~/.type-break that causes the error.
Why are you loading type-break in such a weird way? If you .emacs contains
(require 'type-break)
messages *will* be meaningful wrt the point of error.
Well, I load type-break in normal way. Please take a look at the
functions `type-break-get-previous-time' and
`type-break-get-previous-count'.
They contain similar expressions like I provided. For example,
the functiion `type-break-get-previous-time':
(defun type-break-get-previous-time ()
"Get previous break time from `type-break-file-name'.
Returns nil if the file is missing or if the time breaks with the
`current-time' format."
(let ((file (type-break-choose-file)))
(if file
(timep ;; returns expected format, else nil
(with-current-buffer (find-file-noselect file 'nowarn)
(save-excursion
(goto-char (point-min))
(read (current-buffer))))))))
The file returned by `type-break-choose-file' is the actual
file of `some-file.el'. On my system for some reason it is
not written correctly, which causes Emacs report confusing
error.
Regards,
Guanpeng Xu
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
- Error report on startup, Herbert Euler, 2007/03/01
- Re: Error report on startup, Juanma Barranquero, 2007/03/01
- Re: Error report on startup, Herbert Euler, 2007/03/01
- Re: Error report on startup, Juanma Barranquero, 2007/03/01
- Re: Error report on startup,
Herbert Euler <=
- Re: Error report on startup, Juanma Barranquero, 2007/03/01
- Re: Error report on startup, Richard Stallman, 2007/03/02
- Re: Error report on startup, Richard Stallman, 2007/03/02
- Re: Error report on startup, Herbert Euler, 2007/03/04
Re: Error report on startup, Richard Stallman, 2007/03/01