From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Links and visual-line-mode Date: Thu, 02 Jun 2011 12:41:23 -0400 Message-ID: <20647.1307032883@alphaville.dokosmarshall.org> References: <4DE6CC11.6050309@gmail.com> <13614.1306982954@alphaville.dokosmarshall.org> <4DE71FEA.6010201@gmail.com> <15241.1306994317@alphaville.dokosmarshall.org> <20189.1307029869@alphaville.dokosmarshall.org> <9AE27AB2-8407-4467-A600-A1EFA6270890@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSAy1-0001xx-VE for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 12:41:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSAy0-0003fG-CP for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 12:41:53 -0400 Received: from vms173001pub.verizon.net ([206.46.173.1]:56819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSAy0-0003fA-2J for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 12:41:52 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LM6004YS910YEB0@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 11:41:30 -0500 (CDT) In-reply-to: Message from Carsten Dominik of "Thu, 02 Jun 2011 18:04:46 +0200." <9AE27AB2-8407-4467-A600-A1EFA6270890@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Scott Randby , "[Orgmode]" , nicholas.dokos@hp.com Carsten Dominik wrote: > Thanks Nick. Seems like Emacs is not sure in which > buffer it is at that moment, because it has not yet been displayed. > Could you please try to following paranoid patch? > > Thanks. > > - Carsten > > diff --git a/lisp/org.el b/lisp/org.el > index 1ca03f4..b43a877 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -8889,7 +8889,8 @@ Use TAB to complete link prefixes, then RET for = > type-specific completion support > (reverse org-stored-links) "\n")))) > (let ((cw (selected-window))) > (select-window (get-buffer-window "*Org Links*" 'visible)) > - (setq truncate-lines t) > + (with-current-buffer "*Org Links*" > + (set (make-local-variable 'truncate-lines) t)) > (unless (pos-visible-in-window-p (point-max)) > (org-fit-window-to-buffer)) > (and (window-live-p cw) (select-window cw))) > Both this and the simpler > - (setq truncate-lines t) > + (with-current-buffer "*Org Links*" > + (setq truncate-lines t)) seem to work in my simple test. Nick