lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

59
active users

#elisp

4 posts2 participants0 posts today

#elisp #emacs #lisp

has anyone seen or implemented something like common lisp's split-sequence, or partition in elisp? i.e. function that takes a predicate, and returns a list of the elements that match and another list of the elements that to do not? cl-lib doesn't seem to have it, and i can't see a way to hack it up using existing functions either. (seq-partition) from seq.el doesn't do the trick, it's a kinda false friend.

Edit: the options being
- seq-group-by
- -partition-by
- hacking cl-reduce

Replied in thread

This cool trick (some would call it "dirty hack" 🙂) by @plantarum can be used for #dot/#graphviz, as well:

(defun my-babel-execute-maybe ()
(interactive)
(org-mode)
(org-babel-execute-maybe)
(org-display-inline-images)
(normal-mode))

E.g. imagine this comment or doc string:

/*
#+BEGIN_SRC dot :file myfunction.svg :cmdline -Kdot -Tsvg
digraph {
a -> b;
}
#+END_SRC
*/

@eduardoochs what do you think of #elisp
(cl-defmacro with-eepitch-target
((buffername) &body body)
(declare (indent 1))
(append
`(let ((old-buffername eepitch-buffer-name))
(setq eepitch-buffer-name ,buffername))
body
'((setq eepitch-buffer-name old-buffername))))

(defun eepitch-to (target line)
(with-eepitch-target
(target)
(setq line (eepitch-preprocess-line line))
(eepitch-prepare)
(eepitch-line line)))

(eepitch-to
"*slime-repl ECL*"
"(+ 2 9)")

Replied in thread

@pkw

I use both #vi (not a vim) and #Emacs. If Im doing anything very complex it's in emacs.

I've written a lot of #Elisp, actual applications not just configurations.
I created a large #Clojure project that lasted several years. That spoiled me. I love working with a REPL in emacs. I became very accustomed to doing a hybrid of TDD and REPL dev. I mostly did not work in the REPL, I would send the code I was editing to it.

I would only go to the REPL to examine or manipulate the resulting environment there.

It's a wonderful way to work, having your editor talking directly to your REPL. Evaluating your tests and functions as you go.

Salutations from the Pacific Northwest! 🌊🏔️🌲🌧️

In a past life, I was a Web developer building Java/JavaScript webapps hosted on Linux systems.

Now I spend my time as a Cloud Security Engineer, building tooling and
microservices in AWS to keep the bad guys out (or good guys who love footguns).

When I'm not hunched over my laptop writing code or troubleshooting,
you'll find me riding my bicycle, getting armbarred in Brazilian Jiu
Jitsu, playing D&D with my kids, or melting in a Korean sauna
(jjimjilbang) like a human dumpling.

I'm interested in connecting with people about #emacs #elisp #golang,
possibly collaborating on #foss projects.

In addition to English, I speak French (native but rusty), Spanish
(intermediate), Portuguese (beginner) and Korean (beginner).

There is a Github repo maintained by @tarsius which contains a good list of #elisp developers and their projects and usually a platform from which one can donate to them. Check it out, add other folks to the list, and more importantly, consider supporting some of the devs you are using their software on a daily basis or their software is integral to your workflow:

github.com/tarsius/elisp-maint

GitHubGitHub - tarsius/elisp-maintainers: Elisp maintainers and how to support themElisp maintainers and how to support them. Contribute to tarsius/elisp-maintainers development by creating an account on GitHub.

I've been debating the usefulness of org-roam-dailies. Much happier since switching to one long log/journal file with datetree rather than disparate little dated files all over the place. It's easier to review/show todos in org-agenda. Some simple code for a capture template if you wanna try it out..

(setq org-roam-dailies-capture-templates
'(("d" "default" entry
"* %<%H:%M> %?"
:target (file+datetree "log.org" week))))

I'm trying to write an org-capture-template and supporting functions for it, for a blogging setup that uses individual org files within a specific directory for posts. i want this to work such that I get prompted for a title, which is used to generate the file name, the title metadata of the file, and a description, which is also used to generate another metadata variable. Based on this answer, I've come up with this:

(defun org-new-blog-post ()
(setq date (format-time-string (org-time-stamp-format :long :inactive) (org-current-time)))
(setq title (read-string "Post Title: "))
(setq fname (org-hugo-slug title))
(setq description (read-string "Description: "))
(expand-file-name (format "%s.org" fname) "~/git/personal/blog/org/blog/"))

(setq org-capture-templates
'(("n" "new post"
plain
(function org-new-blog-post)
"%(format \"#+title: %s\n#+date: %s\n#+description: %s\n\n\" title date description)")))

But this doesn't seem to work, and it just prints the output in the buffer I started with. how do I make this work?

I understand that setting global variables in a defun is bad practice but somehow using a let form doesn't allow me to reference those variables in the capture template.

#programming #emacs #lisp #commonLisp #elisp #eev #engineering #computerScience #history
My short but richly referenced bit on the popularity of lisp in the modern era, ranging from 2000 to 2024.
screwlisp.small-web.org/progra

I had /meant/ to write something completely different, but this is where we got. I hotly anticipate your flames.

TANGENTIALLY #ELS2025 european-lisp-symposium.org/20

I planned to connect to #lispgamejam and totally missed it. Try the submissions though! itch.io/jam/spring-lisp-game-j

screwlisp.small-web.orgPopular and unpopular lisp

#programming #engineering #emacs #eev #eepitch #markdown #md #intro #howto
screwlisp.small-web.org/progra
Capturing how I have started programming recently. In an md markdown document, I just weave in eev's red star lines and pitch other lines. Since eev 'inhabits other things' naturally, eepitch makes plain markdown into a powerful interactive evaluation mode.

The eepitching includes #shell #lisp #elisp #commonLisp and my #softwareIndividuals #KRF in the kind of freeform medley it lends itself to.