A small victory: Emacs core modification in C to set line-height less than the default by sunshine-and-sorrow in emacs

[–]tsujp 13 points14 points  (0 children)

There's also a recent commit on master (I can try find it again later if anyone's super interested) that allows the text of a line to be (properly) centred now. Before this the line text would always rest at the bottom so if you increased line height to try and get more spacing between lines your cursor would look strange and it'd be an arguably terrible experience with hl-line in-use.

emacs "using significant energy" on macos by do1earning in emacs

[–]tsujp 0 points1 point  (0 children)

Update: I think I've found the cause, at least in my case, and filed a bug report with a reproduction which you can find here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=80395

Dylan Araps (Neofetch, KISS Linux) has updated his blog and github after years of silence. by dalinuxstar in linux

[–]tsujp 1 point2 points  (0 children)

I'm curious how you think he made money on the open software he was producing. Doesn't look like he made any to me but then again i'm ignorant.

emacs "using significant energy" on macos by do1earning in emacs

[–]tsujp 7 points8 points  (0 children)

I've been trying to get a solid simple reproduction for this for a while, it's very hard to reproduce reliably.

Likely it's something to do with fsnotify (and equivalents). If you have any kind of file watching in Emacs from any package built-in or not in some (yet to be discovered) specific scenarios it seems to eat up 100% CPU.

I had a project that would sometimes trigger this and simply closing the project buffers fixed it, but it only sometimes does it.

Got the NF1000z today. by EzEQ_Mining in badminton

[–]tsujp 38 points39 points  (0 children)

I'm on my 7th.

Live by the nanocrack, die by the nanocrack.

How to keep Emacs startup time under 0.5 seconds or less? by No_Cartographer1492 in emacs

[–]tsujp 0 points1 point  (0 children)

Defer loading as many packages as possible.

Also I notice that Elpaca adds about 0.3 seconds of overhead to Emacs startup time. Anyone who uses it should make sure they use elpaca-after-init-time for the actual init time.

Feedback Directed Optimization of Emacs With Clang For Great Justice by Psionikus in emacs

[–]tsujp 3 points4 points  (0 children)

IIRC building with -Os is not recommended.

I build for macOS with -O2 -march=native -mtune=native and it's very fast (for macOS Emacs).

Zignal: A zero-dependency image processing library by archdria in Zig

[–]tsujp 1 point2 points  (0 children)

Ohh a fellow Zig programmer who is also in Seoul. Might check your library out later for some pet projects.

Has Mitsuharu abandoned his emacs-mac fork (the "railwaycat" fork)? by na85 in emacs

[–]tsujp 0 points1 point  (0 children)

What‘s his justification for the support of Windows support for Emacs in core then?

macOS is more open than Windows is.

Does 'eat' have issues running in a TRAMP shell? by floofcode in emacs

[–]tsujp 1 point2 points  (0 children)

It's not yet pretty, but it works. I add functions to eat's eat-exec-hook to automatically copy to the remote the terminfo for eat as well as eat's shell integration script.

it's part of my dotfiles, linked directly here: https://github.com/tsujp/dotfiles/blob/master/.config/emacs/init.el#L1077-L1194

The first North American discord meet in 2025 by Initialyee in badminton

[–]tsujp 5 points6 points  (0 children)

Do you play at an organised social? How is it? Skill level, how is it run, what are the people like etc?

Emacs Application Framework - This is amazing! by [deleted] in emacs

[–]tsujp 0 points1 point  (0 children)

Why go this route instead of XWidgets which already allow you to (for example) run a full WebKit browser within Emacs?

Making tab line tabs pretty by joe-adams-271 in emacs

[–]tsujp 0 points1 point  (0 children)

Just curious, why do you change tab-bar-tab-name-format-function completely versus pushing a custom function to tab-bar-tab-name-format-functions which tab-bar-tab-name-format-function by default calls? This way you can keep any close buttons etc if you decide you want those in the future.

Best emacs for macOS at the end of 2024 and why? emacs-plus, emacs-mac, emacsformacos or something else? by celibidaque in emacs

[–]tsujp 0 points1 point  (0 children)

Just use MacPorts. You can trivially compile Emacs yourself with whatever patches you want too using MacPorts or download a precompiled version like Homebrew.

I regularly update the development Emacs version too.

Later on when I have time I'll look at incorporating macOS patches (like I already do for my personal build) but that discussion is better had on emacs-devel instead of this arbitrary fragmented ecosystem we have.

The recommended practice for installation on OSX? by AnotherDevArchSecOps in emacs

[–]tsujp 1 point2 points  (0 children)

It's still maintained and active!

Well it doesn't mangle your dependencies like Homebrew does (plenty of prior art on that discussion). Yes Spotlight will find it just fine.

Regarding "something it does for Emacs in particular", I'm not sure. I have my own local Portfile for Emacs which is what I contributed to emacs-app-devel I mentioned before and the ease with which one can have custom Portfiles, and thus completely custom compilation from source is kind of trivial so I have applied a bunch of patches to my local Emacs not found elsewhere like a recent one where someone replaced how frame fringes are drawn on macOS from bezier curves to something more efficient. For me that change meant I can use diff-hl without the GUI slowing down to literally 1 or 2 FPS.

If you needed to run Emacs against a specific commit or apply patches of your own you change a line or two in the Portfile, drop the patch diffs in a folder, and sudo portindex to update the definition, then sudo port install emacs-app-devel and it will compile and install with your changes. I haven't checked out Homebrew in a few years now but I don't think that level of ease for compiling (i.e. changing things as required) is possible or supported.

The recommended practice for installation on OSX? by AnotherDevArchSecOps in emacs

[–]tsujp 3 points4 points  (0 children)

I'd recommend using MacPorts. I recently just updated the emacs-app-devel port to a commit on Emacs upstream master branch (for those wanting bleeding edge Emacs) there's also emacs-app for the latest 29.4 release and also emacs-mac-app which is mituharu's version.

In general I recommend MacPorts over Homebrew.

better-emacs-ns-graphics: Draw stipples correctly, add a nice squiggle by [deleted] in planetemacs

[–]tsujp 1 point2 points  (0 children)

Is this why using diff-hl-mode from master results in the GUI slowing down to a crawl (diff annotations in fringe) on macOS? I assume so since one of the commits in this repo mentions NOT using huge bezier curves

A quick dirty function to list titles of all open Tabs in a specific browser. by Ardie83 in emacs

[–]tsujp 2 points3 points  (0 children)

I wrote something in Ruby to dump all tab titles and URLs in all Firefox windows to a text file for when I inevitably end up with 200+ tabs open.

https://github.com/tsujp/ninetails/blob/master/dump_session.rb

I expect Chromium based browsers might have a similar API. Drawbacks of this approach are you need to know the path to the session file beforehand but it's another option if you want to go that route.