Emacs 27.2 Installed

Just a quick update on yesterday’s post. Last night I took a few minutes to download, compile, and install Emacs 27.2. The compilation completed without any problems. Really, I don’t know why people go hunting all over the Web for binaries when it’s so simple to just compile it. Even on the Mac it’s easy. Here’s the magic spell that I use:

configure --with-ns CFLAGS="-g3 -O2 -I /usr/local/include/libxml2"
make
make install
make install-info
sudo mv  nextstep/Emacs.app/ /Applications/

As usual, the hardest part was getting macOS to open the new Emacs. That seems to change with every OS release. The (current) short answer is here. A longer explanation is here.

I’ve been running 27.2 for less than 24 hours but haven’t had any problems. The flickering problem is either fixed or at least much better. There doesn’t appear to be any reason not to upgrade and, of course, you can always save the previous binary—or in macOS’s case, the Emacs.app object—for easy reversion. I do that every time but have never had to revert to the old version.

Posted in General | Tagged | Leave a comment

Emacs 27.2 Is Out

Bastien Guerry tweets that Emacs 27.2 is out and has the latest stable version of Orgmode included:

Eli’s announcement along with the download links is here. As you can see from the announcement, it was released this morning so I haven’t has a chance to download and compile it yet but I’m not expecting any problems.

Thanks, as always, to Eli and the others for their selfless hard work in bringing us this release.

Posted in General | Tagged | Leave a comment

Emacs and TRON

Someone posted a pointer to this old item on BoingBoing about the movie TRON: Legacy and Emacs. Most Irreal readers have probably heard the story by now but it’s a nice piece of Emacs arcana that’s worth reposting for anyone who hasn’t seen it.

The piece is mostly a quote from JT Nimoy in which he describes how he settled on using Emacs for one of the scenes and how he shepherded the scene through the production process to make sure that artistic license wasn’t used to destroy its technical feasibility.

It’s a cute story and worth taking a look at if you haven’t seen it before. And it turns out that Nimoy used Emacs in real life, a fact that somehow makes the story even better.

Posted in General | Tagged | Leave a comment

An Mbsync Tip

Charl P. Botha over at Vxlabs has a lot of very helpful things to say about configuring mu4e and mbsync. I’ve certainly learned a lot from him when I was attempting to get mu4e up and running.

Now, he’s got another tip for mbsync users that can be useful under certain circumstances. It has to do with making sure that mbsync maintains the correct arrival date of emails. The problem manifests only for emails that stay in the inbox for an extended time before being sent to their final destination in the mail folder.

This doesn’t effect my workflow because

  1. I maintain a zero inbox policy as recommended by Ben Maughan so my emails never have a chance to age. They’re all dispatched to their final resting place within a day.
  2. Unlike Botha, I rarely if ever search for emails by their date.

Still, the tip involves adding a single item to .mbsync so I added it anyway because it’s worthwhile keeping the metadata attached to emails you’ve saved as accurate as possible.

Take a look at Botha’s post for the details. As he says, there’s no apparent reason not to enable the option. I enabled it a few days ago and haven’t had any problems.

Posted in General | Tagged | Leave a comment

UK Police and Sci-Hub: Not Helping

The BBC is reporting that the UK police—actually The City of London’s Intellectual Property Crime Unit—is warning students not to use Sci-Hub. You might assume, as I did, that their warning said something along the lines of, “Using the site is illegal and you could be prosecuted” but that’s not what the warning said. Rather, it said, in effect, that using it put you in jeopardy of being hacked.

They urged universities to block the site because Sci-Hub would try to steal user credentials in order to steal more papers. There are a couple of things wrong with that. First, universities already have subscriptions to most of the important journals and that extends to online access for students and staff. There’s really no reason—other than convenience, perhaps—for university students to be using Sci-Hub, especially not from university computers. Second, I know of no evidence that Sci-Hub is stealing credentials in order to get more papers. Their “business” model is that those with access voluntarily upload papers to them. Of course, it may be that they are stealing credentials but you’d think there’d be some reports of it.

Then the police say that those who have had their Twitter accounts suspended are particularly likely to have their credentials stolen by Sci-Hub. This is probably another example of the press getting a story wrong because it makes no sense. What does one thing have to do with the other?

Assuming the BBC has the story right—not at all a sure thing—this whole episode is an embarrassment to the UK police force. Of course, this is the same organization that warned people not to make fun of a fugitive’s hair. One could be forgiven for not taking anything they say seriously.

Posted in General | Tagged | Leave a comment

Control the Apple Music App from Emacs

About 6 months ago, Álvaro Ramírez posted some code to play music on the Mac through Emacs. I didn’t see the point of installing a new music app when the default Music.app works just fine so I didn’t read his post carefully. That was my mistake because what the post is really about is controlling Music.app from Emacs.

That’s something I would be interested in. It’s not that hard to use the default app but I like the idea of moving yet another task into Emacs. Actually, Ramírez’s code includes fuzzy search provided by the Ivy library. The Music app has (incremental) search, of course, but Ivy’s search is more powerful and can use regular expressions. That can be a boon if you have a large music collection.

All the heavy lifting is done by pytunes and ffprobe. The Emacs part is just some glue code and functions to control the playback. If you’re using Emacs on the Mac and would like to control your music from the comfort of Emacs, take a look at Ramírez’s post

Posted in General | Tagged | Leave a comment

Emacs 27.2 Is Almost Here

There’s a lot of news about the upcoming Emacs 27.2. First, Eli Zaretskii wrote that RC1 for Emacs 27.2 has been released. Then he said that barring any problems, this release candidate would become Emacs 27.2 in about a week. The next day, Eli reported that RC2 had been released. It shouldn’t be long before 27.2 is officially released.

As always, thanks to Eli and all the others for their hard work.

Posted in General | Tagged | Leave a comment

Red Meat Friday: Prettifying Emacs

When I was younger, we had a term for programs that produced some sort of impressive display but were otherwise useless: eyewash. Such programs were produced for the benefit of the suits and visiting firemen. There’s a faction of Emacs users who have their own form of eyewash. They are obsessed with making Emacs pretty and are sure doing so will solve all the problems with finding new Emacs users. Another faction believes, as I do, that pretty is as pretty does.

Vivek Haldar belongs to the latter group.

There’s nothing evil or corrupt about liking bling, of course, it’s just that some of us would prefer that Emacs developers’ energy be focused on making Emacs more useful.

Posted in General | Tagged | Leave a comment

Industrial R&D Labs

When you read “Industrial R&D Labs” in the title, what did you think of? Even in our field, there are plenty. There’s Xerox’s PARC, AT&T’s Bell Labs, and IBM’s Thomas J Watson Research Center to name just three of the most famous. But if you’re like me, only one comes to mind: Bell Labs. One of the great disappointments in my life was that I never had the chance to work there.

Now they’re sort of like Pink Floyd: there are past members still active but the Labs itself is only a shadow of its former self. We all know what happened—sort of—but, of course, the truth is more complicated than the conventional wisdom.

Over at Work in Progress, Ben Southwood has an interesting article that considers The rise and fall of the industrial R&D lab. It’s long and a bit complicated but suggests that forces other than divestiture probably guaranteed the end of Bell Labs and others as the forces they once were.

I consider Bell Labs one of the jewels of the American nation and mourn its loss. I don’t think the smaller independent organizations that replaced it have the same ability to scale and opportunities for synergy that Bell Labs and the others had but Southwood makes the case that things are in some ways better now. And in any event, he says, the big industrial lab may be making a comeback as evidenced by, say, Google.

The article is worth a read if you’re interested in this sort of thing. It will help you understand why the big labs died and why, perhaps, they’re coming back.

Posted in General | Tagged | Leave a comment

Book Publishing with LaTeX and Pandoc

Dan Grec was a software engineer who gave it all up for adventures of a different kind. Now he drives his Jeep all around the world living the life he’d always dreamed of. He’s also published a couple of books on his adventures. Since he’s familiar and comfortable with computers, he decided that he’d publish them himself and sell them on Amazon.

While Amazon will give you some tools to help you get your book into their supported formats, you’re mostly on your own. That means you have to produce camera ready PDF for the physical copies and .mobi files for the ebooks. If you’ve never written a book, you have no idea how many tedious details and chores the publisher handles: copy editing, editorial advice, production, design and production of the front and back covers, and much more. When you self publish, all those responsibilities fall on you.

Grec has a long post on how wrote and produced his books. Because he cares about production values and wanted his books to look professionally produced, he decided against using Word and produced LaTeX source instead. He used Pandoc to convert that to PDF and .epub files. He used an Amazon tool to convert the .epub files to the .mobi files required by Amazon.

The post provides the details of his work flow including how he generated both formats from the same source. That’s not quite as trivial as it seems because some aspects of the LaTeX markup are different depending on the target format. Grec used an Eclipse plugin for the actual editing but there’s no reason it couldn’t be done with Org mode from the comfort of Emacs.

If you’ve ever considered writing a book and selling it through Amazon, Grec’s post is a worthwhile read.

Posted in General | Tagged | Leave a comment