unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christian Gimenez <cnngimenez@disroot.org>
To: rms@gnu.org
Cc: Christian <cnngimenez@disroot.org>, emacs-devel@gnu.org
Subject: Re: [ELPA] New package: SachaC-news
Date: Tue, 02 Jan 2024 14:40:25 -0300	[thread overview]
Message-ID: <87o7e3eira.wl-cnngimenez@disroot.org> (raw)
In-Reply-To: <E1rJmGc-0008PF-5L@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 3495 bytes --]

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





[-- Attachment #2: OpenPGP Digital Signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  parent reply	other threads:[~2024-01-02 17:40 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-12 19:32 [ELPA] New package: SachaC-news Christian
2023-11-14  2:56 ` Richard Stallman
2023-11-15 23:56   ` Björn Bidar
2023-11-14  2:56 ` Richard Stallman
2023-11-18 20:26   ` Christian
2023-11-21 16:07     ` Sacha Chua
2023-11-25 22:40       ` Christian
2023-12-31  3:13     ` Richard Stallman
2023-12-31 18:13       ` Adam Porter
2023-12-31 19:32         ` Eli Zaretskii
2023-12-31 21:36           ` Adam Porter
2023-12-31 22:33             ` Christopher Dimech
2023-12-31 22:57             ` Emanuel Berg
2024-01-01 12:01             ` Eli Zaretskii
2024-01-02  3:19         ` Richard Stallman
2024-01-02  5:08           ` Emanuel Berg
2024-01-04  4:01             ` Richard Stallman
2024-01-02 18:05         ` Christian
2024-01-02  0:04       ` Stefan Kangas
2024-01-05  4:23         ` Richard Stallman
2024-01-02 17:40       ` Christian Gimenez [this message]
2023-11-17  7:28 ` Philip Kaludercic
2023-11-18 20:30   ` Christian
2023-11-18 21:10     ` Philip Kaludercic
2023-11-25 22:07       ` Christian
2023-11-25 22:50         ` Philip Kaludercic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o7e3eira.wl-cnngimenez@disroot.org \
    --to=cnngimenez@disroot.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).