Recent Changes

Updates since 2017-06-07 22:09 UTC up to 2017-07-07 22:09 UTC

1 | 3 | 7 | 30 | 90 days
List all changes Include rollbacks Include minor changes
List later changes RSS RSS with pages RSS with pages and diff

2017-07-02

  • 04:30 UTC (new) (history) 2017-07-02 Using yasnippet programmatically . . . . Marcin Borkowski Some time ago I was writing an Emacs function to insert a certain template into a buffer. The template had a few places where user-defined strings should be put. My first approach was to write a template-interpolation facility for Elisp, and I will most probably blog about it some day – I learned a bit from it (spoiler: don’t use strings for heavy string manipulations, buffers are faster!). But after I revisited the issue after some time, it occured to me that it doesn’t make too much sense to first ask the user for some strings (using read-string or even completing-read) only to put it in the template with my functions when YASnippet is available!

2017-06-26

  • 04:34 UTC (new) (history) 2017-06-26 de Gruyter style and Package babel Error You haven't defined the language ngerman yet . . . . Marcin Borkowski A few days ago, I decided to submit a paper to a journal ran by de Gruyter. They have their LaTeX package, but it turned out it didn’t work – even with their own document template. The error message was Package babel Error: You haven't defined the language ngerman yet. It turned out that what needs to be done (at least in TeXlive) is to install the hyphen-german package. Go figure. (Admittedly, if you and all your testers run a TeX installation geared toward German users, that might be tricky to even find out. OTOH, is it really possible that I was the first one to encounter this issue, especially that the package has been out for almost a year now?)

2017-06-17

  • 04:21 UTC (new) (history) 2017-06-17 Ways in which Emacs selects the major mode . . . . Marcin Borkowski It is well-known that Emacs can select the major mode of a file depending on the file extension. It is probably lesser-known that this is only the fourth (!) step of deciding which major mode to use. Consult the "Choosing modes" section of the Emacs manual for the details. Here, I’d like to mention one particular case where I needed to look there.

2017-06-12

  • 09:44 UTC (new) (history) 2017-06-12 smart-next-window-or-buffer . . . . Marcin Borkowski Some time ago, I wrote about an Emacs command I started to use to switch between windows (if there is more than one of them) or buffers (otherwise). While it has proven very useful, since then I started to use multiple frames. It turned out that my command wasn’t all that useful then: it couldn’t switch to a buffer in another frame. I then decided to bind f6 to next-multiframe-window from windmove.el, and it worked better. However, there was still one gotcha: sometimes I wanted it to switch to another window in the same frame, and it switched to another frame instead. Well, how to teach Emacs what I really wanted?

More...

Filters