all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Herbert Euler" <herberteuler@hotmail.com>
To: lekktu@gmail.com
Cc: emacs-devel@gnu.org
Subject: Re: Error report on startup
Date: Fri, 02 Mar 2007 09:23:45 +0800	[thread overview]
Message-ID: <BAY112-F869444214EC30173055B4DA870@phx.gbl> (raw)
In-Reply-To: <f7ccd24b0703010726i2885534egb0844da654398edc@mail.gmail.com>

>>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/

  reply	other threads:[~2007-03-02  1:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-01 13:48 Error report on startup Herbert Euler
2007-03-01 14:30 ` Juanma Barranquero
2007-03-01 15:04   ` Herbert Euler
2007-03-01 15:26     ` Juanma Barranquero
2007-03-02  1:23       ` Herbert Euler [this message]
2007-03-02  1:57         ` Juanma Barranquero
2007-03-02  8:26           ` Richard Stallman
2007-03-02 23:46             ` Richard Stallman
2007-03-05  1:41               ` Herbert Euler
2007-03-02  3:28 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY112-F869444214EC30173055B4DA870@phx.gbl \
    --to=herberteuler@hotmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.