From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Emacs Calendar - Removing holidays Date: Thu, 19 Nov 2020 16:21:03 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37064"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 16:24:53 2020 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 1kflnl-0009RA-QU for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 16:24:49 +0100 Original-Received: from localhost ([::1]:46448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kflnk-0001Gw-Ie for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 10:24:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kflki-0001Gd-Gu for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 10:21:40 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:60507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kflke-0000jZ-SL for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 10:21:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605799263; bh=XqazRzOde2QRYR7Bo/ZBq23RO6sjAdtHyxQKPHelVLs=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fIRXkku0k+dXOnEwO0P9yRpgF0cwPO4C7SqxKwYfPJ9BYbURN/XL7pXF0EbWc1Q4m VH5TdYZFelAi246F5WT4IlCeyUsBe93x/Sp9emi4FW7N/WSO9+9A5RKr+0HA7KBeGk /ABNkvwcYdb4jE1dr3kUAfUHDQHLZRW/L8GQtpS0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs05.server.lan [172.19.170.173]) (via HTTP); Thu, 19 Nov 2020 16:21:03 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:69EJtBscpWNZCtzhMkxMJbNo36Qj+soTuqv9URtr9SOJ/Pgo+sGHCPKvN45pt4c7LuSbp oL22UtacXtTx8MYzqnMDfeeS/nO65zCqCQ8+TPdQCVP9D7NP39O58DKR5wpz71v6OGaM7whFNuuF RBcWDouBmCzuIm1YlZ/ZnL7z3/TQPhUye8nGm+UJwBQcAbzWd4JaBOFyCA/5nmn2Bmkb+Vtxb8Jz 3SDSmY7PTV3LMQ7MWjXElrbrd/fr8YOCFBCa1ruykEpwQo2AONI8oU/8DOlp3NoaJ7pp1k7LmoLd X0= X-UI-Out-Filterresults: notjunk:1;V03:K0:R+n2SB8qqvQ=:UP68WF6HygAt3cEBohXpbJ nqbkb8wrFewH4HMue0l8w5unOIIdl3UxHI+HfuonsjlPFguKoSvFs5iw9Kf89b7V3z8q5sFtn RKMrJIGDPu7w6EpHHRnm4kEK4FTUO4bShMdX/fmts1eI8LeqLzAylmWGDEm4q9u7JlwTX5BgY Vqv/SkhQrEoUeswPYJzJw9XZwKkvuQdrcXCB6sfYM4GxrTY9E69cbdX2lJ8JQwNSnYlSr+02f OQ3X9kSRcucTtfbeB30gmxwAG3s4FuLAmzFQ/vSOys8V0KY943v/2LXWqYbUEEMMbkEAp5ttJ GYa0xO9vn+7KBQl16ynXfLlbHfrK4CXyak0SsZHK3CpPQdpWKvjdOz832XMGu38kpAa82Gh0W 5LGNO0MshtmdBuJOko0C8yJL7gKifsI5Lti1w44VS2uEma1iiuC9tv0pa6ghIV7NhL/QJnhc5 icKaG4U/6iBpwLgid9fFfYDeBxdHSOh0vrfEZc1JsaUdn4ptqYJ7cPLvvGV7FYzJUkV1vc4jm ShP95Cmne2xVDOxxcb+uJoRFCul+3lpScYqr9uoCak05sq590b0FSEgncwfS54i1QdRhCNdyY 9b0i7NwlEThSY= Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/19 07:05:24 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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: 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:125377 Archived-At: How can I turn holidays off??? This is what Emacs Manual says 31.13.2 Customizing the Holidays There are several variables listing the default holidays that Emacs knows about. These are: holiday-general-holidays, holiday-local-holidays, holiday-solar-holidays, holiday-bahai-holidays, holiday-christian-holidays, holiday-hebrew-holidays, holiday-islamic-holidays, holiday-oriental-holidays, and holiday-other-holidays. > Sent: Thursday, November 19, 2020 at 3:09 PM > From: "Jean Louis" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" > Subject: Re: Emacs Calendar - Removing holidays > > * Christopher Dimech [2020-11-19 16:58]: > > Am trying to remove these holidays but the plan is not working. > > > > (general-holidays nil) > > As in that above case `general-holidays' is supposed to be function as > it comes first in the list. > > Maybe you wish to inspect if such function exists by doing: > > {C-h f general-holidays RET} > > And if it does not exist, it will not work. > > I can see that variable `holiday-general-holidays' exists. > > To nullify the variable you can do: > > (setq holiday-general-holidays nil) > > You may also use the {M-:} to open up prompt for evaluations. > > For example: > > {M-: holiday-general-holidays RET} > > And you may see there are some values under that variable. In the next > step you may evaluate nullify it: > > {M-: (setq holiday-general-holidays nil) RET} > > and then verify again what is the value of variable: > > {M-: holiday-general-holidays RET} > > Any time you wish to find out if variable exists I suggest that you > use {C-h v} > > > (local-holidays nil) > > (christian-holidays nil) > > (hebrew-holidays nil) > > (islamic-holidays nil) > ^ > I do suggest using completion package ivy, you may install it with: > > {M-x package-install RET ivy RET} > > as it is more visual when searching for variables. > > If I have ivy installed and I bring cursor to above `islamic-holidays' > then I can just press {C-h v} and `ivy' will show me completion and > locate the highlighted line on the variable if such variable > exists. If it does not exists I will get first item highlighted. > > Otherwise if you use the built-in Emacs completion and you press > {C-h v} to search for variable then I recommend using `*' joker > character to search for variables. > > Let us say you search for something containing "islamic", you would > do: > > {C-h v *islamic TAB TAB} > > Then you get the list such as: > > Possible completions are: > calendar-islamic-all-holidays-flag > diary-islamic-entry-symbol > holiday-islamic-holidays > > and you can find out which variable exist related to "islamic" and > inspect such variables. > > >