From: rjdtoday@yahoo.com
To: help-gnu-emacs@gnu.org
Subject: Compare recent-keys to [home], [end], etc?
Date: Sat, 4 Aug 2012 20:37:03 -0700 (PDT) [thread overview]
Message-ID: <d73a60ec-238f-47dc-8366-4548b7f6aeb7@googlegroups.com> (raw)
How can I tell whether a key in recent-keys is the [home] key?
I get the key and test it with the following:
(let ( (lastkey
(let* ((recent-keys (recent-keys))
(keys-length (length recent-keys))
)
(aref recent-keys (- keys-length (length (this-command-keys)) 1))
)
)
)
(if (= lastkey <how do I designate the [home] key here?> ) ... )
...
)
I've experimented by using the letter A instead of [home], i.e. with (if (= lastkey 65) ... ). That works if lastkey is 'A', but gives the error "Wrong type argument" if lastkey is [home], [end], or similar.
Is there something I can use in that "if" statement so that I can compare anything in recent-keys to [home]?
next reply other threads:[~2012-08-05 3:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-05 3:37 rjdtoday [this message]
2012-08-05 7:04 ` Compare recent-keys to [home], [end], etc? Jambunathan K
[not found] ` <mailman.6342.1344150300.855.help-gnu-emacs@gnu.org>
2012-08-06 23:46 ` daycandle
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d73a60ec-238f-47dc-8366-4548b7f6aeb7@googlegroups.com \
--to=rjdtoday@yahoo.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).