help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improvements on constructing a string


From: Jean Louis
Subject: Re: Improvements on constructing a string
Date: Thu, 10 Nov 2022 17:28:23 +0300
User-agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02)

* Heime <heimeborgia@protonmail.com> [2022-11-10 08:40]:
> 
> Can one improve on this implementation that makes a string "st".
> 
> (defun chart-row (list)
>   "Make row for Engine Parameters as string."
>   
>   (let ( (st "") )
> 
>     (while list
>       (setq st (concat st (chart-cell (pop list)))))
>     (setq st (concat st "\n"))
> 
>     st))

Is your function `chart-cell' anyhow related to package chart? If it
is not related, I suggest renaming the function, use your own
prefixes.

And what in general are you trying to do?

M-x chart-emacs-storage

                                               Emacs Runtime Storage Usage




 221M|----------|
     |          |
     |          |
     |          |
     |          |
B147M|          |                                                               
            |-----------|
y    |          |                                                               
            |           |
t    |          |                                                               
            |           |
e    |          |                                                               
            |           |
s    |          |                                                               
            |           |
  73M|          |                                                  
|-----------|            |           |
     |          |                                                  |           
|            |           |
     |          |             |----------|                         |           
|            |           |
     |          |             |          ||-----------|            |           
|            |           |
     |          |             |          ||           ||----------||           
|            |           |
    
0----------------------------------------------------------------------------------------------------------------
                    symbols               string-bytes             vector-slots 
              intervals
       conses                   strings                  vectors                
  floats                   buffers
                                                      Storage Items


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]