[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] trunk r116989: 2014-04-17 Daniel Colascione <address@h
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] trunk r116989: 2014-04-17 Daniel Colascione <address@hidden> |
Date: |
Thu, 17 Apr 2014 08:52:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> * term/xterm.el (xterm-extra-capabilities): Fix bitrotted comment.
> (xterm-paste-ending-sequence): New constant.
> (xterm-paste): New command used for bracketed paste support.
Cool, thanks. Didn't know about that feature of xterm.
> + (let ((event (read-event)))
> + (when (eql event ?\r)
> + (setf event ?\n))
> + (insert event)))
A better version would be:
(let ((event (read-event)))
(insert (if (when (eq event ?\r) ?\n event))))
Note that not only it's better for karma since you don't use setq/setf,
but it's also faster.
Stefan
- Re: [Emacs-diffs] trunk r116989: 2014-04-17 Daniel Colascione <address@hidden>,
Stefan Monnier <=