[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Links and visual-line-mode
From: |
Nick Dokos |
Subject: |
Re: [O] Links and visual-line-mode |
Date: |
Thu, 02 Jun 2011 15:56:22 -0400 |
Carsten Dominik <address@hidden> wrote:
>
> On 2.6.2011, at 18:41, Nick Dokos wrote:
>
> > Carsten Dominik <address@hidden> 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
- Re: [O] Links and visual-line-mode, (continued)
- Re: [O] Links and visual-line-mode, Carsten Dominik, 2011/06/02
- Re: [O] Links and visual-line-mode, Nick Dokos, 2011/06/02
- Re: [O] Links and visual-line-mode, Carsten Dominik, 2011/06/02
- Re: [O] Links and visual-line-mode, Nick Dokos, 2011/06/02
- Re: [O] Links and visual-line-mode, Scott Randby, 2011/06/02
- Re: [O] Links and visual-line-mode, Carsten Dominik, 2011/06/02
- Re: [O] Links and visual-line-mode,
Nick Dokos <=