From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Using list with append
Date: Wed, 09 Nov 2022 16:26:38 +0100 [thread overview]
Message-ID: <878rkkxi6p.fsf@dataswamp.org> (raw)
In-Reply-To: Ev9QUHHi_PsW5YdHdgDB3zDy1fEohlkoSXToWHeQgZ_lQnoYfCVaGUwYGuUF46TzXFSkyoTnPwdKtTAggqQtIkfW9t8K3-GmbkQ1dSBRWCU=@protonmail.com
Heime wrote:
> (defun pmchart selectr nc)
Function names: use-normal-language
Argument names: short forms that are obvious encouraged, e.g.
cmd, len, lang, beg, end, src, dst, and so on, otherwise use
normal language there as well
> "TODO."
Remove, it's better not to have a docstring than to have one
that doesn't document anything, (checkdoc-current-buffer t)
will also tell you that one is formally incorrect.
> (pmchart '("Peter" "Paul") [3 2] 5)
>
> gives the list
>
> '(("Peter" ("xxxxx" "xxxxx" "xxxxx" ""))
> ("Paul" ("xxxxx" "xxxxx" "" "")))
If the list of X-Strings are associated with the names, it is
better to have a function that does one such item, so that
would be called like this, probably
(x-name-item "Peter" 3 5)
then to do the whole table for each line there would be one
such call.
So the semantics of what you are doing is implemented
in/enforced by the code that actually does the work, as well,
if you will ...
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2022-11-09 15:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 12:09 Using list with append Heime
2022-11-09 15:26 ` Emanuel Berg [this message]
2022-11-09 15:54 ` [External] : " Drew Adams
2022-11-10 18:02 ` Emanuel Berg
2022-11-09 17:08 ` Stephen Berman
2022-11-09 17:19 ` Heime
2022-11-10 14:21 ` Jean Louis
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=878rkkxi6p.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=help-gnu-emacs@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.
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).