all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: raman@users.sf.net
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; Cannot run calculator on TTY
Date: Tue, 02 Oct 2007 09:32:18 +0200	[thread overview]
Message-ID: <4701F402.6060403@gmx.at> (raw)
In-Reply-To: <18177.46954.59945.891659@gargle.gargle.HOWL>

 > The problem is in the calculator.el code.
 > My advice is benign --(will attach it here)
 > but it's the original code, i.e. ad-Orig-calculator that is
 > ending up with the bizarre -2.

-2 is not bizarre.  It's purpose is to give the calculator window 2
lines.

 > The problem lines in calculator.el appear to be:
 > ;;; starting on line 734:
 >
 > (let ((split-window-keep-point nil)
 >                (window-min-height 2))
 >            ;; maybe leave two lines for our window because of the normal
 >            ;; `raised' modeline in Emacs 21
 >            (select-window
 >             (split-window-vertically

The binding of `window-min-height' is here to avoid that `split-window'
complains about too small windows.

 >              ;; If the modeline might interfere with the calculator buffer,
 >              ;; use 3 lines instead.
 >              (if (and (fboundp 'face-attr-construct)
                    ...

All this shouldn't bother us since we already know that we get the
standard value -2 here.

                    ...
 >                -3 -2)))
 >            (switch-to-buffer calculator-buffer))
 >
 > Notice the call to split-window-vertically above, and the
 > somewhat complex code that determines the numeric argument being
 > passed to that call.

Hence we seem to be left with the fact that your configuration has

(let ((split-window-keep-point nil)
       (window-min-height 2))
   (split-window-vertically -2))

fail for some reason.  Could you please verify by evaluating that form?

  reply	other threads:[~2007-10-02  7:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-01  2:35 23.0.50; Cannot run calculator on TTY raman
2007-10-01  6:16 ` martin rudalics
2007-10-01 13:17   ` T. V. Raman
2007-10-01 15:41     ` martin rudalics
2007-10-02  3:13       ` T. V. Raman
2007-10-02  7:32         ` martin rudalics [this message]
2007-10-02 13:23           ` T. V. Raman
2007-10-02 17:51             ` martin rudalics
2007-10-03  1:49               ` T. V. Raman
2007-10-03  6:21                 ` martin rudalics
     [not found]                   ` <18179.41840.532732.664369@gargle.gargle.HOWL>
     [not found]                     ` <18187.33374.913139.901742@gargle.gargle.HOWL>
2007-10-09 17:07                       ` martin rudalics
2007-10-11  4:21                         ` T. V. Raman
2007-10-11  8:50                           ` martin rudalics
2007-10-11 13:30                             ` T. V. Raman
2007-10-12  9:23                               ` martin rudalics
2007-10-13  0:18                                 ` Richard Stallman
2007-10-13  9:02                                   ` martin rudalics
2007-10-13 19:47                                     ` Richard Stallman
2007-10-26 21:03                                       ` martin rudalics

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

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

  git send-email \
    --in-reply-to=4701F402.6060403@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=raman@users.sf.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.