From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christian Gimenez Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: SachaC-news Date: Tue, 02 Jan 2024 14:40:25 -0300 Message-ID: <87o7e3eira.wl-cnngimenez@disroot.org> References: <87o7fyix8e.wl-cnngimenez@disroot.org> <877cmereoa.wl-cnngimenez@disroot.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Jan__2_14:40:25_2024-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22288"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Christian , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 02 18:41:32 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rKilg-0005av-3Y for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jan 2024 18:41:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKikw-0001tD-0J; Tue, 02 Jan 2024 12:40:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rKiks-0001su-Es for emacs-devel@gnu.org; Tue, 02 Jan 2024 12:40:43 -0500 Original-Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rKiko-0003w1-Sx; Tue, 02 Jan 2024 12:40:41 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 935E2411DF; Tue, 2 Jan 2024 18:40:33 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cv2-r4LUH4Nh; Tue, 2 Jan 2024 18:40:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1704217232; bh=FQGwEoLJ5wKRu5OQ9fQf3TljgWX4aU9Ixy1Z2o+quh8=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=avgDMfUv3sW/7OJVULf2gvCSwUhKxoxSGc/kQWqXeG0UdZT/3uISeNcaUbpcobll4 Vd/CTfeOL0+cwXA7lOLo+yQ62Y9OOve4D5joNEMfw9p+/P8HTqS8oirZvdKtRkjFCq B6M+Z2iMFcnbsX4uFv+GjQOPSCjOby34EBifZChG//5ra8w8x4jI/d9fFZM/OeX+T+ WS9ZiMlS46n9HiiuUjuubUeJSUnABETkTumGSW5YqnZjUpw+aEFaG+oAUk0a7GWXup QH1tA3M4QyrdmxXRGYV7nBpjKD4kggCH3HLAdbbVbWtL9dSllVquabxbQ+XLSdn1TJ Pkbh2p+QDQ5KQ== In-Reply-To: X-Face: '*BN,gre{ZP%#f"H?LXo(; RPw0x`+l &(ddXwk]TaK9CK@u_, 1Lfs2T@h\{56yy J'8{Cnz_[mlVz:5-Kte[qt$kH[ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314462 Archived-At: --pgp-sign-Multipart_Tue_Jan__2_14:40:25_2024-1 Content-Type: text/plain; charset=US-ASCII Hi! Happy 2024!!! On Sun, 31 Dec 2023 00:13:34 -0300, Richard Stallman wrote: > > [[[ To any NSA and FBI agents reading my email: please > consider ]]] [[[ whether defending the US Constitution > against all enemies, ]]] [[[ foreign or domestic, requires > you to follow Snowden's example. ]]] > > Please forgive me for taking so long to see your reply. > > > Mmm... I suppose... I can add a customization to show an > > exported buffer instead the Org-mode buffer. For example, > > if sachac-news-show-plain-text is set to t, it will do > > the overall process, but add an extra step to export the > > Org file into plain text... or even generalize this idea > > to use any export dispatch function... I believe it can > > be implemented... what do you think? > > That is a good approach, but one detail should be different. > The variable should be sachac-news-show-org, and default to > nil. While implementing this feature around a month ago, I found some difficulties... it seemed to me a little counter-intuitive using a variable like this: should it store the format name? or a boolean? Also, Sacha is now exporting the last news in four files with its own formats: most-recent.md (Markdown), most-recent.org (Org-mode), most-recent.txt (Unicode plain text according to M-x org-export-dispatch), and most-recent.html (HTML). For these reasons, I decided to create a custom variable called sachac-news-use-git-file which stores the name of the file to open, instead of storing a boolean or symbol value. It is easier to understand because the user has to set the filename, even so, it can be any other file in the repository, for instance: the index.txt. And, as a side effect, the software may be used for other repositories and, possibly, other formats. Therefore, to implement your suggestion I have just changed its default value from "most-recent.org" to "most-recent.txt" (see the code at line 120: [1]). The user may change its value with M-x customize-option to "most-recent.md" if Markdown is what they prefer, or "most-recent.org" if Org-mode is best for them. This feature is explained at the README.org file (see [2]). I also exported this file into Unicode plain text. By the way, thanks Sacha for exporting into different formats!!! I am sorry it adds an extra work to you. It really makes the implementation easier! > > Org format is text with its own kind of markup -- it is not > plain text. > > The point is that, in designing other parts of Emacs, we > should not treat Org format as if it were a standard. Org is > an extension package in Emacs; some people use it, and some > don't. > > -- > Dr Richard Stallman (https://stallman.org) Chief GNUisance of > the GNU Project (https://gnu.org) Founder, Free Software > Foundation (https://fsf.org) Internet Hall-of-Famer > (https://internethalloffame.org) > > Cheers! Christian Gimenez. [1] https://git.sr.ht/~cngimenez/sachac-news/tree/0dd98c588a0f4752e17a02c2ecdc98ea214b068b/item/sachac-news.el#L120 [2] At README.org: https://git.sr.ht/~cngimenez/sachac-news/tree/0dd98c588a0f4752e17a02c2ecdc98ea214b068b/item/README.org#L38 Or, at README.txt: https://git.sr.ht/~cngimenez/sachac-news/tree/0dd98c588a0f4752e17a02c2ecdc98ea214b068b/item/README.txt#L97 -- - Mastodon: @cnngimenez@mastodon.social ,= ,-_-. =. Utilice GPG: ((_/)o o(\_)) * https://emailselfdefense.fsf.org/ `-'(. .)`-' * Usando la terminal GNU/Linux: \_/ $ gpg2 --search-keys 77A56F0DA5DD9E05 --pgp-sign-Multipart_Tue_Jan__2_14:40:25_2024-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit Content-Description: OpenPGP Digital Signature -----BEGIN PGP SIGNATURE----- iHUEABEIAB0WIQTKgp4b7n/ZedVkiop3pW8Npd2eBQUCZZRKiQAKCRB3pW8Npd2e BTqJAP9Az+mPp+jHwld2ZvfckB78QWxkiBir6kaRiCfaFZiRcgEApdhTaknGxHIM 3R5DnheHKZh+mwjhYoIEOTyudFc5WZM= =qowU -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Jan__2_14:40:25_2024-1--