From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Why does save-match-data do what it does? Date: Wed, 07 Mar 2018 10:55:21 +0100 Message-ID: <87woyonrau.fsf@gmail.com> References: <87fu5ctr2u.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520416441 29883 195.159.176.226 (7 Mar 2018 09:54:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2018 09:54:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 07 10:53:57 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etVli-00071b-KD for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Mar 2018 10:53:54 +0100 Original-Received: from localhost ([::1]:60473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etVnl-0002fS-AJ for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Mar 2018 04:56:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etVnE-0002ek-2i for help-gnu-emacs@gnu.org; Wed, 07 Mar 2018 04:55:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etVnA-0005xd-OM for help-gnu-emacs@gnu.org; Wed, 07 Mar 2018 04:55:28 -0500 Original-Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:35180) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etVnA-0005wn-8L for help-gnu-emacs@gnu.org; Wed, 07 Mar 2018 04:55:24 -0500 Original-Received: by mail-wr0-x22e.google.com with SMTP id l43so1497097wrc.2 for ; Wed, 07 Mar 2018 01:55:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:user-agent:mime-version; bh=XcvkGAXOKxB2xGv71pJRd9sXvvJm51Jnp/zf0gXvZXQ=; b=VZp4aHwdg3PVPJzDCfKlID6NC1Mo8q8GA0zAVJlsxFY+ZjXSBFVj7HbvW9Ew8tNtH8 y4YsCNOHlU3CCr395T4OjJpE4N37nKTt2dOuPpHvHSHR4lXW1QTRDyjSDsyTZJoAnkGq yM7TZbuzL6tywdcIdIDPhmWCPFN0rWEy4UUax2H0wnZEVWmmOVgvoVaKHGMzYM4Bn/j0 VVGKWdlCc4UPyFgoJc7kW479iq+ZZGnGZ95DyEBPeuSPv9xhNJzr/i/jy3QqTiiIKfio LD43/FZxNSqnzwXpTTRT0y2SVYplDnPoJZbxX5YV8vR80i451SUzI34m+tZZE5EWgSKx YN9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version; bh=XcvkGAXOKxB2xGv71pJRd9sXvvJm51Jnp/zf0gXvZXQ=; b=nXyNV3Gyq/bZb0/92HCrCBpREEmtNgm73QEroSNBj9R7SY04GKpet482MkIU31PuNF i9KM6FiuMru9x6I6xJqdXJKt0+sLjSbPGxzgAdFG+I3VtsUwmBrbtzK2HKBbFw6HwmRD YYvGqzkcvSgVXUfhRlDp3aZCxyccnpndWHNegGsN4JWLrnJ9YPRWdBp+XJKTpV+IhxEf v2uU/tSzizb1jxDiZ/zZAIh7gX6KBfdoP9HkinEh/aBnhuh6u4mCq1MaiP24Bq5FKDwH QVW0FgFDsZfcDWr04ePNYGuj5mJp0FmIbe8OFR2oLLh72fzArZ2nH4ykCrr+6ljhZXYK ogtw== X-Gm-Message-State: APf1xPDL5y59dccQZS+QY78Zpbb0oH23kSoR24mCMXy5HOVmJZ2fYged nifChQ2LfLRXNeAxo+B4QvmWuRfE X-Google-Smtp-Source: AG47ELtjZ9IhNqhsJhafrKj8AGXDJurxJCR1NkbzGgb07FKZvC51p0+iQwAetQOBkDYjxB9NRihDtg== X-Received: by 10.223.169.161 with SMTP id b30mr20563892wrd.232.1520416522527; Wed, 07 Mar 2018 01:55:22 -0800 (PST) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id k2sm19860020wrc.30.2018.03.07.01.55.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 01:55:21 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87fu5ctr2u.fsf@mbork.pl> (Marcin Borkowski's message of "Wed, 07 Mar 2018 06:03:37 +0100") X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Received-From: 2a00:1450:400c:c0c::22e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116123 Archived-At: Marcin Borkowski writes: > Hi all, > > save-match-data works by assigning the current match data to a temporary > variable, doing its stuff and restoring it again. Why not this? > > (defmacro save-match-data-icmd (&rest body) > "An alternative definition of `save-match-data'." > (declare (indent 0) (debug t)) > `(let ((inhibit-changing-match-data t)) > ,@body)) What if body want to use match data? Robert