I just put a call to eval in my code and I feel dirty now.
The context went something like this:
(eval (cons 'concat (my-function arg1 arg2)))
I had initially hoped to use
(concat . (my-function arg1 arg2))
...but this resulted in a call to
(concat my-function arg1 arg2)
Which was not what I expected.
Is there a better way I could've written this?
#emacs #lisp #elisp
Edit: Got my answer. I wanted:
(apply 'concat (my-func arg1 arg2))
Edit 2:
It turns out the code I really wanted was:
(string-join arg2 arg1)
I love reinventing the wheel because I didn't know it was already there.
Edit 3:
Here's the actual code:
(defun lambdamoo-run-text-replacements (str)
"Perform text replacements on the string"
(dolist (vals lambdamoo-text-replacements)
(let* ((from (car vals))
(to (cdr vals))
(split (split-string str from)))
(setq str (string-join split to))))
str)
Let's see if there's anything else I've reinvented here.
Amin, minor deity of the legume realm
in reply to Jonathan Lamothe • • •ADHDeanASL
in reply to Jonathan Lamothe • • •The Witchy Bitches
in reply to ADHDeanASL • • •ADHDeanASL
in reply to The Witchy Bitches • • •Jonathan Lamothe
in reply to The Witchy Bitches • •@The Witchy Bitches @๐ฉโ๐ฆฏThe Blind Fraggle @Matt Campbell @ADHDeanASL @Panamanianโค๏ธโ๐ฅ @Superdave! @Lanie I believe he's recently switched to a Linux distribution* (which I understand doesn't play well with screen readers to begin with). I can ask him for more details. Unfortunately he's in the UK, so I can't assist in person.
* I don't know which.
Furbland's Very Cool Mastodon™ reshared this.
Matt Campbell
in reply to Jonathan Lamothe • • •Matt Campbell
in reply to Matt Campbell • • •Home ยท Enafore
enafore.socialSuperdave!
in reply to Jonathan Lamothe • • •๐ฉโ๐ฆฏThe Blind Fraggle
in reply to Jonathan Lamothe • • •Matt Campbell
in reply to ๐ฉโ๐ฆฏThe Blind Fraggle • • •Superdave!
in reply to Matt Campbell • • •Cassana ๐ป
in reply to Jonathan Lamothe • • •Edit: Just had a look and, of course, @FediTips has something on it: fedi.tips/how-do-i-use-mastodoโฆ
How do I use Mastodon through a screen reader? | Fedi.Tips โ An Unofficial Guide to Mastodon and the Fediverse
fedi.tips*|FNAME|*
in reply to Jonathan Lamothe • • •mousebot
in reply to Jonathan Lamothe • • •Zenie
in reply to mousebot • • •I wonder if an add on for mastodon.el could make that easier. Ive never tried the reader in emacs, but have always heard good things.
Frederik Braun ๏ฟฝ
in reply to Jonathan Lamothe • • •Marco Zehe
in reply to Frederik Braun ๏ฟฝ • • •Calum Andrew Morrell
in reply to Jonathan Lamothe • • •Karen Marie
in reply to Jonathan Lamothe • • •Prof. Rachel Thorn ๐๐บ๐ฆ๐ณ๏ธโโง๏ธ๐ณ๏ธ
in reply to Jonathan Lamothe • • •lilo
in reply to Jonathan Lamothe • • •The Dragon's Cave
Mastodon hosted on dragonscave.spaceJeffrey D. Stark
in reply to Jonathan Lamothe • • •zl2tod
in reply to Jonathan Lamothe • • •Ping @JonathanMosen
Jonathan: @me
is asking about Mastodon clients and screen readers in the toot above.
Jonathan Mosen
in reply to zl2tod • • •I would add a couple of things.
First, any blind person is very welcome to join us here at CaneAndAble.social, a great community for blind Mastodon users. There are plenty of helpful people here.
Second, if the person uses iOS, I produced an audio tutorial on Mona for Mastodon. This went out as part of the Living Blindfully podcast I used to run, which can still be found in any podcast app.
Mona has been updated since then, but itโs still very relevant, and many blind people appreciate an audio walkthrough.
The URL for the audio is: LivingBlindfully.com/227, and the transcript is at LivingBlindfully.com/lb0227traโฆ
Episode 227:A tutorial on Mona for Mastodon, the most powerful, accessible way to do Mastodon on your iPhone, iPad and Mac
Living Blindfullytea
in reply to Jonathan Lamothe • • •Home ยท Enafore
enafore.socialFedi.Tips
in reply to Jonathan Lamothe • • •Fediverse for writers/readers., Sightless Scribbles
sightlessscribbles.comJonathan Lamothe likes this.
Andreas
in reply to Jonathan Lamothe • • •Casey
in reply to Andreas • • •Blortโข ๐โ๐ฅโฃ๏ธ
in reply to Jonathan Lamothe • • •luna the doggie
in reply to Jonathan Lamothe • • •I've tried using some of the fedi web apps with a screen reader and yeah they tend to be horrible
There may be some native apps that do better in that regard
sodiboo
in reply to Jonathan Lamothe • • •Ra (Freyja) (it/its)๐ญ๐น๐ ๐ฉ
in reply to sodiboo • • •Khomus
in reply to Jonathan Lamothe • • •Khomus
in reply to Jonathan Lamothe • • •BakersRelay
in reply to Jonathan Lamothe • • •HowToPhil
in reply to Jonathan Lamothe • • •How do I use Mastodon through a screen reader? | Fedi.Tips โ An Unofficial Guide to Mastodon and the Fediverse
fedi.tipsMark Connolly ๐ป ๐ด๐ผโโ๏ธ (he, him, his)
in reply to Jonathan Lamothe • • •Incident Creator โ
in reply to Jonathan Lamothe • • •Emanuele Cariati
in reply to Jonathan Lamothe • • •Jernej Simoncฬiฤ ๏ฟฝ
Unknown parent • • •Karsten Eger
in reply to Jonathan Lamothe • • •Rene Ludwig
in reply to Karsten Eger • • •@MonaApp for #IOS and @pachli for #Android are 2 great #Accessible Mastodon clients.
Fanny Bui
in reply to Rene Ludwig • • •Svenja
in reply to Fanny Bui • • •Jens Bertrams
in reply to Svenja • • •