unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Alan Mackenzie <acm@muc.de>
Cc: Oscar Fuentes <ofv@wanadoo.es>, emacs-devel@gnu.org
Subject: Re: 24.0.50; args-out-of-range while reverting C++ header file
Date: Sat, 09 Oct 2010 23:05:18 +0900	[thread overview]
Message-ID: <878w27law1.fsf@catnip.gol.com> (raw)
In-Reply-To: <20101009134633.GA3283@muc.de> (Alan Mackenzie's message of "Sat,  9 Oct 2010 13:46:33 +0000")

Alan Mackenzie <acm@muc.de> writes:
>> C-x C-f some-moderately-big-header-file.h
>> <make some big modification on disk to the file>
>> M-x revert-buffer
>> Lisp error: (args-out-of-range 580 36722)
>
> I do this, but can't reproduce the error.  Can you please be precise
> about which file.h triggers the problem (send me a copy of it if it's
> outside of Emacs, please) and what the "big modification" is.
>
> I built the latest Emacs-24 last night.  I tried it with loading
> .../emacs/src/lisp.h, then

Hmm, I'm getting similar behavior, but I'm not using "revert-buffer".

I think the basic scenario is:

  1) I have a buffer visiting config.h (autoconf-generated)

  2) I re-run make or something, which causes config.h to be regenerated
  and changed (the latter's important, as autoconf doesn't touch it if
  the contents don't actually change)

  3) I visit config.h again with find-file; since it's already in a
  buffer, but has changed, Emacs asks the usual question in this
  situation:

     File config.h changed on disk.  Reread from disk? (yes or no) 

  4) I answer "yes RET", and then I get an error:

     c-clear-char-property-with-value-function: Args out of range: 464, 3922

  [and don't end up visiting the vile]

  5) I use find-file again on config.h; this time, Emacs asks:

     File config.h changed on disk.  Discard your edits? (yes or no)

  [despite the fact that I never actually made any changes to that
  buffer; I guess the failed update changed it.]

  6) I answer "yes RET", and this time am left in the config.h buffer,
  properly updated from disk.

I think this recipe can be fairly easily followed (you can just touch
the file or something, of course, instead of getting autoconf to change
it).

Thanks,

-Miles

-- 
gravity a demanding master ... soft soft snow



  reply	other threads:[~2010-10-09 14:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87zkuo2djr.fsf@telefonica.net>
2010-10-09 13:46 ` 24.0.50; args-out-of-range while reverting C++ header file Alan Mackenzie
2010-10-09 14:05   ` Miles Bader [this message]
2010-10-09 14:14     ` Oscar Fuentes
     [not found] ` <83wrprn3ou.fsf@gnu.org>
     [not found]   ` <87sk0f32pp.fsf@telefonica.net>
     [not found]     ` <87ocb331wo.fsf@telefonica.net>
2010-10-09 21:13       ` bug#7181: " Alan Mackenzie
2010-10-09 22:08         ` after-change-functions hook arguments (was: bug#7181: 24.0.50; args-out-of-range while reverting C++ header file) Óscar Fuentes
2010-10-09 23:33         ` bug#7181: 24.0.50; args-out-of-range while reverting C++ header file Stefan Monnier

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=878w27law1.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /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).