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 15:56:22 -0400 Message-ID: <3844.1307044582@alphaville.americas.hpqcorp.net> 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> <20647.1307032883@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSE0J-0006VV-Mn for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 15:56:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSE0H-0002z0-MQ for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 15:56:27 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:40475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSE0G-0002yY-Ri for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 15:56:25 -0400 In-Reply-To: Message from Carsten Dominik of "Thu, 02 Jun 2011 19:49:19 +0200." 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: > > On 2.6.2011, at 18:41, Nick Dokos wrote: > > > 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. > > OK, I pushed your version. > The test is still passing, so I guess things are OK. Thanks, Nick