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

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

Re: Emacs: adding 1 to every number made of 2 digits inside a marked reg


From: Emanuel Berg
Subject: Re: Emacs: adding 1 to every number made of 2 digits inside a marked region.
Date: Thu, 23 Sep 2021 02:57:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>> Today, I stumbled on this interesting discussion [...]
>>>
>>> Imagine I've got the following in a text file opened under
>>> Emacs:
>>>
>>> some    34
>>> word    30
>>> another 38
>>> thing   59
>>> to      39
>>> say     10
>>> here    47

Elispers have not been so much into MVC and such models
because it is understood that the buffer is a data structure
in its own right which is practical, that said some people
will say the right way to do this is to iterate the whole file
and make a list of all the values, the do
set/aggregate/higher-order on that to get a modified or new
list, and finally iterate that printing the result somewhere
else. Are the guys who say that right? The discussion can go
either and both ways ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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