[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DWIM region

From: Emanuel Berg
Subject: Re: DWIM region
Date: Sat, 06 Jan 2018 19:52:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Stefan Monnier wrote:

>> (defun count-chars-karma (&optional start end)
>>   (interactive
>>    (if (use-region-p)
>>        (list (region-beginning) (region-end))
>>      (list (point-min) (point-max)) ))
>>   (let ((chars (length (buffer-substring-no-properties start end))))
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                  (- end start)

OK, you dodged the bullet this time...

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]