emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Scott Randby <srandby@gmail.com>,
	"[Orgmode]" <emacs-orgmode@gnu.org>,
	nicholas.dokos@hp.com
Subject: Re: Links and visual-line-mode
Date: Thu, 02 Jun 2011 12:41:23 -0400	[thread overview]
Message-ID: <20647.1307032883@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Carsten Dominik <carsten.dominik@gmail.com> of "Thu, 02 Jun 2011 18:04:46 +0200." <9AE27AB2-8407-4467-A600-A1EFA6270890@gmail.com>

Carsten Dominik <carsten.dominik@gmail.com> 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

  reply	other threads:[~2011-06-02 16:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 23:32 Links and visual-line-mode Scott Randby
2011-06-02  2:49 ` Nick Dokos
2011-06-02  5:30   ` Scott Randby
2011-06-02  5:58     ` Nick Dokos
2011-06-02  6:03       ` Nick Dokos
2011-06-02 14:01       ` Scott Randby
2011-06-02 20:20         ` Sebastien Vauban
2011-06-03 14:24           ` Scott Randby
2011-06-02 14:16       ` Carsten Dominik
2011-06-02 15:51         ` Nick Dokos
2011-06-02 16:04           ` Carsten Dominik
2011-06-02 16:41             ` Nick Dokos [this message]
2011-06-02 17:47               ` Scott Randby
2011-06-02 17:49               ` Carsten Dominik
2011-06-02 19:56                 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20647.1307032883@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=srandby@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).