From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 13:03:23 2012 Received: (at submit) by debbugs.gnu.org; 6 Feb 2012 18:03:24 +0000 Received: from localhost ([127.0.0.1]:57506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuSuR-0004F5-9A for submit@debbugs.gnu.org; Mon, 06 Feb 2012 13:03:23 -0500 Received: from eggs.gnu.org ([140.186.70.92]:46728) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuSqc-00048B-LI for submit@debbugs.gnu.org; Mon, 06 Feb 2012 12:59:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuSpe-0002Ds-Dv for submit@debbugs.gnu.org; Mon, 06 Feb 2012 12:58:30 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:49217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuSpe-0002Do-CH for submit@debbugs.gnu.org; Mon, 06 Feb 2012 12:58:26 -0500 Received: from eggs.gnu.org ([140.186.70.92]:41519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuSpa-0000ym-0z for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 12:58:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuSpW-0002BJ-1h for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 12:58:21 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:48192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuSpV-0002BE-Tc for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 12:58:18 -0500 Received: by vcbf13 with SMTP id f13so4898677vcb.0 for ; Mon, 06 Feb 2012 09:58:16 -0800 (PST) Received: by 10.220.228.4 with SMTP id jc4mr11495948vcb.36.1328551096145; Mon, 06 Feb 2012 09:58:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.229.71 with HTTP; Mon, 6 Feb 2012 09:57:36 -0800 (PST) From: Christopher Monsanto Date: Mon, 6 Feb 2012 12:57:36 -0500 Message-ID: Subject: insert before setting the mark means the mark wont be set To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 06 Feb 2012 13:03:14 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) >From emacs -q, consider the following program: (defun foo () =C2=A0 (interactive) =C2=A0 (insert "bar") =C2=A0 (push-mark) =C2=A0 (forward-line) =C2=A0 (activate-mark)) M-x foo, bar appears, but the mark is not set. (defun baz () =C2=A0 =C2=A0(interactive) =C2=A0 =C2=A0(push-mark) =C2=A0 =C2=A0(forward-line) =C2=A0 =C2=A0(activate-mark)) I wouldn't expect a command *before* setting the mark to affect if the mark was actually set. Is this a concurrency bug? In GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6) of 2012-02-04 on WORKCOMPUTER Windowing system distributor `The X.Org Foundation', version 11.0.11004000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Christopher Monsanto chris@monsan.to=C2=A0 --=C2=A0 http://monsan.to/ From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 16:25:34 2012 Received: (at 10738) by debbugs.gnu.org; 6 Feb 2012 21:25:34 +0000 Received: from localhost ([127.0.0.1]:57684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuW45-0000Ua-FL for submit@debbugs.gnu.org; Mon, 06 Feb 2012 16:25:34 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:36321) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuW42-0000US-M5 for 10738@debbugs.gnu.org; Mon, 06 Feb 2012 16:25:32 -0500 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q16LObgS024414; Mon, 6 Feb 2012 16:24:37 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 418B213037A; Mon, 6 Feb 2012 16:24:37 -0500 (EST) From: Stefan Monnier To: Christopher Monsanto Subject: Re: bug#10738: insert before setting the mark means the mark wont be set Message-ID: References: Date: Mon, 06 Feb 2012 16:24:37 -0500 In-Reply-To: (Christopher Monsanto's message of "Mon, 6 Feb 2012 12:57:36 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4124=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4124> : streams <726302> : uri <1061096> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 10738 Cc: 10738@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) >> From emacs -q, consider the following program: > (defun foo () > =A0 (interactive) > =A0 (insert "bar") > =A0 (push-mark) > =A0 (forward-line) > =A0 (activate-mark)) > M-x foo, bar appears, but the mark is not set. > (defun baz () > =A0 =A0(interactive) > =A0 =A0(push-mark) > =A0 =A0(forward-line) > =A0 =A0(activate-mark)) > I wouldn't expect a command *before* setting the mark to affect if the > mark was actually set. Is this a concurrency bug? The mark gets deactivated after a command that modifies the buffer. `foo' above is a command that modifies the buffer, so the mark is deactivated afterwards. This is done via the `deactivate-mark' variable. You can let-bind it around the call to `insert' to prevent that variable from being set. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 07 14:25:04 2012 Received: (at control) by debbugs.gnu.org; 7 Feb 2012 19:25:04 +0000 Received: from localhost ([127.0.0.1]:59326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ruqf1-00040N-3T for submit@debbugs.gnu.org; Tue, 07 Feb 2012 14:25:03 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:48327 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ruqez-0003zk-Bq for control@debbugs.gnu.org; Tue, 07 Feb 2012 14:25:01 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Ruqe3-0000KZ-Vk for control@debbugs.gnu.org; Tue, 07 Feb 2012 14:24:04 -0500 Date: Tue, 07 Feb 2012 14:24:03 -0500 Message-Id: Subject: control message for bug 10738 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) tag 10738 notabug close 10738 From unknown Sun Aug 17 10:17:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 07 Mar 2012 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator