From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Links and visual-line-mode Date: Thu, 2 Jun 2011 19:49:19 +0200 Message-ID: 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 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSC1Z-0002D0-3Y for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 13:49:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSC1X-0006Qu-4I for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 13:49:36 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:37438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSC1W-0006Qd-P3 for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 13:49:35 -0400 Received: by eyd9 with SMTP id 9so445321eyd.0 for ; Thu, 02 Jun 2011 10:49:33 -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: Scott Randby , "[Orgmode]" 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. - Carsten > > Nick >