[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11749: Acknowledgement (24.1; C-mode indentation gives wrong-type-ar
From: |
Glenn Morris |
Subject: |
bug#11749: Acknowledgement (24.1; C-mode indentation gives wrong-type-argument error.) |
Date: |
Tue, 08 Jan 2013 14:10:58 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
If you'd like to see this in the next pretest, please install this in
emacs-24 as soon as possible.
FWIW, here is some sanity checking from someone who knows nothing about
cc-mode (other than the terror that it brings). Just ignore any of these
comments if they are obviously wrong.
Alan Mackenzie wrote:
> + (defvar c-state-old-cpp-beg-marker)
I guess you wanted to give that an actual value, ie
(defvar c-state-old-cpp-beg-marker nil)
> + (defvar c-state-old-cpp-end-marker)
Likewise.
> + (defmacro c-state-maybe-marker (place marker)
> + ;; If PLACE is non-nil, return a marker marking it, otherwise nil.
> + ;; We (re)use MARKER.
> + `(and ,place
> + (or ,marker (setq ,marker (make-marker)))
> + (set-marker ,marker ,place)))
> +
[...]
> ! (setq c-state-old-cpp-beg (and here-cpp-beg (copy-marker here-cpp-beg
> t))
> ! c-state-old-cpp-end (and here-cpp-end (copy-marker here-cpp-end t)))
> ! )))
>
> ;; Debug tool to catch cache inconsistencies. This is called from
> ;; 000tests.el.
> --- 3372,3381 ----
> (c-parse-state-1))
> (c-with-cpps-commented-out
> (c-parse-state-1))))
> ! (setq c-state-old-cpp-beg
> ! (c-state-maybe-marker here-cpp-beg c-state-old-cpp-beg-marker)
> ! c-state-old-cpp-end
> ! (c-state-maybe-marker here-cpp-end c-state-old-cpp-end-marker)))))
Looks like the marker insertion type has changed?