From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : What is the difference between (deactivate-mark) and (setq deactivate-mark t)? Date: Sat, 3 Apr 2021 04:13:20 +0000 Message-ID: References: <87pmzc825q.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31981"; mail-complaints-to="usenet@ciao.gmane.io" To: Drew Adams , Marcin Borkowski , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 03 06:13:49 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSXfR-0008E4-MN for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Apr 2021 06:13:49 +0200 Original-Received: from localhost ([::1]:39552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSXfQ-0000El-NU for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Apr 2021 00:13:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSXf5-0000Ef-Bs for help-gnu-emacs@gnu.org; Sat, 03 Apr 2021 00:13:27 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:57916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSXf3-0002RG-K3 for help-gnu-emacs@gnu.org; Sat, 03 Apr 2021 00:13:27 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1334DO3u099104; Sat, 3 Apr 2021 04:13:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=Xib7aRk9v1ig0MSCOpM30AzNfqwR5HWcuGrIuV6Idlw=; b=m5nBc5c6d6VM06M4fHE0uN17R1GI7gGN7b5lDkZQFfZGZQYu45HrXR3xDc22FpgSPnsq sojjGUoyA5/GThE16WsrcGykUDEMYjgrI/y+V6f0bFsKWAoy/9Cc/y1SrddkaxCWkCj3 QfEfiGHjj24IH9b6LN87hQFjOshgkGyDnjVVhdnX76RZV7gav5V6a3aQRMaejY+c6GX4 1t97P16HDIn5PDsCbpAmJvB6kjKWnXtWGq2zoHQXbRvqMY7XH1plNwxnEF19j4nYGqIl YpD7j2V6XgyJ/D+LWNrInI3ebtGcQJCosvq9h1lLipuh0ZBaQ/t0QYcMHTBvcJUasJHk HA== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 37ph0n803p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 03 Apr 2021 04:13:24 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 1334B1uv057945; Sat, 3 Apr 2021 04:13:23 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by aserp3020.oracle.com with ESMTP id 37pg6112aq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 03 Apr 2021 04:13:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LdK7LGkERE1yeIXucs2KBxAicxk2imzst4470EDdLUCF8AQC8ESKg2LAdb+AA5mF1BsNfy+yoxbnLPbaf3P0LeUO54d+dJlOQ4x8qxGpE5xG80RI9ojpf0iWd0/fp3uiZJqzrg1ruRX2FXZsm8tbdl8FmH3bZi0mZkMpI/rTawPM9/ymhTTOT9mIClVf/rTpuwY+B7OG2VjhsHSWAv9zNF+yYZAl3vD3yqGluvteFcQ0F4mPE5IbjAEJwnpvgOqHV7QUSQCuq6QIEC2U/Ezr28HE7GX54HfHnZvvWBeI4P13TpWYBmzn2qJLv1+Jjm7gyPR749lYH80ujxBdeOlS7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Xib7aRk9v1ig0MSCOpM30AzNfqwR5HWcuGrIuV6Idlw=; b=BWaUY0g4yWwDtFss9vVxFGuM+kRYt0Ly676bEFvJ8+FWVb69OPgGmAXfTOoUgINlXMwe6OWO2ofLljztfng5apb+VvCimfebTi8FEo2AGdEmib6Xk7T/+QMVg3EF71n5vdhXk95yVjrdRFmPvc/QQMz7lyRNyirOURBZNlsMYxx2SzVKTXBvq1I241+tnIyxw9/ImP/dPMLX1DikDVQxQHAxwF0CTc4T9SIMeA8OJawJbbV5y3+n6TOlCVfoZRPtvAELpyU9BTLUDX4CTdOwD5KYfklmEayj3tU9HlPJHH25SQPMleEQMSvfm48dMlPTcrjRhReAWE9yKbQhf/V1Lw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Xib7aRk9v1ig0MSCOpM30AzNfqwR5HWcuGrIuV6Idlw=; b=WWdGL1aHD6DP7kzKiVPMnOtSuRxgnTpeo1qd/+c6oABAxkEsTVc6qlCs3DHWBPeG0uWjvgMSaiYFwwGnT/ESwQjpZ0hluSZbV5XQ+4/x0cd3/Rj1OHqfG8WWLQ/uZ2vbaYciqoCofc4ZE5e9I+ssy2wHFai37ZPC0A1l45rzS3c= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4588.namprd10.prod.outlook.com (2603:10b6:806:f8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Sat, 3 Apr 2021 04:13:20 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3999.030; Sat, 3 Apr 2021 04:13:20 +0000 Thread-Topic: [External] : What is the difference between (deactivate-mark) and (setq deactivate-mark t)? Thread-Index: AQHXKDthqSNi4uUFpEePYPI0nAaEwKqiLJ3wgAAB5mA= In-Reply-To: Accept-Language: en-US Content-Language: en-US x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: eddcac88-2c1f-40bd-35f9-08d8f656d105 x-ms-traffictypediagnostic: SA2PR10MB4588: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SA3R8uxdV7PnQMwyNSNU/Hqjantl3/C41yQgpJdX14tvFpy/pB6j06CFpzxTfC2ec5c8ryfmGVrgJhI3kVgqyYGlquLKwnAgeyJf6v05vPz3hOxwwVDuETzs0EjbKIKxH/f6AhmpeKeGW1SDFOU4dkCZ6UIU2pEZrOZPhSAq4J84piXBXzz5lJXiRatYHih0tlT1tQ1Hvwz84U1ndO35AtWV/9Sbh3vdbEvZNmkZXSHAX5fyAzONgPKU3SWTnDd8xk2SU+RKHEXZuVroDqFabwlFFe9eex/LROh2Yy2zS2nDjOiPp8norPxkxrioHw/Zsqt3IizZemgnwWiWcAZ/PZTysLUZcbAlLr3Bfos9ui1WyiRCz+AyX2Wmk9+cyg2z8yhS7l6RBPAua4Vdf69ehzMU6gMRYJH7GwH9qs4BbBxL4gQlGhechmsK+lzcRl7mhSNs0tPZaCnJYCPbWuwYNPVVLQMQL8hzt2/5yUcONmQhx29L3wFlck5pEyuW3bLrfbHrpuszYU4YZB9OXJq6rYn8Ef0vKw+ft+VVWTf6KaZEA2dNerW6abZRvmRuelsqtrucBGEALGtxgupBy0hjboGltgjUhB63zUKG5aTrUwSTcrVHu9U42vz6EOLZNto0JNCGsU2DhRds3NYCRh1kH/ZNF1OvhX+kvwIxEvgpoh/RlJOA7KLIMfCm58ju+Gj/qJ2WRV/zk2zlBMLeb31xCbvqUFmbstQN+9ckiUUxB5I= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(376002)(39860400002)(396003)(366004)(346002)(110136005)(7696005)(55016002)(9686003)(186003)(2940100002)(83380400001)(966005)(8676002)(5660300002)(26005)(316002)(76116006)(38100700001)(6506007)(66946007)(33656002)(44832011)(478600001)(71200400001)(66476007)(64756008)(66556008)(66446008)(52536014)(2906002)(86362001)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?9rlGtmDC3dnpSqePwXaGzpYETh9YjIshS7OhpJBgju7Lud0R6N1imVoGzEjA?= =?us-ascii?Q?Aub1Z92Lg3h09yBh0jQ1DFe2IkUVaZsKzgsAc5CTz9KhzvyokKpLK3Ps9MQT?= =?us-ascii?Q?B48Y0vatTxzJXoODrZYVVErCSXLPqxBuxcwBl4Rlp8OmFoD2yy6k3a3nM3Fk?= =?us-ascii?Q?UEfDT4fBzuHzoqB3LtmZ94R7YmPsnHaBPNjeiIiQXQfgFfjHg31HiXGAyzfb?= =?us-ascii?Q?9LEXew4f9SAiHGB0iZj5o+K/LBMJuzjeRPxh1drniGLZR3gIWUrTle6si5Rv?= =?us-ascii?Q?T9uXWnPf0oWrqFMIc3X0uNbHzR5yiH33GuC3p8v1CyA4Obxj2T1Cnf4hUcBL?= =?us-ascii?Q?/o4/+efRGI25SkVSNeSE75TYxPgeGK0sKaxkmuqaOWYlmIIDMkCvoX+4d16b?= =?us-ascii?Q?qy8cmwkMlH9dC60hdmDS6ChsYC2+I8XPBBnhi3+7BFRvtzD4R172gqx1rZce?= =?us-ascii?Q?zRie6xMHd9o+pFtex9zrcuXwyO5G+7Th9RWUb4uSj5/AWldOvi3hvDrh+k58?= =?us-ascii?Q?umKmuCEmXzzgraJQfFeVOdjgXgFyCKHXiswyL3L1avPTAsFfy/I1YQbNQMfN?= =?us-ascii?Q?L6wcmx6Qm+Uy7hAgY1cIt5W2k0ee/NMKtHE6rao4U+2Y4KlB9s7TJ1TJyzcY?= =?us-ascii?Q?dGe0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eddcac88-2c1f-40bd-35f9-08d8f656d105 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2021 04:13:20.6727 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OePdiYnTLn8HHojOHaH7qxgfNprVb/RoOfbyZHGU8h2Ut+cKY/5CssGrfh4Q18M7PlKbcR2oVxfZog4kEtPNsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4588 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9942 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 mlxlogscore=901 phishscore=0 bulkscore=0 malwarescore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103310000 definitions=main-2104030026 X-Proofpoint-GUID: iVK3_xVpEbre6_4pMrbW2Z9A1hpjLMZd X-Proofpoint-ORIG-GUID: iVK3_xVpEbre6_4pMrbW2Z9A1hpjLMZd X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9942 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 priorityscore=1501 adultscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103310000 definitions=main-2104030026 Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@oracle.com; helo=userp2120.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128831 Archived-At: > I may be repeating what you say you already > understand, but... >=20 > Function `deactivate-mark' deactivates the mark > (duh), and it does so right away. >=20 > After a command finishes and returns, the command > loop normally automatically deactivates the mark. > IOW, for the next command the mark is inactive. >=20 > But if you set variable `deactivate-mark' to `nil' > in your command then the command loop won't > deactivate it when your command is done. >=20 > As the manual says: >=20 > To write Lisp code that modifies the buffer > without causing deactivation of the mark at > the end of the command, bind 'deactivate-mark' > to 'nil' around the code that does the modification. > For example: >=20 > (let (deactivate-mark) > (insert " ")) >=20 > Setting the variable to nil says do NOT deactivate > the mark. See (elisp) `The Mark'. >=20 > https://urldefense.com/v3/__https://www.gnu.org/software/emacs/manual/htm= l_no > de/elisp/The-Mark.html__;!!GqivPVa7Brio!J- > d7d78WD6nya8fCTTFpzUVHQ663J53lu6PUPuwSANdbP-lnuZeC2k3gEwHg1-Di$ I meant to add that you can do this in one command when, for example, you want to keep the region active for the next command. E.g. when one command sets up the region for other possible commands to use.