From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Randby Subject: Re: Links and visual-line-mode Date: Thu, 02 Jun 2011 13:47:48 -0400 Message-ID: <4DE7CCC4.4070505@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSBzy-0001sY-KO for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 13:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSBzt-0006J4-9j for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 13:47:58 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:60379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSBzs-0006Iv-RA for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 13:47:52 -0400 Received: by gxk23 with SMTP id 23so539675gxk.0 for ; Thu, 02 Jun 2011 10:47:52 -0700 (PDT) In-Reply-To: <20647.1307032883@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: "[Orgmode]" , Carsten Dominik On 06/02/2011 12:41 PM, 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. I looked at several different scenarios using Nick's solution and they all worked fine. I didn't try Carsten's solution. Scott > > Nick > >