Live data from Hacker News

What’s new in Emacs 28.1?

masteringemacs.org

261–270 of 290 posts

Re: What’s new in Emacs 28.1?

#261
post #170

Earlier quoted context omitted.

map capslock to be a control key.

Although it's the canonical solution, that would be a degradation for me. It's more ergonomic to use two hands to enter any modifier sequence. Mapping Capslock to Control doesn't provide extra benefits to my solution. The other problem people have with the pinky is that they're twisting their wrist while typing, which is also against more ergonomic guidelines. The recommendation is to move the whole arm. Once you get…

...or perhaps get a smaller keyboard. I have the Lenovo KU-1255 which is just the right size for me. as always, YMMV.

Re: What’s new in Emacs 28.1?

#262
post #84

Knowledgeable Emacs folks in this thread: Does anyone know the status of Wayland-native Emacs? It's my last X/XWayland application, and it looks terrible on high-DPI displays.

Using it on fedora and ubuntu fine with the pgtk branch for several months, and this is stable IMHO. global line number mode wasn't stable, and resizing fails to repaint the new parts. killing openened processes (ediff-buffers) can still crash emacs. 29.0.50 is better though.

The latest pgtk cleanups just came in the last days from Po Lu.

as of today's master on ubuntu latest:

    Ran 6194 tests, 6064 results as expected, 11 unexpected, 119 skipped
    7 files contained unexpected results:
      src/fns-tests.log
      src/casefiddle-tests.log
      lisp/time-stamp-tests.log
      lisp/subr-tests.log
      lisp/help-fns-tests.log
      lisp/eshell/esh-var-tests.log
      lisp/bookmark-tests.log

Re: What’s new in Emacs 28.1?

#263
post #48

Earlier quoted context omitted.

It amazes me there are Emacs users that don’t understand the importance of free software. You’re using the editor devised by the free software foundation, but you only want to talk about convenience. Convenience is not an excuse to switch to corporate made closed source spyware.

How many of us do you think work on "free" software? I write proprietary software and i use proprietary software to do it because it pays my mortgage. I drank the fsf Kool aid as a kid, then i grew up and had to put a roof over my head and my children's. It's great that some people get to make a living producing free as in speech software, but that's kind of like getting into the NBA. The rest of us have to contend w…

You're presenting a false dichotomy: most software is neither proprietary or FOSS; it's in-house, custom-developed functionality, that's never released/available outside of the business that created it.

Its only "user" is the business that made it; they have full access to the source (unless they deleted it; whoops!), are not bound by its copyright (since they're the owners), etc. The FSF has no problem with that.

Although my first job was working on FOSS, all the ones since have been working on such bespoke, in-house software. To be honest, I don't think I've ever seen a job ad for proprietary software (as in, closed-source software that runs on end-user machines).

A few subtleties:

- Javascript is probably a glaring exception. Opinions differ on whether it should count as shipping proprietary software (the FSF think it is, many HNers probably consider it less clear-cut). For what it's worth, the little JS I've written professionally has always been of a progressive, site-still-works-without-it form.

- Some of that never-released software may be accessible to others, e.g. Google's search software can be accessed via google.com. The AGPL has an interesting take on that particular niche.

- Sometimes the human end-users of this software have very limited access/control over it, e.g. if Walmart maintains its own checkout software, those operating the checkouts probably can't access the source, etc. However, that's nothing to do with copyright, FOSS, etc. it's just a business decision, presumably covered by employment contracts (e.g. "in the course of your work you may be given access to computer systems; these are confidential, and you must not hack/compromise/etc.").

Re: What’s new in Emacs 28.1?

#264
post #213

I used Emacs for 20 years, contributed to popular open source emacs projects, and am the maintainer of a couple of emacs packages with small numbers of users. It's wonderful and extremely powerful having everything in lisp; don't bother with emacs if you're not interested in writing lisp. One silly thing that I could never get to grips with is the way the minibuffer always seems to get stuck asking me a question, but…

> One silly thing that I could never get to grips with is the way the minibuffer always seems to get stuck asking me a question, but the cursor isn't in the minibuffer. Or it's in some sort of recursive minibuffer mode. So many times I've just mashed C-g repeatedly in irritation! This happens to me all the time too! Anyone have a fix?

The thing you're looking for is `M-x top-level`. It exits all recursive editing levels and active minibuffers.

Re: What’s new in Emacs 28.1?

#265
post #75
post #15

Earlier quoted context omitted.

I'm going to assume this isn't trolling and if it is, you fooled me. I've use Vim professionally, as well as VSCode and Jetbrains IDEs and dabbled in Emacs - the idea that one can replicate what IntelliJ does for Java for instance in any other IDE or text editor is to me, nonsensical. The amount of configuration it would require in vim/neovim/vscode to replicate the refactoring ability of IntelliJ alone would take yo…

To be fair Java is an outlier here (there are few others I guess, C# comes to mind) and I would consider it a weakness of a language to require a complex IDE to do anything nontrivial comfortably. I agree with you tho, I was looking for my options to develop in Java with Emacs and decided to not even try.

I've written C# professionally for many years, though it's far from my favorite language. I write 90% of it in Emacs, reserving Visual Studio for managing .csproj and .sln files and unit testing with the Visual Studio test framework. Once my workplace switches over to .NET Core, I hope to be able to get rid of those uses. Actually writing C# in Emacs has been fine for years, with Omnisharp, and now with LSP is about on par with VSCode, except you have the rest of Emacs available at a keystroke.

I've tried Java with LSP, and I think it's on par with Eclipse rather than JetBrains these days. The language server is fine, but I've never gotten it to understand, e.g., an Android Studio project.

Re: What’s new in Emacs 28.1?

#266
post #125

Only thing I'm missing from Emacs is the ability to completely freeze all packages and configs. As soon as I feel like everything is stable and great, it decides to update 180 packages while I'm trying to edit a file and destroys something in my setup. If anyone knows a way to prevent all updates and "freeze" a version that would be excellent.

That's weird. I use package.el and it only ever updates when I ask it to.

The solution to this is too keep your elpa/ directory under version control.

I use this hacked-up script to help me do that: https://github.com/NateEag/.emacs.d/blob/master/site-lisp/up...

Re: What’s new in Emacs 28.1?

#267

Earlier quoted context omitted.

I personally think GUI mode is simply better. There is no real advantage to running emacs in a terminal imo.

Hard disagree. Sometimes the terminal is the most efficient way to run Emacs on a machine in a remote data center that has a mountain of CPUs, GPUs, memory, and disk. TRAMP can be slow and inefficient. A LSP server process on a huge monorepo can chew up a large amount of memory and CPU on startup. Running all of this stuff locally on the actual hardware your code needs to run on is great.

TRAMP is great, but to me it never feels the same as running locally. OTOH ssh -X (i.e. X forwarding) works for me for exactly this specific case (large and powerful remote dev box).

Incidentally my current setup is that I'm WFH and RDP'ing into my windows desktop, where I run VNC to our xvnc server where I ssh -X to the dev box where I run GUI emacs. It is surprisingly usable (I can also skip the RDP and run VNC directly if needed).

Re: What’s new in Emacs 28.1?

#268

I almost wish I never tried Emacs. Ignorance is bliss, and Emacs ruined all other text editors for me. There are absolutely areas that others do better, but the self-documenting “living program” nature is too much to give up; everything you ever need to know or do is a few keystrokes away.

Agree, but for me, there also are simply some features no other editors have, especially when it comes to navigation. Some examples are all the ivy autocompletion, command autocompletion, dired, adjust-parens, windmove, smart parents, expand and contract region, agressive-indent, avy, swiper, hydra, and so on. And it seems whatever I think about exists. Every time I go: How do I? There's a solution, and if not, I can…

I've discovered aggressive-indent recently and I got immediately addicted. Now I wish it worked reliably with lsp-format-region and clangd (lack of reliability doesn't stop me from using it, even if explicitly unsupported).

Re: What’s new in Emacs 28.1?

#269
post #150

Earlier quoted context omitted.

What parts did you find difficult? When I first started, I found the keybindings odd, but now I love them since the core set of shortcuts—C-a, C-e, C-f, etc.—work "everywhere" from the terminal, to GNU readline-based programs, to even native macOS text boxes. If you don't like the default keybindings, you can change them or use the Evil package [0] for Vim bindings. If you want to get up and running quickly, I'd chec…

Do you use it as an IDE? That's the part I had trouble with (react/typescript and python). I could get it almost there, but essentially what I would need is a VS Code mode. A side panel with the collapsible directories, double click into them, global search, linting, syntax, etc.

I use emacs as an IDE with a large C++ (and python) codebase. I use emacs-lsp + clangd for completion/jump to definition/syntax error highlighting etc, but for whole tree searches, I find clangd unreliable, so sometimes I fall back to emacs-ag (I assume that emacs-ripgrep would be even better) for brute force searches.

I never found a side panel of any use (many are available), but I use projectile for quick jump to file all the time.

My python setup is less refined than C++ (I haven't bothered yet to enable LSP), but I use elpy which is works fine for lisp-style programming with a persistent REPL.

Re: What’s new in Emacs 28.1?

#270
post #208

Earlier quoted context omitted.

On Debian with the distro package, I never even thought about mouse integration. (On the Xorg interface. So much basic stuff - not emacs stuff, but really basic stuff - has been moving into DEs that I don't think the bare console is usable anymore.) The insertion point is moved by clicking and by using the scroll wheel (now that I've thought about it, maybe I should change that second one), clicking and dragging and…

M-x xterm-mouse-mode gives an experience in the console that's pretty darn faithful to the full GUI when it comes to mouse interaction. Clicking, selection, and scroll wheel all work pretty much as expected. Even menus and pop-menus work; the new TTY menu in 28.1 is pretty slick!

Confession: I'm a BBEdit user most of the time, so take my questions here with a grain of salt. Although I don't need it often, I still felt the impulse to take a side w.r.t emacs and vi.

I'll see if I can dig out my old init.el from backups and try to get it up and running with 28.1. I actually hadn't heard about the scroll wheel stuff before, so that might be one way to solve this for me.

Post reply on HN