Recent Changes

Updates since 2018-11-23 14:22 UTC up to 2018-12-23 14:22 UTC

1 | 3 | 7 | 30 | 90 days
List latest change per page only List only major changes
List later changes RSS RSS with pages RSS with pages and diff

2018-12-16

  • 11:46 UTC (new) 2018-12-16 A simple tip on using destructive functions . . . . Marcin Borkowski This is something fairly obvious to every seasoned Lisp programmer, but let’s not forget that there are novices, too. Many Elisp functions are noted to be “destructive”, which means that they can change their arguments. For instance, if you want to sort a list, you may use the sort function, which is said to modify its argument by side effects (this is exactly what “destructive” means). This does not necessarily mean, however, that after executing (sort some-list), the variable some-list will magically contain a sorted version of it previous self! Let’s consider two examples.

2018-12-10

2018-12-03

  • 08:46 UTC (new) 2018-12-03 looking-back-p . . . . Marcin Borkowski Emacs has a very useful function looking-at, which says whether the text from the point on matches a given regex. Unfortunately, it modifies the match data, which are global state referring to the last search. Because of that, I often prefer to use looking-at-p, which takes care not to mess with the match data.
  • 08:42 UTC (diff) Comments on 2018-11-19 Font-locking diff blocks in Org-mode . . . . Marcin Borkowski Well, this is what my Emacs outputs when I use commands such as {{{dired-diff}}}, which is what I probably did, and then copied that to a src block.

2018-12-01

2018-11-28

2018-11-26

  • 16:56 UTC (new) 2018-11-26 format-seconds . . . . Marcin Borkowski If you’ve ever done anything UI- and time-related in Elisp (or whatever language), chances are that you did stuff like (defun format-minutes (minutes) "Format MINUTES in a human-friendly way."

More...

Filters