From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#55140: 27.1; Feature request: allow customize holidays list Date: Wed, 27 Apr 2022 18:50:56 +0200 Message-ID: <874k2esc5r.fsf@gnus.org> References: <87y1zqbs3o.fsf@gnus.org> <18k0ba8p5c.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18483"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55140@debbugs.gnu.org, =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 27 18:52:24 2022 Return-path: Envelope-to: geb-bug-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 1njktr-0004YI-Km for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Apr 2022 18:52:23 +0200 Original-Received: from localhost ([::1]:48830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njktq-0008WI-8t for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Apr 2022 12:52:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njktW-0008Vn-ES for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2022 12:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njktW-0004K9-5c for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2022 12:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njktV-0003fm-RP for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2022 12:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Apr 2022 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55140 X-GNU-PR-Package: emacs Original-Received: via spool by 55140-submit@debbugs.gnu.org id=B55140.165107827114054 (code B ref 55140); Wed, 27 Apr 2022 16:52:01 +0000 Original-Received: (at 55140) by debbugs.gnu.org; 27 Apr 2022 16:51:11 +0000 Original-Received: from localhost ([127.0.0.1]:44077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njksh-0003ec-4T for submit@debbugs.gnu.org; Wed, 27 Apr 2022 12:51:11 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njkse-0003eL-Sz for 55140@debbugs.gnu.org; Wed, 27 Apr 2022 12:51:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ET2TiRlBV3+9hcyf+DAS+4g4xuhNZPnABqwAIoCq6T0=; b=tsadeiRKHcLbzePnfYa8sxOx7Q qnPeRJv20UBYLKFtACLfu5fDDD8wzlDUPKa3czJTX8R4w2oqwtTU6gdq5/UnoFbd2RlKW+e3h5j6L /MrvGuccQql0qgFn5SrOMbK3aI8DQQj4ngy3Vj/8yGQBh29TN+DCSwY/jFwnwbQzG0nI=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njksV-0007U9-U5; Wed, 27 Apr 2022 18:51:02 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEWjk22fUTtbOiwv GxcEAwLJwZ7u6ND9/fr///8cykeDAAAAAWJLR0QIht6VegAAAAd0SU1FB+YEGxAwFknlBLMAAAGo SURBVDjLldNBU6MwFAfwgIBXkk71SgL1rEnWs0uee86qtNcdncJ1R8fm6+9Lim0oOrP+hwOT3yS8 lwRCCKVMjKmVhjGkw1iyTyLEf0LXjTIHSyxJCGER9P2eUt5UJBWNqVWt9hDEghSy8qC0+gAvmcRi bxLRABjQH7DtbPtb8KZFMELJw4x+/Xj7l5cLQ/yMw8d90qLvRQoz2C7Wfc5SU7EYdmmVyJ5Qm7XX aQS7M6XkavlQ5Q2/i2B4VghLbstEsZ/xjAbBLBec1CptyRFesSNlSkFrMCyGDMcVCM6gBpARaAQA 3G+jPWQHAPB7JtGRru1ZBKDC4zfvrnuMAdcK5yOhnQKWG95zo04hBFqti5cYQPvmh60GfTWFkPXw BHD7CZTkD8LbFLB5Q+lan4DhtEwYp0UG9zHg+D7lC/x6PQKO423H8YJbvolAMuGr5XTIC+ci4HVo T5bO5TG0Ymy8crsJ4F9kAvxw7xcTGCeoK+eGGGp/u30unc8R1LjSjZtBqIlsZhD2nDs3A7+SXH0C PuJiDqEmcTmHUJM4/zYU/Zjn+Zmf5Ev4B36NHPr9BKGLAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIy LTA0LTI3VDE2OjQ4OjIyKzAwOjAwqT/RqwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNC0yN1Qx Njo0ODoyMiswMDowMNhiaRcAAAAASUVORK5CYII= X-Now-Playing: Heidi Berry's _Below the Waves_: "Firefly" In-Reply-To: <18k0ba8p5c.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 27 Apr 2022 12:30:39 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230799 Archived-At: Glenn Morris writes: > I don't understand this request, nor the solution. > > list-holidays allows the list of holidays to be passed as third argument. That doesn't really help with the interactive spec, which is what's been changed. > This argument defaults to the variable calendar-holidays, > which is a defcustom. So that seems like two ways you can control > the list of holidays? calendar-holidays controls the "All" value. > The solution splits the completion list used by the interactive > prompting into a separate function. Is the misspelling "holydays" > intentional? Nope; fixed. > > "you can alter the results by redefining that function, or use > `add-function' to all values.". The last part of that doesn't make sense. Typo. > And you can redefine any function in Emacs, so does this really need stating? I think it makes sense to state that this is the intended customisation point for users. > But how is this any better than defining your own interactive wrapper > function that just calls list-holidays non-interactively with the > desired list? That's a possibility, of course, but somewhat convoluted. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no