unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* menus; syntax highlighting does not seem to work (SUSE 10.0 Linux)
@ 2006-04-23 12:02 Karl Sommer & Meryl Hale
  2006-04-23 21:14 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Karl Sommer & Meryl Hale @ 2006-04-23 12:02 UTC (permalink / raw)


I have been using a recent windows version of emacs on my PC mainly for
editing Latex files.  I have come to appreciate the syntax highlighting
which makes it much easier to structure the text.

Recently I have downloaded, compiled and installed release emacs 21.4 on a
SUSE 10.0 linux system.  Compilation and installation seemed to work ok.
However, I soon noticed that the menus cannot be invoked with the mouse and
my tex files do not show any syntax highlighting after invoking M-x
font-lock-mode except for some characters that are changed to bold typeface.
There is however no colour.

Am I missing something?

Some quick pointers would be appreciated

Cheers
Karl

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: menus; syntax highlighting does not seem to work (SUSE 10.0 Linux)
  2006-04-23 12:02 menus; syntax highlighting does not seem to work (SUSE 10.0 Linux) Karl Sommer & Meryl Hale
@ 2006-04-23 21:14 ` Peter Dyballa
       [not found] ` <mailman.820.1145826876.9609.help-gnu-emacs@gnu.org>
  2006-04-25 15:25 ` Reiner Steib
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2006-04-23 21:14 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 23.04.2006 um 14:02 schrieb Karl Sommer & Meryl Hale:

> However, I soon noticed that the menus cannot be invoked with the  
> mouse

Is your Emacs running as X client or without windows inside a  
terminal emulation? Then it's normal.

> my tex files do not show any syntax highlighting after invoking M-x
> font-lock-mode except for some characters that are changed to bold  
> typeface.
> There is however no colour.

You don't switch on or off font-lock-mode interactively! Try  
something like this (XEmacs compliant):

	(cond ((fboundp 'global-font-lock-mode)
	   ;; Turn on font-lock in all modes that support it
	   (global-font-lock-mode 1)
	;   (setq font-lock-multiline 'undecided')
	   (setq jit-lock-stealth-verbose t)
	   (setq jit-lock-mode t)
	;   (setq jit-lock-stealth-load 80)
	   ;; Maximum colors
	   (setq font-lock-maximum-decoration t)))
	;  (setq font-lock-maximum-decoration '((tex-mode . 2) (latex-mode .  
2) (t . t)))


--
Greetings

   Pete                           <]
              o        __o         |__    o       HPV, the real
     ___o    /I       -\<,         |o \  -\),-%     high speed!
___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: menus; syntax highlighting does not seem to work (SUSE 10.0 Linux)
       [not found] ` <mailman.820.1145826876.9609.help-gnu-emacs@gnu.org>
@ 2006-04-23 23:56   ` Tim X
  2006-04-24  8:52   ` Stefan Monnier
  1 sibling, 0 replies; 5+ messages in thread
From: Tim X @ 2006-04-23 23:56 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 23.04.2006 um 14:02 schrieb Karl Sommer & Meryl Hale:
>
>> However, I soon noticed that the menus cannot be invoked with the
>> mouse
>
> Is your Emacs running as X client or without windows inside a
> terminal emulation? Then it's normal.
>

Not sure what you mean here. However, to clarify, the mouse and menus
don't work if your running under a console or within an xterm.
However, if your running emacs with X windows support, the menus
should work with the mouse. 

>> my tex files do not show any syntax highlighting after invoking M-x
>> font-lock-mode except for some characters that are changed to bold
>> typeface.
>> There is however no colour.
>
> You don't switch on or off font-lock-mode interactively! Try
> something like this (XEmacs compliant):
>
> 	(cond ((fboundp 'global-font-lock-mode)
> 	   ;; Turn on font-lock in all modes that support it
> 	   (global-font-lock-mode 1)
> 	;   (setq font-lock-multiline 'undecided')
> 	   (setq jit-lock-stealth-verbose t)
> 	   (setq jit-lock-mode t)
> 	;   (setq jit-lock-stealth-load 80)
> 	   ;; Maximum colors
> 	   (setq font-lock-maximum-decoration t)))
> 	;  (setq font-lock-maximum-decoration '((tex-mode . 2) (latex-mode
> .  2) (t . t)))
>
Its quite OK to switch font-lock mode on and off interactively, thats
why it has a menu option. The easiest way to enable font-lock is to
select it from the options menu and then select save options from that
menu. this will setup a 'customize' entry in your .emacs. 

Are you running AucTex? If so, see the info manual on AucTex regarding
font locking. Recent versions of AucTex changed how font locking is
handled and its quite possible you may have a conflict between old
AucTex configuration entries and the new AucTex setup. 

As an experiment and to eliminate any problems in your .emacs, try
running emacs with the -q switch and see if things work correctly. If
they do, then the problem is in your .emacs

Tim



-- 
tcross (at) rapttech dot com dot au

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: menus; syntax highlighting does not seem to work (SUSE 10.0 Linux)
       [not found] ` <mailman.820.1145826876.9609.help-gnu-emacs@gnu.org>
  2006-04-23 23:56   ` Tim X
@ 2006-04-24  8:52   ` Stefan Monnier
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2006-04-24  8:52 UTC (permalink / raw)


> 	   (setq jit-lock-mode t)

This last line is just plain wrong.  At best it's useless, but I wouldn't be
surprised if it can prove harmful in some corner cases.

> 	   (setq font-lock-maximum-decoration t)

AFAIK font-lock-maximum-decoration has always been set to t by default, so
this is useless (tho harmless as well).


        Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: menus; syntax highlighting does not seem to work (SUSE 10.0 Linux)
  2006-04-23 12:02 menus; syntax highlighting does not seem to work (SUSE 10.0 Linux) Karl Sommer & Meryl Hale
  2006-04-23 21:14 ` Peter Dyballa
       [not found] ` <mailman.820.1145826876.9609.help-gnu-emacs@gnu.org>
@ 2006-04-25 15:25 ` Reiner Steib
  2 siblings, 0 replies; 5+ messages in thread
From: Reiner Steib @ 2006-04-25 15:25 UTC (permalink / raw)


On Sun, Apr 23 2006, Karl Sommer & Meryl Hale wrote:

> Recently I have downloaded, compiled and installed release emacs 21.4 on a
> SUSE 10.0 linux system.

SUSE 10.0 already ships the same as Emacs 21.4.  They still label it
Emacs 21.3 because upstream Emacs 21.3 and 21.4 differ only in a
single security fix in the movemail program.  You can verify with

  rpm -q  --changelog emacs|less

that the movemail bug is fixed in SUSE's Emacs 21.3.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-25 15:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-23 12:02 menus; syntax highlighting does not seem to work (SUSE 10.0 Linux) Karl Sommer & Meryl Hale
2006-04-23 21:14 ` Peter Dyballa
     [not found] ` <mailman.820.1145826876.9609.help-gnu-emacs@gnu.org>
2006-04-23 23:56   ` Tim X
2006-04-24  8:52   ` Stefan Monnier
2006-04-25 15:25 ` Reiner Steib

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).