>>>>> On Fri, 19 Aug 2022 16:50:54 +0200, Uwe Brauer <[email protected]> said:
>>>> "JMM" == Juan Manuel Macías <[email protected]> writes:
Uwe> Hi Juan
>> Sorry for the offtopic, but I thought this homemade function I wrote
>> some time ago for my work might perhaps be useful to some Orgers. When
>> executed in a buffer, the `list-non-latin-chars' function opens a window
>> displaying a list of all the non (basic) Latin characters present in
>> that document. Each item in the list contains the character, its Unicode
>> canonical name, and its hexadecimal code. For example:
Uwe> Very very nice,
Uwe> Till now I used only a very simple search function
Uwe> (defun my-search-no-ascii ()
Uwe> "Simple function to search for no ASCII symbols in a file."
Uwe> (interactive)
Uwe> (skip-chars-forward "\001-\177"))
Equivalently you can do
(skip-chars-forward "[[:ascii:]]")
(or use `re-search-forward' with the [:nonascii:] character class.)
Robert
--