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 17:28:31 +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 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338823750 24401 80.91.229.3 (4 Jun 2012 15:29:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2012 15:29:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Andrew Michael Levin To: Alp Aker Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 04 17:29:09 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 1SbZDO-0003ra-4X for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2012 17:29:06 +0200 Original-Received: from localhost ([::1]:51382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbZDN-0006Nc-RM for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2012 11:29:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbZDD-0006N3-Uq for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 11:29:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbZDB-0000gk-KZ for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 11:28:55 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:48927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbZDB-0000fz-Db for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 11:28:53 -0400 Original-Received: by obbwd18 with SMTP id wd18so9151852obb.0 for ; Mon, 04 Jun 2012 08:28:51 -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 :content-transfer-encoding; bh=+I7llF8/IfsT6x/24qUHF5a5AHjliP8cGYCxKN9qQyQ=; b=Hjo47XrCXxm62cuRkqN/3QFTw+ohYzsFBZbwnxiXWyxICp00JsZtVXY82ZJjoB6OUG JRv5GMS7r5fwCfg5yzOs5TqJOGVTc07mJnNa08Cq6/pV8pfIOLBK1+N2TUIYSZSXfhPn iJECLZPK9m5KYMx2Z/ayzrFNvxTGWZELwPxcUizaz+7uMTmMBK1nA66GBpv+vA0j3YDK XAoIZIAXJaXqjjhb0SIoVzNK7RuWUReAYCpJhwmwE+2U20wroc8XicSUceCoykJ3V3Hf XKu/zQhTk/zqjWA0evwZeEA/Z7UnWTFjxBx6qRbLrQmeIUjjT08rSR7CRif9RJrbA3zD SIhg== Original-Received: by 10.182.48.100 with SMTP id k4mr12155117obn.21.1338823731452; Mon, 04 Jun 2012 08:28:51 -0700 (PDT) Original-Received: by 10.60.131.129 with HTTP; Mon, 4 Jun 2012 08:28:31 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: Tnpyps7VzMVLl81uUNCp432l78g X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.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:85103 Archived-At: On Mon, Jun 4, 2012 at 4:56 PM, Alp Aker wrote: > On Mon, Jun 4, 2012 at 9:55 AM, suvayu ali = wrote: > >> 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. > > linum-mode only creates as many overlays as is needed to cover that > portion of a buffer that's visible at a given time; it removes them > from locations that are no longer visible. =C2=A0As a result, its > performance is independent of buffer size. In the real world things can be very different. ;) AFAIR, there is a long history of Heisenbug like issue with linum-mode and large org-mode files. If you are interested you can check the org-mode archive. --=20 Suvayu Open source is the future. It sets us free.