Subject: Bug#4000: emacs can't initialize x window

From: [email-masked] (Erick Branderhorst)
Date: Fri, 2 Aug 1996 09:10:59 +0100

Package: emacs
Version: 19.31-2

I load hilit19.el in my .emacs but when not under X this error occurs.

Loading hilit19...
Error in init file: error: "X windows are not in use or not initialized"

Erick

---

From: [email-masked]
Date: Fri, 2 Aug 96 09:49 EDT

Erick> Package: emacs 
  Erick> Version: 19.31-2
  Erick> 
  Erick> I load hilit19.el in my .emacs but when not under X this error
  Erick> occurs.
  Erick> 
  Erick> Loading hilit19...  Error in init file: error: "X windows are not in
  Erick> use or not initialized"

That is your fault, not emacs. Start is like this:

;; hilit conditional on color
(if (x-display-color-p)
        (require 'hilit19))       

Nice number for the bug report, though :-)

--
Dirk Eddelb"uttel                             http://qed.econ.queensu.ca/~edd

---

From: [email-masked] (Emilio Lopes)
Date: Fri, 2 Aug 96 18:51 EST

>>>>> "EB" == Erick Branderhorst <[email-masked]> wrote:

EB> I load hilit19.el in my .emacs but when not under X this error occurs.

EB> Loading hilit19...
EB> Error in init file: error: "X windows are not in use or not initialized"

Maybe that's why the documentation at the beggining of hilit19.el says
to probe for X using "(cond (window-system ...))":

(cond (window-system
        (setq hilit-mode-enable-list  '(not text-mode)
              hilit-background-mode   'light
              hilit-inhibit-hooks     nil
              hilit-inhibit-rebinding nil)

        (require 'hilit19)
        ))

Emilio.

-- 
                 Emilio C. Lopes <mailto:[email-masked]>
               Instituto de Fisica da Universidade de Sao Paulo
             Caixa Postal 66318, 05389-970 Sao Paulo - SP, BRAZIL
              Phone: (+55) (11) 818-6724 (Voice) / 818-6715 (Fax)