delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/11/05:55:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Olle Sundblad" <osu AT nada DOT kth DOT se>
To: <cygwin AT cygwin DOT com>
Cc: "Alex Malinovich" <baggend AT howlermonkey DOT net>
Subject: RE: Missing minibuffer when running emacs -nw
Date: Tue, 11 Sep 2001 11:53:11 +0200
Message-ID: <KPEBIFOBICIBJPFGGPKCAEEFCBAA.osu@nada.kth.se>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal
In-Reply-To: <004401c13aa0$7d210960$0800a8c0@TheLoveShack.local>

Thanks for the help in solving the problem!

I still use a 300 line buffer for the window but added the following lines
to my .emacs for easy modifying of Emacs frame-height. If anyone know a way
to get the window height (not buffer) from "cygwin" I'd appreciate it but
this works for me (I only use emacs -nw for CVS commenting).

:;; setting current frame height
(defun set-emacs-height (lines)
  "Sets the current frame height."
  (interactive "nFrame height (lines): ")
  (set-frame-height (window-frame (frame-selected-window)) lines))

;;; and assigning it to a key
(global-set-key "\C-xaa" 'set-emacs-height)


/Olle

-----Original Message-----
From: Alex Malinovich [mailto:baggend AT howlermonkey DOT net]
Sent: den 11 september 2001 11:02
To: 'Olle Sundblad'
Subject: RE: Missing minibuffer when running emacs -nw


Nope. Everything I've tried so far returns the number of lines in the
buffer. To get the number of actual displayed lines I think you'd have
to actually find a way to query the settings for that particular
instance of the window. I have no idea how to go about doing that
though. :(

Thanks for the fix. I'll try it tomorrow and see how it works. If you
can't find a way to actually determine the number of lines visible at
runtime, 25 is still a pretty safe number as most of the sizeable TT
resolutions for a Windows command prompt keep the 80x25 layout.

-Alex



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019