From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: 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 1300072033 21788 80.91.229.12 (14 Mar 2011 03:07:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 03:07:13 +0000 (UTC) Cc: 8219@debbugs.gnu.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 04:07:06 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Pyy7d-0002mX-LL for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 04:07:05 +0100 Original-Received: from localhost ([127.0.0.1]:40011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyy7c-0001mv-EF for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 23:07:04 -0400 Original-Received: from [140.186.70.92] (port=50084 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyy7W-0001mq-Ma for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2011 23:06:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pyy7V-00055b-O5 for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2011 23:06:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pyy7V-00055X-Jy for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2011 23:06:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PyxkM-0002my-85; Sun, 13 Mar 2011 22:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Mar 2011 02:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8219-submit@debbugs.gnu.org id=B8219.130007054810678 (code B ref 8219); Mon, 14 Mar 2011 02:43:02 +0000 Original-Received: (at 8219) by debbugs.gnu.org; 14 Mar 2011 02:42:28 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pyxjo-0002mA-9W for submit@debbugs.gnu.org; Sun, 13 Mar 2011 22:42:28 -0400 Original-Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pyxjm-0002ly-Mk for 8219@debbugs.gnu.org; Sun, 13 Mar 2011 22:42:27 -0400 Original-Received: by qwg5 with SMTP id 5so928658qwg.3 for <8219@debbugs.gnu.org>; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 13 Mar 2011 22:43:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44987 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)