From: Thien-Thi Nguyen <ttn@gnu.org>
To: Matthias Pfeifer <matthias-pfeifer@outlook.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: How do i say it in emacs lisp
Date: Wed, 21 Dec 2016 19:19:41 +0100 [thread overview]
Message-ID: <8760mdta9u.fsf@zigzag.favinet> (raw)
In-Reply-To: <VI1PR0601MB20150977E608E131560FC719858A0@VI1PR0601MB2015.eurprd06.prod.outlook.com> (Matthias Pfeifer's message of "Mon, 28 Nov 2016 11:50:32 +0000")
[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]
() Matthias Pfeifer <matthias-pfeifer@outlook.com>
() Mon, 28 Nov 2016 11:50:32 +0000
Second opinion is welcome :-)
Cool.
(let* (...
(neo-buf nil)
(other-buf nil)
(neo-wnd nil)
(other-wnd nil)
(filename nil)
...)
You can write these w/o the ‘nil’ and even w/o the per-var
parens. Conventionally, such vars are grouped at the end of the
‘let’ VARLIST block, e.g.: (let* ((v1 1) (v2 2) v3 v4 v5) ...).
(when (and neo-buffer
(or (eq buf-0 neo-buffer)
(eq buf-1 neo-buffer)))
presuming ‘buf-0’ and ‘buf-1’ are never nil, you can use ‘memq’:
(when (memq neo-buffer (list buf-0 buf-1))
This constructs a list and discards it after the ‘memq’ so maybe
not too indicated if gratuitous garbage goes against your grain.
(progn
This is superfluous; (when (progn ...)) ≡ (when ...) in meaning.
Same goes for the other ‘progn’.
--
Thien-Thi Nguyen -----------------------------------------------
(defun responsep (type via)
(case type
(technical (eq 'mailing-list via))
...)) 748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2016-12-21 18:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAPzsW6jZpzKKfy3u0tghOQgeZM9qOoLBH3U5EDpjOFB9GwNHXQ@mail.gmail.com>
[not found] ` <CAPzsW6i3UHiAyWFGKrf=pa3B91ZFqgnAT2+vmg=S-agCRi7vZg@mail.gmail.com>
[not found] ` <CAPzsW6j+8W+i0t_CvDz0BEa6diG+z7YiDi7rJfsiknbLYmK3=A@mail.gmail.com>
[not found] ` <CAPzsW6jdmQkqQwA7wPaPNEA4Ayef7Vm+s1jxVH_Z4zHCWKLyMg@mail.gmail.com>
[not found] ` <CAPzsW6hrvFGVyodjd5Zg83-8ZE3s94EDfv28NQRWoRszOoUPKg@mail.gmail.com>
[not found] ` <CAPzsW6j2iip9LbqC4zs2g39yvS-VpT-bm0cnhUL3arxC1va7_Q@mail.gmail.com>
[not found] ` <CAPzsW6jx0LcsPaTmdoLBjgJSAOw_ytk7e4YqGpo+UwA7+Ou7mA@mail.gmail.com>
[not found] ` <CAPzsW6gvO4jExpo=V5vyu+Zw+04nL808sJwLwVnOrFKkj16zWQ@mail.gmail.com>
2016-11-27 20:46 ` How do i say it in emacs lisp Matthias Pfeifer
2016-11-28 9:21 ` tomas
2016-11-28 11:50 ` Matthias Pfeifer
2016-11-28 20:12 ` tomas
2016-12-21 18:19 ` Thien-Thi Nguyen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760mdta9u.fsf@zigzag.favinet \
--to=ttn@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=matthias-pfeifer@outlook.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.