From unknown Fri Jun 20 07:16:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35579 <35579@debbugs.gnu.org> To: bug#35579 <35579@debbugs.gnu.org> Subject: Status: Add example of setting view-exit-action to a "function with one argument" Reply-To: bug#35579 <35579@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:16:50 +0000 retitle 35579 Add example of setting view-exit-action to a "function with o= ne argument" reassign 35579 emacs submitter 35579 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 35579 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sun May 05 08:32:14 2019 Received: (at submit) by debbugs.gnu.org; 5 May 2019 12:32:14 +0000 Received: from localhost ([127.0.0.1]:53190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNGJS-0000em-BI for submit@debbugs.gnu.org; Sun, 05 May 2019 08:32:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNGJQ-0000eM-IS for submit@debbugs.gnu.org; Sun, 05 May 2019 08:32:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:45571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hNGJL-0003y3-Et for submit@debbugs.gnu.org; Sun, 05 May 2019 08:32:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNGJK-00017O-Fn for bug-gnu-emacs@gnu.org; Sun, 05 May 2019 08:32:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FROM_EXCESS_BASE64, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNGJJ-0003wp-Mn for bug-gnu-emacs@gnu.org; Sun, 05 May 2019 08:32:06 -0400 Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:18166) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hNGJJ-0003w1-ER for bug-gnu-emacs@gnu.org; Sun, 05 May 2019 08:32:05 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DCFCD1257D0 for ; Sun, 5 May 2019 12:32:03 +0000 (UTC) Received: from pdx1-sub0-mail-a34.g.dreamhost.com (unknown [100.96.11.48]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 92742124E11 for ; Sun, 5 May 2019 12:32:03 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a34.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sun, 05 May 2019 12:32:03 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Celery-Decisive: 40fa75924dbda8e3_1557059523718_3646160883 X-MC-Loop-Signature: 1557059523718:2778085035 X-MC-Ingress-Time: 1557059523717 Received: from pdx1-sub0-mail-a34.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a34.g.dreamhost.com (Postfix) with ESMTP id 5D66D7F0C5 for ; Sun, 5 May 2019 05:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=RyprUDY5DJ/bFoPUl+ c9E+R2Dh8=; b=pvc8NtvHt8gnDcwdMJi6JR9qTdj1WLx1toqm0gpteHNDgsuGfs 97NNpy5vU0A4HbiLLqOQkYrUx/EEHzjVK+UsUu/Lcrb4S3qs2bWExy55+LFMseHh TbKgKXkmRKStUDxxMguapyulLNYAsl4Jr6/BHKhED21LYk6Ml1aCsOxO8= Received: from jidanni.org (111-246-101-35.dynamic-ip.hinet.net [111.246.101.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a34.g.dreamhost.com (Postfix) with ESMTPSA id ED2737F0E1 for ; Sun, 5 May 2019 05:32:02 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a34 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: Add example of setting view-exit-action to a "function with one argument" Date: Sun, 05 May 2019 20:26:55 +0800 Message-ID: <87tve9ccj4.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrjeehgdehlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtkeertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepudduuddrvdegiedruddtuddrfeehnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepudduuddrvdegiedruddtuddrfeehpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedu Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.214.38 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) view-exit-action is a variable defined in =E2=80=98view.el=E2=80=99. Its value is nil Automatically becomes buffer-local when set. Documentation: If non-nil, a function with one argument (a buffer) called when finish= ed viewing. Better add an example of how to set "a function with one argument". Thank= s. From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 20:37:15 2019 Received: (at 35579) by debbugs.gnu.org; 7 May 2019 00:37:15 +0000 Received: from localhost ([127.0.0.1]:57819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNo6c-0003Br-Pa for submit@debbugs.gnu.org; Mon, 06 May 2019 20:37:14 -0400 Received: from mail-it1-f172.google.com ([209.85.166.172]:54218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNo6a-0003Bd-Vy for 35579@debbugs.gnu.org; Mon, 06 May 2019 20:37:13 -0400 Received: by mail-it1-f172.google.com with SMTP id l10so23552651iti.3 for <35579@debbugs.gnu.org>; Mon, 06 May 2019 17:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=5WAWeDUh/cMFx2j333VkZVnPtKbmhnk1eGDXAmQJHMU=; b=lsG3QKs2C0v6ISHJKFMUlfWCeSy/J993vI2yYEouyL3xP/IJgDmxej2QCrnIx0Swxe EVklVA11UtDR/E3BzLFMIwGthEwx+C1zpaP9yzPoegwVJHI1gkrkLk2pzkpL0lcwZe9+ UFQ8yQayi5+TIxT/26YQSSn9tkxGukLzM0rD9/baQ1yNNXG/d+lUbc37g/K2r13YvqFf SDwG9YmkGCyrgNOYDN7mtbw3B8zzpEv6V+B/26ceUiEYNXbG9HHST4SM3rn7qSqXor/i ph7s2BVOojoqACmISBvLGr3+7DWw9Nsqiw91Q6GFqBZ6q2NA090D22t1dqFoMDhPuW3v /miA== 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:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=5WAWeDUh/cMFx2j333VkZVnPtKbmhnk1eGDXAmQJHMU=; b=ZfDv0IPI0Lq7f/thtwWvpZix7GL1cCLRUM+J/N4IJ7Ne86SeRbsS/phD2rYZAGGjeq WxR1banbOxQulrd6MzjhzirGSUV6gnhuPYjl5HOkFmSMGNm9zXQYU6T3HloiWv7ORIUQ OY984W3rR0q2UA5v/WeuoQokpe/lKpD3oewTja9ISbLf5Ss+CripUdZuO/ov5PdIFwzH OwKrQYVWCmCwPNYlXeM/P9B/Sbzq14oTTdpfqqADk/X72BRIEPijjf8eFhYomgZxdL1r 94+PUSCMgqBfpX8s/DH2b5oK8OJGmriolrzo/GCK/g4yfVURU7hK83t236M6z4Rm6ehK TtPQ== X-Gm-Message-State: APjAAAUq1gfBiuFlI+cvHHMIXXBx3db3IQsvzXQ5Ns9M6ro0Ky61XHfm HarTJb1qmzJGmUyzhKH/tvMcwEBx X-Google-Smtp-Source: APXvYqygfc2J0tUP1jWle4b/PGH8UtGnrsb2Nrqb22iixLpJGTOAxl18o8xXeMObdXBoITwmH3J89A== X-Received: by 2002:a24:f584:: with SMTP id k126mr1574997ith.31.1557189427108; Mon, 06 May 2019 17:37:07 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id s4sm3232338ioc.76.2019.05.06.17.37.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 May 2019 17:37:06 -0700 (PDT) From: Noam Postavsky To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#35579: Add example of setting view-exit-action to a "function with one argument" References: <87tve9ccj4.5.fsf@jidanni.org> Date: Mon, 06 May 2019 20:37:05 -0400 In-Reply-To: <87tve9ccj4.5.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Sun, 05 May 2019 20:26:55 +0800") Message-ID: <87h8a7kslq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35579 Cc: 35579@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > view-exit-action is a variable defined in =E2=80=98view.el=E2=80=99. > Its value is nil > > Automatically becomes buffer-local when set. > > Documentation: > If non-nil, a function with one argument (a buffer) called when finish= ed viewing. > > Better add an example of how to set "a function with one argument". Thank= s. I don't see why we should add an example of how to use setq or customize in an otherwise unrelated docstring. Or did you mean an example of how to write a function with one argument? I'd say that belongs in the elisp manual. From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 20:49:49 2019 Received: (at 35579) by debbugs.gnu.org; 7 May 2019 00:49:49 +0000 Received: from localhost ([127.0.0.1]:57832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNoIn-0003TW-DR for submit@debbugs.gnu.org; Mon, 06 May 2019 20:49:49 -0400 Received: from ostrich.birch.relay.mailchannels.net ([23.83.209.138]:62225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNoIl-0003TN-GV for 35579@debbugs.gnu.org; Mon, 06 May 2019 20:49:48 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1DA565C3F7A; Tue, 7 May 2019 00:49:46 +0000 (UTC) Received: from pdx1-sub0-mail-a15.g.dreamhost.com (unknown [100.96.28.64]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B11235C3F5D; Tue, 7 May 2019 00:49:45 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a15.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Tue, 07 May 2019 00:49:46 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Descriptive-Reign: 08bab25f6a9bd25d_1557190185927_1733144474 X-MC-Loop-Signature: 1557190185927:1184637391 X-MC-Ingress-Time: 1557190185927 Received: from pdx1-sub0-mail-a15.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a15.g.dreamhost.com (Postfix) with ESMTP id 7D39482C9F; Mon, 6 May 2019 17:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=xkw4CXfri8lhEKAE9XWeZLJBQuk=; b=MMFDSvv45Q3wW 1zjX93ab8+rSSLHi2f+V91JzKusaw1LiJpIFQBdpdGElPgE7nAHOrv/i80wr1mad YdVngZEcHdhEMWnOH1MB2ZTtkbt6wIjgGm0DuPue3hp1tMDEGe1IYtwJRoNvIPl1 UYPALz9eTxurGYA/c7ONQbzX9pxWDw= Received: from jidanni.org (36-234-71-229.dynamic-ip.hinet.net [36.234.71.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a15.g.dreamhost.com (Postfix) with ESMTPSA id CAEF082938; Mon, 6 May 2019 17:49:44 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a15 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Noam Postavsky Subject: Re: bug#35579: Add example of setting view-exit-action to a "function with one argument" References: <87tve9ccj4.5.fsf@jidanni.org> <87h8a7kslq.fsf@gmail.com> Date: Tue, 07 May 2019 08:49:41 +0800 Message-ID: <87woj32imy.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrjeelgdeflecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeefiedrvdefgedrjedurddvvdelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepfeeirddvfeegrdejuddrvddvledprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopeefheehjeelseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 35579 Cc: 35579@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) I finally found an example: (setq view-exit-action (lambda (buffer) (or (window-minibuffer-p (selected-window)) (when (eq (window-buffer) (get-buffer "*Help*")) (if (one-window-p t) (delete-frame) (delete-window)))))) So I think view-exit-action's docstring should have and example of what they are expecting. From debbugs-submit-bounces@debbugs.gnu.org Tue May 07 04:16:02 2019 Received: (at 35579) by debbugs.gnu.org; 7 May 2019 08:16:02 +0000 Received: from localhost ([127.0.0.1]:58166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNvGc-0001S3-6S for submit@debbugs.gnu.org; Tue, 07 May 2019 04:16:02 -0400 Received: from mout.gmx.net ([212.227.17.20]:47355) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNvGa-0001Rf-4U for 35579@debbugs.gnu.org; Tue, 07 May 2019 04:16:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1557216950; bh=mm27RS47vwPjgjVvkc+Z0XWBTfSFsC+4nOzGaZ/x2Us=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=fADuw+l0IoIB+GaExwDzgIAlWyh4hKiEFZeJ00sEvgzR33Ihaw7YMYPI4TvB+19Vp c0VDAZ09Ghb50bHAu1gpkd85wCKkLbNa4U6tZ4p+Wo57NUHex7APxIWzp1vVertz/y UUHe2gA9GjQcmlOqztCccA7lFOgslUiAHY2TWIx0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.101] ([212.95.5.94]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MdK8t-1h6fOX1tcx-00IQcP; Tue, 07 May 2019 10:15:50 +0200 Subject: Re: bug#35579: Add example of setting view-exit-action to a "function with one argument" To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= , Noam Postavsky References: <87tve9ccj4.5.fsf@jidanni.org> <87h8a7kslq.fsf@gmail.com> <87woj32imy.5.fsf@jidanni.org> From: martin rudalics Message-ID: <11968aac-45e6-9742-249b-fd688dde591f@gmx.at> Date: Tue, 7 May 2019 10:15:52 +0200 MIME-Version: 1.0 In-Reply-To: <87woj32imy.5.fsf@jidanni.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:JyhXs6kMMDHvDjuk1GhHcKVjF64hrKTDW73Uf6y0LtPvdLDxJTx Z2KEy/QAN3wOeJiwv76An1hrfwZ+Ywfo18lqJmXxOIipCalTiJ9bhWxbMuuLok+0tyWVwKk JVwnWTHEJ8QkLUpEyj2Rcy/vxueunxSDUB+pHgJa9EfthLA/CaeO2LTz5w6+RuZIklLrXrq mos92y7+mbV95xfuQNA4Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:xn0cp+ML7Rs=:UrQMlFpcKY6qmN2Dn75a2S Lvy9XyPfbDSjn/n76jDz2jHBfEklpgFz3sY1ISzpCIl6POFsQxIprkFWy6zq0ntTJRY5ZYzfR WjN6xBD76U767eCMX1RB7diZuFAoEchVQAuUijl9dPUXjVUGROLr01L5oe7W+wiQ6+4eN7Nry wCDE/wN1VB7k2flK4HpKSbL38wR9ja+fEtEWkfyW7zxmOvYta7XMCfgeJLK/E940IDObRTrK9 Jhy1/rOKc3xmWgC1EjZZy3aYb1KNMe1dkvlueejjSWk2WSVIi1+5MW3eEoj5tPRELgUR7rgzz hCsIYVXj+pWtW9qBP50BTxs6hm+PUimIzJgLK5ayCZs4tFjylfcWpNqyBpvTq58PGU1anl0F+ AXxv4bV76cqYZQ35Jf7uzFB74IPRkldvqtHMWg98hxVHh/aR/y0IyHfDgWYao3r8hZiUZZT80 7VgmpXAWWvOcrB1dQS8MQiNamlRF2dvhxyfzVCD7aEjEzz5pAhKGVG7TUgl//SJy2KisQgn5e iw501ZLDrOE2O+7TwHb2i7w+gimfkzUhRDfddz+KuUp6eDK7g4LT7lKSF4THk0jar55mQGWK3 0PDCxYEp0XcARo3eZHWUyrLDHDPET0QnJ9B0L5eHkeh+tPyu4yEPpxJodw9aKUHS6uM9cJr4u IXiye0mta2Mv2YvFWZQcKJI8sfBPYcqJTqEnbtRLqoIPWPb0y23/ADJUfHsbmkos6P6Qh/l8V leImyWc9J1a/1B0M6+E0YFlRU+eWYzYhFx4KeDxGNCxda0SeRq9tA9hAHeytbWOtWr62auy24 36n/SLhs85EQTMN/8WDMjb48WZG613UJ+UKE9VUmPC7iJ8B/c5hDRGXqbPGwXllKbYvssKAVL hc8cBQCLHXdgoQwqXHNqdRQAz7zTPkJZI0E+waqipDaw0aRN7hxYd4kHLsiNw3MpaM4v+wzzn /0eF2cfQigg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35579 Cc: 35579@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I finally found an example: > (setq view-exit-action > (lambda (buffer) > (or (window-minibuffer-p (selected-window)) > (when (eq (window-buffer) (get-buffer "*Help*")) > (if (one-window-p t) > (delete-frame) > (delete-window)))))) > So I think view-exit-action's docstring should have and example of what > they are expecting. To me this example is confusing since the BUFFER argument is nowhere used within the lambda. martin From debbugs-submit-bounces@debbugs.gnu.org Wed May 08 02:22:31 2019 Received: (at 35579) by debbugs.gnu.org; 8 May 2019 06:22:32 +0000 Received: from localhost ([127.0.0.1]:60199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOFyJ-00044J-Bw for submit@debbugs.gnu.org; Wed, 08 May 2019 02:22:31 -0400 Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]:22958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOFyG-000448-Pu for 35579@debbugs.gnu.org; Wed, 08 May 2019 02:22:29 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CC4FA501BEE; Wed, 8 May 2019 06:22:25 +0000 (UTC) Received: from pdx1-sub0-mail-a27.g.dreamhost.com (100-96-30-10.trex.outbound.svc.cluster.local [100.96.30.10]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 222BC501BBE; Wed, 8 May 2019 06:22:25 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a27.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Wed, 08 May 2019 06:22:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Snatch-Chief: 202acae763b20638_1557296545611_3884057673 X-MC-Loop-Signature: 1557296545611:3900133724 X-MC-Ingress-Time: 1557296545610 Received: from pdx1-sub0-mail-a27.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTP id 9DA3683306; Tue, 7 May 2019 23:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:date:references:message-id:mime-version:content-type; s=jidanni.org; bh=YB5P0tnsh6W7NbmVKoewCiGc9gg=; b=KnwbS6oFFzfSf /lp6L4oTJDIl+dRnGXBZwK3geLrAOZ7aDQLKMpW6a+Q+pq3316DnsBSgUTFPkPjW 0Wmnky90vXdrOfCNrLzOKovvlO63fbDC+KFCPDPRfc2QIbsvxwPhPxFSVNO1pPy6 eTTElYucDjdH/yC+5lv2sQ7nDKXMbk= Received: from jidanni.org (111-246-86-229.dynamic-ip.hinet.net [111.246.86.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTPSA id C6CE583304; Tue, 7 May 2019 23:22:20 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a27 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: martin rudalics Subject: Re: bug#35579: Add example of setting view-exit-action to a "function with one argument" Date: Wed, 08 May 2019 11:51:41 +0800 References: <87tve9ccj4.5.fsf@jidanni.org> <87h8a7kslq.fsf@gmail.com> <87woj32imy.5.fsf@jidanni.org> <11968aac-45e6-9742-249b-fd688dde591f@gmx.at> Message-ID: <87a7fx8nzb.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrkedvgddtjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuffhfkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduuddurddvgeeirdekiedrvddvleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduuddurddvgeeirdekiedrvddvledprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopeefheehjeelseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgepud X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 35579 Cc: 35579@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) >>>>> "mr" == martin rudalics writes: mr> To me this example is confusing since the BUFFER argument is nowhere mr> used within the lambda. That's what I'm saying: without a proper example users will only dig up wrong examples from the net/web. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 16:50:55 2019 Received: (at 35579) by debbugs.gnu.org; 14 Oct 2019 20:50:55 +0000 Received: from localhost ([127.0.0.1]:41923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK7Is-0000cI-Ru for submit@debbugs.gnu.org; Mon, 14 Oct 2019 16:50:55 -0400 Received: from [80.91.231.51] (port=39950 helo=quimby.gnus.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK7Io-0000c4-Ie for 35579@debbugs.gnu.org; Mon, 14 Oct 2019 16:50:52 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iK7Ik-000420-KC; Mon, 14 Oct 2019 22:50:49 +0200 From: Lars Ingebrigtsen To: Noam Postavsky Subject: Re: bug#35579: Add example of setting view-exit-action to a "function with one argument" References: <87tve9ccj4.5.fsf@jidanni.org> <87h8a7kslq.fsf@gmail.com> Date: Mon, 14 Oct 2019 22:50:46 +0200 In-Reply-To: <87h8a7kslq.fsf@gmail.com> (Noam Postavsky's message of "Mon, 06 May 2019 20:37:05 -0400") Message-ID: <8736fvuk49.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Noam Postavsky writes: > 積丹尼 Dan Jacobson writes: > >> view-exit-action is a variable defined in ‘view.el’. >> Its value is nil >> >> Automatically becomes buffer-local when set. >> >> Docume [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Noam Postavsky writes: > 積丹尼 Dan Jacobson writes: > >> view-exit-action is a variable defined in ‘view.el’. >> Its value is nil >> >> Automatically becomes buffer-local when set. >> >> Docume [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: jidanni.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 35579 Cc: 35579@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Noam Postavsky writes: > =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > >> view-exit-action is a variable defined in =E2=80=98view.el=E2=80=99. >> Its value is nil >> >> Automatically becomes buffer-local when set. >> >> Documentation: >> If non-nil, a function with one argument (a buffer) called when finis= hed viewing. >> >> Better add an example of how to set "a function with one argument". Than= ks. > > I don't see why we should add an example of how to use setq or customize > in an otherwise unrelated docstring. Or did you mean an example of how > to write a function with one argument? I'd say that belongs in the > elisp manual. I agree, so I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 14 16:51:02 2019 Received: (at control) by debbugs.gnu.org; 14 Oct 2019 20:51:02 +0000 Received: from localhost ([127.0.0.1]:41926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK7Ix-0000cc-4q for submit@debbugs.gnu.org; Mon, 14 Oct 2019 16:51:02 -0400 Received: from [80.91.231.51] (port=39968 helo=quimby.gnus.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK7Iv-0000cS-IG for control@debbugs.gnu.org; Mon, 14 Oct 2019 16:50:57 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iK7Is-000429-E0 for control@debbugs.gnu.org; Mon, 14 Oct 2019 22:50:56 +0200 Date: Mon, 14 Oct 2019 22:50:54 +0200 Message-Id: <871rvfuk41.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #35579 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 35579 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 35579 quit Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) close 35579 quit From unknown Fri Jun 20 07:16: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: Tue, 12 Nov 2019 12:24:11 +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