Removing diacritics from a string

After reading the irreal post on this subject and Jeremy Friesen’s I wondered if it was possible to generally remove combining diacritics from a string in Elisp. It turns out it is and here’s the code: (defun my/remove-diacritics (in-string) "Return a string like IN-STRING but without diacritics." (concat (mapcar (lambda (char) (car (get-char-code-property char 'decomposition))) in-string))) Using get-char-code-property to get the decomposition property gives a list of characters the first of which should be the letter the original character was formed from e. [Read More]

Git for non-programmers 3

Last time we finished with a change only in the working tree, one which I don’t want to keep. It is possible to just manually revert your changes but it is much quicker to use git.

[Read More]
git 

Git for non-programmers 2

A couple of definitions

When you add changes with the git add command you are adding to the index. What you add from is called the working tree, this is the current state of the files in your file system.

[Read More]
git 

Git for non-programmers 1

Why use a version control system (VCS)?

Have you ever tried to add a new feature to, or change (refactor) an existing part of, a piece of software (or improve a section of a document) and eventually realised that you made it worse and you aren’t sure how to get back to where you started? Perhaps, to avoid such a situation, you now have cluttered directories filled with my-code-v1, my-code-v2-plus-that-other-feature etc., etc. and you’re not quite sure which one does what you want. Version control will help you to keep a log of your changes as well as snapshots of the code as you apply them; it will also allow you to collaborate far more easily but, for now, we will focus on a single editor and a linear history.

[Read More]
git