unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
Cc: steventamm@mac.com,
	YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>,
	emacs-devel@gnu.org
Subject: Re: recenter-ratio (was: Re: Toolbars on MacOSX)
Date: Thu, 13 May 2004 11:58:57 +0200	[thread overview]
Message-ID: <jen04cabry.fsf@sykes.suse.de> (raw)
In-Reply-To: <87wu3h0wv6.fsf_-_@mail.jurta.org> (Juri Linkov's message of "Thu, 13 May 2004 07:33:33 +0300")

Juri Linkov <juri@jurta.org> writes:

> @@ -11722,7 +11724,7 @@
>  	  /* If point does not appear, try to move point so it does
>  	     appear. The desired matrix has been built above, so we
>  	     can use it here.  */
> -	  new_vpos = window_box_height (w) / 2;
> +	  new_vpos = window_box_height (w) / XFLOATINT (Vrecenter_ratio);
>  	}
>  
>        if (!make_cursor_line_fully_visible (w, 0))
> @@ -11922,7 +11924,7 @@
>    /* Finally, just choose place to start which centers point */
>  
>   recenter:
> -  centering_position = window_box_height (w) / 2;
> +  centering_position = window_box_height (w) / XFLOATINT (Vrecenter_ratio);
>  
>   point_at_top:
>    /* Jump here with centering_position already set to 0.  */

I think you need to be careful to avoid an infinite redisplay loop when
recenter-ratio does not contain a number.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

  parent reply	other threads:[~2004-05-13  9:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04 21:16 Toolbars on MacOSX Piet van Oostrum
2004-05-11  9:49 ` YAMAMOTO Mitsuharu
2004-05-11  9:48   ` Kim F. Storm
2004-05-12  2:48   ` Steven Tamm
2004-05-12  8:07     ` Jason Rumney
2004-05-12  8:44       ` Miles Bader
2004-05-12  8:12     ` YAMAMOTO Mitsuharu
2004-05-12 14:13       ` Kim F. Storm
2004-05-13  4:33       ` recenter-ratio (was: Re: Toolbars on MacOSX) Juri Linkov
2004-05-13  5:04         ` Miles Bader
2004-05-13  8:02         ` David Kastrup
2004-05-13  8:46         ` Kim F. Storm
2004-05-13  9:58         ` Andreas Schwab [this message]
2004-05-22  8:15       ` Toolbars on MacOSX YAMAMOTO Mitsuharu
     [not found]         ` <D73CE7B6-AECF-11D8-A841-00039390AB82@mac.com>
     [not found]           ` <wlzn7rhbmp.wl@church.math.s.chiba-u.ac.jp>
2004-05-30  0:43             ` Toolbars on MacOSX (seem to work) Steven Tamm
2004-06-05 15:53         ` Toolbars on MacOSX Andreas Schwab

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jen04cabry.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=emacs-devel@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    --cc=steventamm@mac.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.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).