July 6th, 2024

Inline previous result in Emacs Lisp

Using Edebug in Emacs enhances debugging, fostering independence in customizing functionalities. The author shares experiences modifying Edebug to display results inline, improving debugging efficiency by reducing code-minibuffer switching.

Read original articleLink Icon
Inline previous result in Emacs Lisp

The article discusses the importance of using Edebug in Emacs for debugging purposes, emphasizing how it can lead to independence in customizing Emacs functionalities. The author shares personal experiences of using Edebug to understand and modify code behavior. They describe a modification made to the Edebug result display behavior to enhance the debugging process by displaying results inline rather than in the minibuffer. The author explains the process of modifying Edebug functions to achieve this inline display and remove unnecessary text from the displayed message. By advising and patching Edebug functions, specifically edebug-compute-previous-result and edebug-previous-result, the author successfully alters the display behavior to show results inline using the eros package. This customization allows for a more efficient debugging experience by reducing the need to switch between code and the minibuffer.

Related

Hacking eInk Price Tags (2021)

Hacking eInk Price Tags (2021)

Hackers repurpose eInk electronic shelf labels (ESLs) into photo frames or status displays by customizing firmware. Detailed exploration of hacking challenges, including Marvell chip analysis, bootloader functions, memory storage, communication protocols, and debugging methods.

Avoiding Emacs Bankruptcy

Avoiding Emacs Bankruptcy

Avoid "Emacs bankruptcy" by choosing efficient packages, deleting unnecessary configurations, and focusing on Emacs's core benefits. Prioritize power-to-weight ratio to prevent slowdowns and maintenance issues. Regularly reassess for a streamlined setup.

My (Neo)Vim workflow

My (Neo)Vim workflow

An experienced Vim user shares tips on optimizing the (Neo)Vim experience through Personalized Development Environment (PDE), covering search techniques, keybindings, plugins, movement enhancements, text manipulation, quickfix list, spell check, and status line customization.

A New Package for Making Charts in Emacs: Eplot

A New Package for Making Charts in Emacs: Eplot

A new package named eplot simplifies chart creation in Emacs, addressing limitations of existing tools. It emphasizes clear axes markings and offers interactive data manipulation, introducing efficient plot control through "headers." Despite being a work in progress, eplot is accessible on Microsoft Github for potential use, with plans for code enhancements.

Elixir Anti-Patterns

Elixir Anti-Patterns

The document discusses code-related anti-patterns in Elixir v1.18.0-dev, highlighting issues like comments overuse, complex 'with' expressions, dynamic atom creation, long parameter lists, and namespace conventions. It provides examples and refactoring suggestions to improve code quality and maintainability.

Link Icon 4 comments
By @alex_smart - 5 months
THIS right here is why I use emacs. Not that something like this is not possible with other open-source software, but the number of steps required to compile, debug, identify change required, compile, rerun, it is usually not worth your time to investigate minor inconveniences. So there is learned helplessness and you compromise and learn to just live with the annoyance.

With Emacs you truly feel to be in control.

By @taeric - 5 months
Nicely done! Will be playing with that shortly.

I'm always a touch sad that I don't step debug code more than I do. I remember the glory days of people pushing this in Java with the Eclipse compiler literally made to support incremental compilation. I think it was JRebel that was working to do that at large on other installations.

Fast forward a few years, and I would get into conversations with principal level engineers at amazon that didn't know this was possible. Having the debug agent was literally a default for some teams, and they didn't realize what all that enabled.

What happened? Feels that a lot of old school programmers of any language remember doing this. Too many others think this is some sort of magical world dreamed of by lisp enthusiasts that never actually happened.

(Would love to see numbers challenging any of my soft assertions above.)

By @neilv - 5 months
Nice enhancement to EDebug.

If anyone is wondering about Nyan Cat in the "after" screen capture: https://github.com/TeMPOraL/nyan-mode

By @anonzzzies - 5 months
Makes me think of Light Table. Does this exist for Common Lisp?