From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: Get char at point Date: Sat, 17 Jul 2010 02:45:34 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291846180 19849 80.91.229.12 (8 Dec 2010 22:09:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 22:09:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 23:09:36 2010 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.69) (envelope-from ) id 1PQSCZ-0006nx-OW for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:09:36 +0100 Original-Received: from localhost ([127.0.0.1]:57068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQSCT-0005AF-3y for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:09:25 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!l25g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 76.199.197.2 Original-X-Trace: posting.google.com 1279359934 25994 127.0.0.1 (17 Jul 2010 09:45:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 17 Jul 2010 09:45:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l25g2000prn.googlegroups.com; posting-host=76.199.197.2; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTbBT5/5.8.0.12304),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:179805 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:76105 Archived-At: On Jul 17, 1:55=A0am, Harald Hanche-Olsen wrote: > + TheFlyingDutchman : > > > Is there a function to get the character at point? =A0I see get-byte, > > which would work for an ASCII coded file, but I believe Emacs has some > > support for multi-byte character sets. > > If you type C-h f char TAB, you will see a bunch of functions whose > names begin with "char". Then you might wildly guess that the first hit, > char-after, is what you are looking for, and if you actually select > that, the wild guess is confirmed. > > -- > * Harald Hanche-Olsen =A0 =A0 > - It is undesirable to believe a proposition > =A0 when there is no ground whatsoever for supposing it is true. > =A0 -- Bertrand Russell Thanks! I believe I did look at the char* functions. If it had been named char-at I would have gotten it. It should be noted that the help for "char-after" says ---------------------------------------------------------------------------= ----- (char-after &optional POS) Return character in current buffer at position POS. POS is an integer or a marker and defaults to point. If POS is out of range, the value is nil. ---------------------------------------------------------------------------= - The dubious concept of "point" being between characters, was unfortunately followed in naming the function, and then luckily ignored in the help for the function.