From: Chris Seberino <cseberino@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Why function gives this error?.. "Wrong type argument: stringp, #<buffer *Messages*>"
Date: Wed, 15 Oct 2014 09:00:07 -0700 (PDT) [thread overview]
Message-ID: <da029a7b-908d-4e04-9298-10a630bca567@googlegroups.com> (raw)
I tried to write a function that goes to next buffer **in alphabetical order**.
(I set f8 to call it.)
It makes a sorted version of buffer list and goes to next buffer in the list...
(global-set-key [f8] (lambda () (interactive)
(let ((sorted-list
(sort (buffer-list) 'string<)))
(switch-to-buffer
(nth 2
(member
(current-buffer) sorted-list))))))
Any help greatly appreciated.
cs
next reply other threads:[~2014-10-15 16:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 16:00 Chris Seberino [this message]
2014-10-15 16:55 ` Why function gives this error?.. "Wrong type argument: stringp, #<buffer *Messages*>" Matthias Pfeifer
2014-10-15 17:47 ` Barry Margolin
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=da029a7b-908d-4e04-9298-10a630bca567@googlegroups.com \
--to=cseberino@gmail.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).