From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.help Subject: Re: print line numbe Date: Tue, 1 Oct 2013 09:52:22 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1380635557 15038 80.91.229.3 (1 Oct 2013 13:52:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Oct 2013 13:52:37 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 01 15:52:41 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VR0NU-0005h0-Rv for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Oct 2013 15:52:40 +0200 Original-Received: from localhost ([::1]:59052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR0NU-00050e-D9 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Oct 2013 09:52:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR0NE-0004z0-OC for help-gnu-emacs@gnu.org; Tue, 01 Oct 2013 09:52:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR0ND-0002Mr-J4 for help-gnu-emacs@gnu.org; Tue, 01 Oct 2013 09:52:24 -0400 Original-Received: from mail-oa0-x22e.google.com ([2607:f8b0:4003:c02::22e]:39946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR0ND-0002Mn-DL for help-gnu-emacs@gnu.org; Tue, 01 Oct 2013 09:52:23 -0400 Original-Received: by mail-oa0-f46.google.com with SMTP id k14so4777151oag.5 for ; Tue, 01 Oct 2013 06:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WE14e7SHioHyWS5pSfXMXnNwXqKFZ8zNZMWSLi06s9g=; b=sa1KR1t5mWFBVo/qUSZ3wAAjnTU4jcxOVfwLbYwri9AGQnycbmvWETgHorZIoI1j6f +XjofClmPXIk6e7M0sPzYAzA+ZoWNjbUjwpeBR0hifUkhCkCfDZp+6YUMDuxudmBK/ow we9b0cG+Pb/4QAyASw2GXdNiaiqmH2E3ePQDVcHXTihtaDbvN+RLAl0FBnC9C+a5Ui0c xzixyQiKkpTUtNGrHuq++9YBLJrj+vEN3Z+cWkdKVxavJpFCCRDhXhDwaS9lNdol8NjE bQpZ82YyM5uPZgk2sVbQhAqxS4/UFTTQ42H0r9LnZoU6K7CQH/EZo0xXQyA7jPIrhac5 +9tA== X-Received: by 10.60.73.137 with SMTP id l9mr7594296oev.32.1380635542311; Tue, 01 Oct 2013 06:52:22 -0700 (PDT) Original-Received: by 10.76.156.103 with HTTP; Tue, 1 Oct 2013 06:52:22 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93774 Archived-At: >> Something along the line of the __LINE__ operator in perl, or >> the $LINENO operator in shell-scripting. > (message "Hello from line: %d" (line-number-at-pos)) I thought he was asking for the line number of the message call in the .el, not the position of point in the current buffer. Something like __FILE__ and __LINE__ for Elisp would be nice to have.