From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: line numbers Date: Mon, 4 Jun 2012 15:55:29 +0200 Message-ID: References: <20120603181838.GA2517@mark-laptop> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1338818170 7649 80.91.229.3 (4 Jun 2012 13:56:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2012 13:56:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Andrew Michael Levin To: Mark Skilbeck Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 04 15:56:08 2012 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 1SbXlO-0001If-JA for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2012 15:56:06 +0200 Original-Received: from localhost ([::1]:37178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbXlO-0003eR-EF for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2012 09:56:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbXlG-0003eI-1F for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 09:56:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbXl9-0000nA-Mj for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 09:55:57 -0400 Original-Received: from mail-gg0-f169.google.com ([209.85.161.169]:57678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbXl9-0000mY-GJ for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 09:55:51 -0400 Original-Received: by ggm4 with SMTP id 4so3478625ggm.0 for ; Mon, 04 Jun 2012 06:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=F7N2DTNl834+QqyNdjpYSfrRFmaN3GNExVEI8DJ4XqU=; b=plug/428LJHS1s3qD+wM30HgsHjii6ssp1xZb3CJX6k41CW6dACLqOzIwKlXyIVf55 VBxhtc8MS4a/DVh+gw8nvrrPIgwQTiVFq0/Jl8uO8hkbcsLp6uL5nsipX2UjIS3aE+iU /NCBCMWyrwL1LdtxnqqnuKtmdCjWawKHUx3c/5WNcRIZqaPRkewKq9yI9ev20PDXCpKW 0aS62EuEyvkP70wONHx/ShkdMzjdEJP8vw9PQACuJl+HWM6nadODr5K4DvmKncO6WNk3 M4RUy0BCNjTFTFQ1KMWuW9kwr5ji/i+m/gb4wcctxH5UE1Sid6/ldkM7Z/hr66oT1Ycw 0rDQ== Original-Received: by 10.60.169.174 with SMTP id af14mr11915484oec.13.1338818149661; Mon, 04 Jun 2012 06:55:49 -0700 (PDT) Original-Received: by 10.60.131.129 with HTTP; Mon, 4 Jun 2012 06:55:29 -0700 (PDT) In-Reply-To: <20120603181838.GA2517@mark-laptop> X-Google-Sender-Auth: QCAAhhyIy-LsiE1drgJZedtxuk4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.161.169 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:85102 Archived-At: On Sun, Jun 3, 2012 at 8:18 PM, Mark Skilbeck wrote: > Adding to the previous reply suggesting line-number-mode, there are > also packages that show line-numbers *in the buffer* to which people > coming from outside Emacs are familiar. Depending on your Emacs > version, you may have the Linum package already installed. If so, M-x > linum-mode will interest you. Otherwise, you can find it on the > internet[1]. A caveat. As far as I know linum mode shows line numbers using overlays. This can be very expensive if the file is large (e.g. a log file, a journal file etc). If possible I would advice the OP to adapt to not using in-buffer line numbers and rely on line-number-mode for line numbers on the mode line instead. Hope this helps. -- Suvayu Open source is the future. It sets us free.