Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungKI half beim Finden: iOS 27 schließt mehr als 100 Sicherheitslücken(21.09.2026 um 06:00 Uhr)
Sichere ProgrammierungWhat Is Rowhammer? How Can Repeated Memory Access Flip Bits in RAM?(21.09.2026 um 07:12 Uhr)
Sichere Programmierungnpm publish Ignores .gitignore: The .npmignore Override Rule(21.09.2026 um 07:15 Uhr)
Sichere ProgrammierungAphelion Editor - A free node-based video / VFX editor(21.09.2026 um 07:21 Uhr)
Sichere ProgrammierungGovernance Attack Surface Review: OKX(21.09.2026 um 07:31 Uhr)
Sichere ProgrammierungJSM Portal Request Create Property Panel Submit(21.09.2026 um 07:34 Uhr)
Reverse Engineeringsearch instructions assembly easy (X86,RISCV,AARCH64,etc)(20.09.2026 um 15:44 Uhr)
Sichere ProgrammierungKI half beim Finden: iOS 27 schließt mehr als 100 Sicherheitslücken(21.09.2026 um 06:00 Uhr)
Sichere ProgrammierungWhat Is Rowhammer? How Can Repeated Memory Access Flip Bits in RAM?(21.09.2026 um 07:12 Uhr)
Sichere Programmierungnpm publish Ignores .gitignore: The .npmignore Override Rule(21.09.2026 um 07:15 Uhr)
Sichere ProgrammierungAphelion Editor - A free node-based video / VFX editor(21.09.2026 um 07:21 Uhr)
Sichere ProgrammierungGovernance Attack Surface Review: OKX(21.09.2026 um 07:31 Uhr)
Sichere ProgrammierungJSM Portal Request Create Property Panel Submit(21.09.2026 um 07:34 Uhr)
Reverse Engineeringsearch instructions assembly easy (X86,RISCV,AARCH64,etc)(20.09.2026 um 15:44 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Emacs' lispy-mode: Convolute real-world example!

Reagiere als Erste:r — dein Feedback zählt!

It took me years to find a real-world use case for lispy-mode's convolute key, bound to C! Here it is :)

My original code. There's a loop and error handling inside. I want to move the error handling before the loop.

;; ORIGINAL
(defun post-products (products &rest keys)
  "Call the API, at most 500 products by POST."
  (let ((batches (batches products 500)))
    (loop for batch in batches
          for i = 1 then (incf i)
          with nb-batches = (length batches)
          do
             (format t "POST request ~a/~a… " i nb-batches)
             (handler-case
                 (prog1
                     (apply #'post/public/offers/v1/products/ean :verbose t :location (location) :products batch keys)
                   (format t "~&POST batch products ~a/~a done.~&" i nb-batches))
               ;; TODO: stop loop earlier.
               (error (c)
                 (format *error-output* "~&POST products error: ~a~&" c))))))

Put the cursor here on the prog1:

(defun post-products (products &rest keys)
  "Call the API, at most 500 products by POST."
  (let ((batches (batches products 500)))
    (loop for batch in batches
          for i = 1 then (incf i)
          with nb-batches = (length batches)
          do
             (format t "POST request ~a/~a… " i nb-batches)
             (handler-case
 cursor ------> |(prog1
                     (apply #'post/public/offers/v1/products/ean :verbose t :location (location) :products batch keys)
                   (format t "~&POST batch products ~a/~a done.~&" i nb-batches))
               ;; TODO: stop loop earlier.
               (error (c)
                 (format *error-output* "~&POST products error: ~a~&" c))))))

If you didn't, either activate Alt-x lispy-mode and press capital C or call Alt-x lispy-convolute (with the mode active or inactive), and TADA!

;; We want to move the HANDLER-CASE before the loop.
;;
;; With lispy-mode => C (convolute)
;;
(defun post-products (products &rest keys)
  "Call the API, at most 500 products by POST."
  (let ((batches (batches products 500)))
    (handler-case
        (loop for batch in batches
              for i = 1 then (incf i)
              with nb-batches = (length batches)
              do
                 (format t "POST request ~a/~a… " i nb-batches)
                 (prog1
                     (apply #'post/public/offers/v1/products/ean :verbose t :location (location) :products batch keys)
                   (format t "~&POST batch products ~a/~a done.~&" i nb-batches)))
      ;; TODO: stop loop earlier.
      (error (c)
        (format *error-output* "~&POST products error: ~a~&" c)))))

If I record a video, will you make it a trending one?

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Emacs' lispy-mode: Convolute real-world example!

Thematisch verwandte Begriffe: Emacs, lispymode, Convolute, realworld · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94111 | Tencent BrowserSkill through 0.3.0 contains an authentication bypass vul…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick