From: Alan Mackenzie <acm@muc.de>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: 7181@debbugs.gnu.org
Subject: bug#7181: 24.0.50; args-out-of-range while reverting C++ header file. PATCH.
Date: Sun, 10 Oct 2010 14:09:58 +0000 [thread overview]
Message-ID: <20101010140958.GA5249__37921.9824368649$1286719949$gmane$org@muc.de> (raw)
In-Reply-To: <87ocb331wo.fsf@telefonica.net>
Hi, Óscar,
On Sat, Oct 09, 2010 at 03:56:39PM +0200, Óscar Fuentes wrote:
> With the attached files the problem can be reproduced predictability:
>
> Save the attached files b.h.master and b.h.next to a directory and cd to
> it.
>
> $ emacs -Q &
> $ cp b.h.master b.h
> C-x C-f b.h
> $ cp b.h.next b.h
> M-x revert-buffer
>
> and the args-out-of-range error pops:
>
> c-clear-char-property-with-value-function: Args out of range: 166, 453
>
> I was unable to try with the latest Emacs sources because the build is
> broken. My Emacs is from the 16 September.
>
Please try the following patch and confirm that it works. I'll get it
committed just as soon as I manage to connect to the new server:
*** cc-mode.el.~3~ 2010-10-08 20:27:13.000000000 +0000
--- cc-mode.el 2010-10-10 13:46:28.074200752 +0000
***************
*** 1029,1038 ****
(buffer-substring-no-properties type-pos term-pos)
(buffer-substring-no-properties beg end)))))))
- ;; (c-new-BEG c-new-END) will be the region to fontify. It may become
- ;; larger than (beg end).
- (setq c-new-BEG beg
- c-new-END end)
(if c-get-state-before-change-functions
(mapc (lambda (fn)
(funcall fn beg end))
--- 1029,1034 ----
***************
*** 1086,1091 ****
--- 1082,1091 ----
(when c-recognize-<>-arglists
(c-after-change-check-<>-operators beg end))
+ ;; (c-new-BEG c-new-END) will be the region to fontify. It may become
+ ;; larger than (beg end).
+ (setq c-new-BEG beg
+ c-new-END end)
(if c-before-font-lock-function
(save-excursion
(funcall c-before-font-lock-function beg end old-len)))))))
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2010-10-10 14:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-09 4:30 bug#7181: 24.0.50; args-out-of-range while reverting C++ header file Oscar Fuentes
2010-10-09 8:57 ` Eli Zaretskii
2010-10-09 13:39 ` Óscar Fuentes
2010-10-09 13:56 ` Óscar Fuentes
2010-10-09 21:13 ` Alan Mackenzie
2010-10-09 21:13 ` 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 22:08 ` bug#7181: " Óscar Fuentes
2010-10-09 23:33 ` bug#7181: 24.0.50; args-out-of-range while reverting C++ header file Stefan Monnier
2010-10-09 23:33 ` Stefan Monnier
2010-10-10 14:09 ` Alan Mackenzie [this message]
[not found] ` <20101010140958.GA5249@muc.de>
2010-10-10 18:40 ` bug#7181: 24.0.50; args-out-of-range while reverting C++ header file. PATCH Óscar Fuentes
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
2010-10-09 14:14 ` Oscar Fuentes
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='20101010140958.GA5249__37921.9824368649$1286719949$gmane$org@muc.de' \
--to=acm@muc.de \
--cc=7181@debbugs.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 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.