unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: lekktu@gmail.com, herberteuler@hotmail.com, emacs-devel@gnu.org
Subject: Re: Error report on startup
Date: Fri, 02 Mar 2007 18:46:33 -0500	[thread overview]
Message-ID: <E1HNHSL-0002Re-M1@fencepost.gnu.org> (raw)
In-Reply-To: <E1HN35Y-00040I-P1@fencepost.gnu.org> (message from Richard Stallman on Fri, 02 Mar 2007 03:26:04 -0500)

Does this patch give acceptable results?

*** type-break.el	30 Jan 2007 18:46:39 -0500	1.44
--- type-break.el	02 Mar 2007 14:33:25 -0500	
***************
*** 562,570 ****
      (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))))))))
  
  (defun type-break-get-previous-count ()
    "Get previous keystroke count from `type-break-file-name'.
--- 562,573 ----
      (if file
          (timep ;; returns expected format, else nil
           (with-current-buffer (find-file-noselect file 'nowarn)
! 	   (condition-case nil
! 	       (save-excursion
! 		 (goto-char (point-min))
! 		 (read (current-buffer)))
! 	     (end-of-file
! 	      (error "End of file in `%s'" file))))))))
  
  (defun type-break-get-previous-count ()
    "Get previous keystroke count from `type-break-file-name'.

  reply	other threads:[~2007-03-02 23:46 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
2007-03-02  1:57         ` Juanma Barranquero
2007-03-02  8:26           ` Richard Stallman
2007-03-02 23:46             ` Richard Stallman [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1HNHSL-0002Re-M1@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=herberteuler@hotmail.com \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).