From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: bug#8219: Effect of deletions on indirect buffers (Bug#8219) Date: Mon, 14 Mar 2011 03:41:41 +0100 Message-ID: References: <877hc5bfqy.fsf@stupidchicken.com> <838vwlto85.fsf@gnu.org> <83wrk4soee.fsf@gnu.org> <87wrk2vemq.fsf@stupidchicken.com> 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 1300070554 16405 80.91.229.12 (14 Mar 2011 02:42:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 02:42:34 +0000 (UTC) Cc: 8219@debbugs.gnu.org, Stefan Monnier , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 14 03:42:29 2011 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 1Pyxjo-0005Rg-JY for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2011 03:42:28 +0100 Original-Received: from localhost ([127.0.0.1]:60839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyxjn-0006ax-Va for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2011 22:42:28 -0400 Original-Received: from [140.186.70.92] (port=44321 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyxjj-0006ap-6L for emacs-devel@gnu.org; Sun, 13 Mar 2011 22:42:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pyxjh-0001JH-Ur for emacs-devel@gnu.org; Sun, 13 Mar 2011 22:42:23 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:50236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pyxjh-0001JB-Rv for emacs-devel@gnu.org; Sun, 13 Mar 2011 22:42:21 -0400 Original-Received: by qwa26 with SMTP id 26so1215886qwa.0 for ; Sun, 13 Mar 2011 19:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=EwFvxAaZIvo2pt5pJzJas+l2XlTYE69H5vzt2Wjany8=; b=YgkPf4FefTIK+mfoyupKZe5LwXzjL3XWQAn4qTQyoRXKr3W44xWV00UBnMlB91fjPZ 2Y+6y4eWvK7UbPl8QsCsqCLsXgPiwOvtI8AjKMIo++LMt09FjlTMgfFur0IecNGrBpHj +Tg6bUYAdbfI1SrzH1NSKjNd4ziw++QJ6R5OA= 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=A7XPwuid/szXTeD1kizAX4D2iLc0U8rHKayL38BmpwuAVhMpaoDN1t5WMG9MmeTwTT auLlVzfYN8SN2c7fqfcrA9tvvcZaz4T1EoCEPOe3UIvsaVkcDnEBvUBfi59Ve5qXIZlT /NacAz8eVWIVjHFaoy4t/IBq8cosowim3D+Ps= Original-Received: by 10.229.10.12 with SMTP id n12mr721258qcn.219.1300070541122; Sun, 13 Mar 2011 19:42:21 -0700 (PDT) Original-Received: by 10.229.74.212 with HTTP; Sun, 13 Mar 2011 19:41:41 -0700 (PDT) In-Reply-To: <87wrk2vemq.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 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:137209 Archived-At: > OK, I've committed a fix to trunk. =C2=A0Instead of doing away with the B= UF_* > macros, I reworked them to handle the indirect buffer case properly. > This means they can no longer be used in `BUF_PT (foo) =3D bar' assignmen= t > statements, so I've changed the callers that used them this way. emacs -Q --eval '(clone-indirect-buffer "clone" nil)' buffer.c:614: Emacs fatal error: assertion failed: NILP (BVAR (b, begv_mark= er)) Breakpoint 1, w32_abort () at w32fns.c:7208 7208 button =3D MessageBox (NULL, (gdb) bt #0 w32_abort () at w32fns.c:7208 #1 0x01047867 in die (msg=3D0x1590744 "assertion failed: NILP (BVAR (b, begv_marker))", file=3D0x158f518 "buffer.c", line=3D614) at alloc.c:6101 #2 0x010caa80 in Fmake_indirect_buffer (base_buffer=3D52342789, name=3D54741601, clone=3D52303922) at buffer.c:614 #3 0x0103beb5 in Ffuncall (nargs=3D4, args=3D0x88f0c0) at eval.c:2849 #4 0x01142a8c in Fbyte_code (bytestr=3D20838137, vector=3D20838245, maxdepth=3D16) at bytecode.c:689 #5 0x0103cbea in funcall_lambda (fun=3D20838093, nargs=3D2, arg_vector=3D0x88f260) at eval.c:3028 #6 0x0103c620 in apply_lambda (fun=3D20838093, args=3D57330886, eval_flag=3D1) at eval.c:2954 #7 0x0103a2bc in Feval (form=3D57330894) at eval.c:2296 #8 0x0103bd75 in Ffuncall (nargs=3D2, args=3D0x88f4b0) at eval.c:2842 #9 0x01142a8c in Fbyte_code (bytestr=3D20645329, vector=3D20645821, maxdepth=3D40) at bytecode.c:689 #10 0x0103cbea in funcall_lambda (fun=3D20645301, nargs=3D1, arg_vector=3D0x88f704) at eval.c:3028 #11 0x0103c2fc in Ffuncall (nargs=3D2, args=3D0x88f700) at eval.c:2891 #12 0x01142a8c in Fbyte_code (bytestr=3D20627337, vector=3D20628333, maxdepth=3D28) at bytecode.c:689 #13 0x0103cbea in funcall_lambda (fun=3D20627317, nargs=3D0, arg_vector=3D0x88f944) at eval.c:3028 #14 0x0103c2fc in Ffuncall (nargs=3D1, args=3D0x88f940) at eval.c:2891 #15 0x01142a8c in Fbyte_code (bytestr=3D20623889, vector=3D20624101, maxdepth=3D24) at bytecode.c:689 #16 0x0103cbea in funcall_lambda (fun=3D20623869, nargs=3D0, arg_vector=3D0x88faf0) at eval.c:3028 #17 0x0103c620 in apply_lambda (fun=3D20623869, args=3D52303898, eval_flag=3D1) at eval.c:2954 #18 0x0103a2bc in Feval (form=3D52791574) at eval.c:2296 #19 0x0100537b in top_level_2 () at keyboard.c:1138 #20 0x010378f4 in internal_condition_case (bfun=3D0x1005368 , handlers=3D52357530, hfun=3D0x1004e81 ) at eval.c:1408 #21 0x010053ad in top_level_1 (ignore=3D52303898) at keyboard.c:1146 #22 0x01037313 in internal_catch (tag=3D52355626, func=3D0x100537d , arg=3D52303898) at eval.c:1152 #23 0x010052f1 in command_loop () at keyboard.c:1101 #24 0x01004573 in recursive_edit_1 () at keyboard.c:731 #25 0x01004a97 in Frecursive_edit () at keyboard.c:793 #26 0x01002797 in main (argc=3D4, argv=3D0xca2da8) at emacs.c:1684 Lisp Backtrace: "make-indirect-buffer" (0x88f0c4) "clone-indirect-buffer" (0x88f260) "eval" (0x88f4b4) "command-line-1" (0x88f704) "command-line" (0x88f944) "normal-top-level" (0x88faf0)