I'm blogging about Emacs, Drupal, php and exciting subjects

A Fix Moved Four Times in One Evening, and the Copy Nobody Deleted

A theme library definition and its JavaScript file are both still sitting in this site's codebase right now, fully written, fully functional, and never loaded by anything. Not disabled, not commented out — just quietly disconnected from the one file that would tell Drupal to load them.

The Refactor That Silently Deleted AdSense and Google Fonts From My Site

Moving a template file from one directory to another shouldn't change what it renders. I moved html.html.twig to templates/layout/html.html.twig for Drupal 11 compatibility, and the rename quietly deleted an AdSense script tag and three Google Fonts links that had nothing to do with the move. Nobody noticed for hours.

Two Linter Frameworks, One Project File, Both Actually Running

My Emacs config loads two separate linter frameworks in the same file, both fully configured, both actually running: flymake and flycheck. They're not doing the same job for different languages, and neither one is dead configuration left over from a migration that didn't finish.

The Same Init Call Appearing Twice in My Own Config

Two different lines in my own Emacs config call the exact same function twice, in the exact same file, a few lines apart. Neither one breaks anything. Both are worth understanding, because they demonstrate two different things about what use-package actually guarantees — and neither one is what I assumed before I went looking.

A Site's Entire Ad Mess Traced Back to One Unmodified Script Tag

Ad placements on this site had started looking wrong — not broken, just not deliberate: spots that clearly weren't ones I remembered choosing. My first assumption was that some old ad unit had been dropped into a template years ago and half-forgotten, so I went looking for it in the theme. There's exactly one ad-related line in the entire theme, and it isn't a placement at all:

Subscribe to Linkhub