From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: What magic is saying "obsolete variable" Date: Sat, 18 Dec 2010 20:54:14 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1292702857 14688 80.91.229.12 (18 Dec 2010 20:07:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Dec 2010 20:07:37 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 18 21:07:33 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PU33z-0006qF-Mx for ged-emacs-devel@m.gmane.org; Sat, 18 Dec 2010 21:07:31 +0100 Original-Received: from localhost ([127.0.0.1]:56438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PU2rb-0001FC-7x for ged-emacs-devel@m.gmane.org; Sat, 18 Dec 2010 14:54:43 -0500 Original-Received: from [140.186.70.92] (port=53060 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PU2rW-0001Eu-26 for emacs-devel@gnu.org; Sat, 18 Dec 2010 14:54:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PU2rU-0006yl-Pw for emacs-devel@gnu.org; Sat, 18 Dec 2010 14:54:37 -0500 Original-Received: from mail-ey0-f177.google.com ([209.85.215.177]:35426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PU2rU-0006wH-Kk for emacs-devel@gnu.org; Sat, 18 Dec 2010 14:54:36 -0500 Original-Received: by eyd9 with SMTP id 9so1178060eyd.36 for ; Sat, 18 Dec 2010 11:54:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=BZ4m9cxt/JNmoytVrc92FY9Fdxfv76QyCBkTxn0wsSI=; b=q+SujmaSp3qAhphpEaQRxYtMDxz8PL7pOs1Oo5nuTes7s5KmzAt6JBIIVsh8PezFDY +PIp6kvKLZTUYW258KxUXFJRIKIzAHSVXxqs+Tjf0OoZ/MX5NSjVCEd2heLEnC2UmIub duavZvYkkfrpxhFtJ+dDSowKzp9XUUZDAv10I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=TKgvHFKPvQxMGtq8VtcxY60jfRXInoBjLBDLXz2mjJoMvbneeCPdaxfEVllX8NilSV 2RdyTqSidWkWTSi7FfGBG2i2BZ60OF+8DG7GGGNB6kP4TPb9VVPIEQxYO1Lq3OaFS+G1 dhk5pvZ2n8G8F29gVlRsXS5YxXDHX1HpFursc= Original-Received: by 10.213.112.146 with SMTP id w18mr2250105ebp.84.1292702074998; Sat, 18 Dec 2010 11:54:34 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Sat, 18 Dec 2010 11:54:14 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133799 Archived-At: On Sat, Dec 18, 2010 at 4:50 PM, Stefan Monnier wrote: >> When stepping through this in edebug > >> =C2=A0 =C2=A0 =C2=A0 (mumamo-save-buffer-state nil >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 (remove-list-of-text-properties (point-min) = (point-max) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (list= 'fontified))) > >> I get the warning below after passing the next last `)': > >> =C2=A0 Warning: `font-lock-beginning-of-syntax-function' is an obsolete = variable (as >> =C2=A0 =C2=A0 of Emacs 23.3); use `syntax-begin-function' instead. > > This warning comes from the byte-compiler. =C2=A0I have no idea why the > byte-compiler is called during your edebug. > >> The macro `mumamo-save-buffer-state' is just a copy of >> save-buffer-state in font-lock.el (which is not exposed by >> font-lock.el). > > Newer Emacsen have the macro with-silent-modifications for that, so you > may want to use that one (or a copy of it) instead. Thanks, I have forgotten to switch to a copy of that. However this is very similar to the save-buffer-state so I guess it is not involved here. The differences involved are just (declare (debug t) (indent 0)) =3Dnew=3D> (declare (indent 1) (debug let)= ) and an unwind-protect in the new macro.