From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: test char Date: Sat, 29 Nov 2008 13:37:33 +0100 Message-ID: References: <9c02116c-66a7-4372-a4da-c7cd6ceb5383@q26g2000prq.googlegroups.com> <1227956551.916850@arno.fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227962902 18501 80.91.229.12 (29 Nov 2008 12:48:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2008 12:48:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Andreas Politz" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 13:49:25 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6PGF-0006dr-Ba for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2008 13:49:23 +0100 Original-Received: from localhost ([127.0.0.1]:45791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6PF5-0003iF-3k for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2008 07:48:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6P4v-0007f8-Vm for help-gnu-emacs@gnu.org; Sat, 29 Nov 2008 07:37:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6P4r-0007cm-Tc for help-gnu-emacs@gnu.org; Sat, 29 Nov 2008 07:37:39 -0500 Original-Received: from [199.232.76.173] (port=55519 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6P4p-0007cN-5k for help-gnu-emacs@gnu.org; Sat, 29 Nov 2008 07:37:35 -0500 Original-Received: from yx-out-1718.google.com ([74.125.44.156]:33991) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L6P4o-0006mH-Ur for help-gnu-emacs@gnu.org; Sat, 29 Nov 2008 07:37:35 -0500 Original-Received: by yx-out-1718.google.com with SMTP id 34so716546yxf.66 for ; Sat, 29 Nov 2008 04:37:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jBFzsL7cpd+kBRthh2Th9uUt3+xe0nriYhMt3EZj4xA=; b=igJNyNum31qrwo/yJg4pOQsCmstSjMmsSiogavAKEnuj0N7JXeUfUDNRzJVJFpKD4H LwfBhXuVKWhgQmo/frEqOlmqJrPIe2BWY18M2YqagtJ8LHb64LpHR5ygVBySonzZQ4UA GB2devYj6cAkS/ip5Fm+V3Eer12Dy1doWjRpI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=a2iDOp21YqXpH0DsTEEGfNhLewMoIwCSj5tmvY27QyjCDYDfwTvPJH+TxcvLPBEbto /CH8jrmIshc2lHgU7wUSIunrtRi+TUrybaiBQZLw2I5h9nDZGxwpspKVjdFpw+Wfk2jO jp7i20PxQtbcLetgdXUPbcWStagk8MkEaOKG8= Original-Received: by 10.100.139.20 with SMTP id m20mr4677730and.147.1227962253917; Sat, 29 Nov 2008 04:37:33 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Sat, 29 Nov 2008 04:37:33 -0800 (PST) In-Reply-To: <1227956551.916850@arno.fh-trier.de> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60224 Archived-At: On Sat, Nov 29, 2008 at 12:01, Andreas Politz wrote: > That's unimaginary more elegant than what I suggested. :-) Yours would have to be more like (defun isupper (char) (let (case-fold-search) (string-match-p "[[:upper:]]" (make-string 1 char)))) but has the advantadge that ELISP> (isupper ??) nil ELISP> (eq (upcase ??) ??) t Juanma