From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23282 invoked from network); 25 Sep 2022 03:32:27 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 25 Sep 2022 03:32:27 -0000 Received: from localhost ([::1]:45686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocINV-0008D5-GL for ml@inbox.vuxu.org; Sat, 24 Sep 2022 23:32:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocINS-0008Cd-CN for info-gnus-english@gnu.org; Sat, 24 Sep 2022 23:32:22 -0400 Received: from pv50p00im-ztdg10021201.me.com ([17.58.6.45]:33928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocINQ-0000NX-VD for info-gnus-english@gnu.org; Sat, 24 Sep 2022 23:32:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1664076737; bh=3sEafahyqJRCeK+FD28+JE0PXbLPxKs3nutIIS82yx0=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=rapvHbsJ5ruZMEa4XGHNopz9ZuUVmxgbvyq67hkyrrmbxdpDtXpzEjK9a1wWU4oA3 w9cmhFAflF2GPYtMFYU0HuFDVM9ZovzPyCJlfUccve7FA/DLZwoZIaW4fBuVi21EWi be6lgEZKiDiCRLUQbYw4Sb/oRRsxSgSsF3ea+wBTz3hkH6A7RcsCYW6ZOLzRb6VAfn eGmeJ8S3XCpGyivVgWUmYSInR7R1eqBrWtWmEp7C8Gmz+Kvw3CcgA7O5axJlD+CkBA LC7UiyaixsP45y57i5dxzXEgOUppDe01tz5NxPoyDUcDgazBishOIncdwF4u2qNVdT aoBNLZiReGaig== Received: from arch (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10021201.me.com (Postfix) with ESMTPSA id 17127680264 for ; Sun, 25 Sep 2022 03:32:15 +0000 (UTC) From: Satoshi Yoshida To: info-gnus-english@gnu.org Subject: Re: Strip signature on reply without standard separator References: <87y1vykpl2.fsf@icloud.com> <87zggbz3ho.fsf@icloud.com> <87bksaz837.fsf@icloud.com> <87a67ul62m.fsf@dataswamp.org> <87mtbufg7e.fsf@icloud.com> <875yii2oru.fsf@dataswamp.org> <875yih6n25.fsf_-_@icloud.com> <878rnaw3tw.fsf_-_@icloud.com> <87mtbgarre.fsf@icloud.com> <87czcb6gjp.fsf@dataswamp.org> <87r10onki5.fsf@icloud.com> <8735d47zos.fsf@dataswamp.org> <87fsgsgpsv.fsf@icloud.com> <87illkyybp.fsf@dataswamp.org> <8735cl6qce.fsf@icloud.com> <87zgesx3zt.fsf@dataswamp.org> <87leq9lqmn.fsf@icloud.com> <87edw0pz7x.fsf@dataswamp.org> X-Operating-System: Linux version 5.19.10-arch1-1 Arch Linux x86_64 Date: Sun, 25 Sep 2022 12:32:13 +0900 In-Reply-To: <87edw0pz7x.fsf@dataswamp.org> (Emanuel Berg's message of "Sat, 24 Sep 2022 17:29:54 +0200") Message-ID: <87illcp1s2.fsf@icloud.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: 413xqK5pXnfnXwZiAbi2aF8x1nBGeRJL X-Proofpoint-ORIG-GUID: 413xqK5pXnfnXwZiAbi2aF8x1nBGeRJL X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.883,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F08:2022-06-21=5F01,2022-06-21=5F08,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 mlxlogscore=661 spamscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2209250023 Received-SPF: pass client-ip=17.58.6.45; envelope-from=dynamisxar@icloud.com; helo=pv50p00im-ztdg10021201.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" Emanuel Berg writes: > 1) Always use lexical/static scope, i.e. put > > ;;; -*- lexical-binding: t -*- > > first in all and every new Elisp file you create. > > 2) In this case, since there is a formal parameter with the > same name, `setq' does not create a global variable. > > (defun strip-signature (re &optional rep) > (or rep (setq rep "")) > ;; ... > > This is OK. Only if you misspell "rep" to something that isn't > rep (or re) a global variable will be created :) I understand. As for me, putting ";;; -*- lexical-binding: t -*-" is difficult. Because the file (.gnus.el or .emacs) isn't new. It consists of my code and the other parts that already exists. If I (or someone) put ";;; -*- lexical-binding: t -*-", the other parts will be influenced too. So I want to leave my code as it is. Thank you anyway. -- Satoshi Yoshida