Editing WordPress Articles in Emacs

I’ve got my blog on WordPress.com, which has some positive aspects (I don’t have to run it) and some negative (I can’t control it fully). But whether I’m running WordPress myself or not, there’s one thing that’s always true: I loathe the browser-based editor.

When composing blog articles, I’ve been using the post-by-mail interface that WordPress.com offers, and it works OK. It’s got severe limitations in what it accepts, though: No <div>s or anything more fancy than a link and an image, really, and even those can’t be combined.

But editing is the main problem: I’ve tried using the Edit with Emacs Firefox plugin, and it doesn’t work with WordPress.com, apparently. So I’ve just… not… edited much, because it’s such a pain in the ass. The “visual” editor doesn’t even have reliable scrolling.

So yesterday evening I pulled myself together and started googling “emacs wordpress”, and found org2blog, which allows you to edit your WordPress blog posts using org mode. So it’s possible!

It turns out that this all is so much easier than I had imagined: WordPress has an old xmlrpc interface that you can just call with your credentials to do all this stuff. (It also has a new interface that’s oauth2-based, i.e., it requires a web browser in the auth flow with is just ick.)

The org2blog people have kindly separated out the low-level stuff into its own library, and I wrote a new library, ewp on top of that. Because even if Org is nice and stuff, I just want to edit my WordPress articles. I want WordPress to have the articles, and don’t want to have a “shadow” set of master texts.

With the help of that library (after fixing a multi/unibyte bug in the xml-rpl.el library (that was merged fast by the nice maintainer)), I finished off the library yesterday, and it’s basic, but does what I need, I think.

It lists the posts on WordPress, allows me to edit them, and to create new posts. (And, of course, since I’m very picture-happy, I also added some stuff to upload embedded media (which was a problem with the post-by-mail interface, because WordPress’ SMTP servers had a size limit of 100MB per email which they refused to increase, even after I asked them (so unreasonable!!!ONE!)).)

Here’s a Youtube demo of me typing away at my very shiny sofa laptop:

This has all been tested very, very lightly, of course, so I’d caution er caution. I’ve tried posting and editing myself on my WordPress.com blog, but who knows what happens on other WordPress installations…

And I’m sure it’ll grow more features as time passes. Things tend that way, don’t they?

December 1941: Sullivan’s Travels

Sullivan’s Travels. Preston Sturges. 1941.

After a string of low-budget movies today, here’s an A feature. By Preston Sturges! This is his third movie in this blog series! I didn’t plan this! It starts off with people fighting on the top of a speeding train! That’s the best way to start a film!

It’s a movie about making movies, and they condescendingly refer to Hopalong Cassidy movies (which was, like, the previous entry in this blog series).

This is absolutely hilarious. I was literally rolling around on the floor laughing.

(By literally I mean figuratively, of course.)

It’s brilliant. The mix of cynicism and sentimentality is perfect. It’s definitely not a Frank Capra film. (Not that there’s anything wrong with that.)

Wonderful performances and razor-sharp dialogue.

Popular movies in December 1941 according to IMDB:

PosterVotesRatingMovie
sc-tt0034240.jpg189518.1Sullivan’s Travels
sc-tt0033373.jpg83717.8Ball of Fire
sc-tt0033704.jpg19827.5Hellzapoppin’
sc-tt0034398.jpg173417.4The Wolf Man
sc-tt0034092.jpg3647.2Remember the Day
sc-tt0033727.jpg8727.1Mr. Bug Goes to Town
sc-tt0033774.jpg18507.1Johnny Eager
sc-tt0034266.jpg23077.0Tarzan’s Secret Treasure
sc-tt0033686.jpg7887.0H.M. Pulham, Esq.
sc-tt0033382.jpg3936.9Bedtime Story

This blog post is part of the Decade series.

November 1941: Secret of the Wastelands

Secret of the Wastelands. Derwin Abrahams. 1941.

Oh! This is a Hopalong Cassidy movie! I don’t recall having seen any of these before, but Hopalong himself looks very familiar. According to imdb, William Boyd basically did no other roles after the mid-30s, so I guess I must have seen one of these before?

Looks like he did about 70 of these over a ten-year period (before making the jump to TV), and I’m guessing that this is a pretty undistinguished example of the form.

It definitely has its charms, and I can understand the attraction for children of this era. It’s like a TV series? Only in movie theatres? It looks cheaply made and the plot isn’t very complicated, but it’s kinda fun? Mysteries, hidden tunnels, a slightly awkward love interest thing going on (with the youthful ever-horny sidekick), and a grizzled old coot as the comedic diversion.

It’s very formulaic, but there’s a reason the formula exists.

Surprisingly enough, the Chinese (who looked positively dastardly at the start of this movie) turn out to be good guys!

Oops! Spoilers!

Popular movies in November 1941 according to IMDB:

PosterVotesRatingMovie
sc-tt0034248.jpg246657.4Suspicion
sc-tt0034172.jpg41187.3Shadow of the Thin Man
sc-tt0034277.jpg46777.3They Died with Their Boots On
sc-tt0034093.jpg6727.2Remorques
sc-tt0033781.jpg11977.0Keep ‘Em Flying
sc-tt0033409.jpg7636.9Blues in the Night
sc-tt0034342.jpg2956.6Unholy Partners
sc-tt0033490.jpg5016.6The Corsican Brothers
sc-tt0034198.jpg3356.5Skylark
sc-tt0033667.jpg2256.5Go West, Young Lady

This blog post is part of the Decade series.

October 1941: All-American Co-Ed

All-American Co-Ed. LeRoy Prinz. 1941.

Another thing from the box set, and pretty kooky.

It’s a great set-up where they manage to come up with a good explanation for why a guy from an all-male college disguises himself as a woman and goes to an all-female college. I know! The drag isn’t very er fishy, but it’s pretty risque.

There’s some great tunes in here, some over-the-top but pitch perfect performances and it isn’t a second too long. What a nice little surprise.

And it’s the second (and final) movie director LeRoy Prinz did, although he continued to be involved with movies in other capacities. He was mainly known as a choreographer in the 30s and nominated for several Oscars, but this movie looks so great on a scene by scene basis that it’s just incredible that he didn’t do more directing.

This movie isn’t even mentioned on his Wikipedia page.

Popular movies in October 1941 according to IMDB:

PosterVotesRatingMovie
sc-tt0033870.jpg1188558.1The Maltese Falcon
sc-tt0033729.jpg165067.8How Green Was My Valley
sc-tt0033945.jpg16447.5Never Give a Sucker an Even Break
sc-tt0033627.jpg44707.449th Parallel
sc-tt0033963.jpg3857.3Nothing But the Truth
sc-tt0033563.jpg904947.3Dumbo
sc-tt0033740.jpg27657.3I Wake Up Screaming
sc-tt0033980.jpg7977.1One Foot in Heaven
sc-tt0034251.jpg11667.1Swamp Water
sc-tt0034269.jpg8786.9Texas

This blog post is part of the Decade series.

September 1941: Let’s Go Collegiate

Let’s Go Collegiate. Jean Yarbrough. 1941.

Another b-movie cheapie from the musicals box set.

And what seems to be a trend here, the b-movies are more diverse than the main features: This on has not only black people, but an Asian guy! Which is a first in this blog series, I think.

It’s amusing, I guess, but it feels like it never really gets its steam up. It wants to spiral out of control, but instead nothing really happens.

Popular movies in September 1941 according to IMDB:

PosterVotesRatingMovie
sc-tt0033766.jpg9107.8It Started with Eve
sc-tt0033592.jpg4087.6Father Takes a Wife
sc-tt0033722.jpg13347.5Hold Back the Dawn
sc-tt0033802.jpg7147.1Ladies in Retirement
sc-tt0033489.jpg2566.9La corona di ferro
sc-tt0034409.jpg15906.9You’ll Never Get Rich
sc-tt0033803.jpg5866.5Lady Be Good
sc-tt0034204.jpg4016.5The Smiling Ghost
sc-tt0033858.jpg5146.5Lydia
sc-tt0034405.jpg9146.5A Yank in the R.A.F.

This blog post is part of the Decade series.