473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Emacs mode: Display higher level

Hi!

I use xemacs. Is it possible to show the next higher
level in the status bar?

Up to now it looks like this:

Noconv-----XEmacs: foo.py (Python Font)----L1177-C0--79%---

It would be nice if it could look like this:

Noconv-----XEmacs: foo.py/MyClass (Python Font)----L1177-C0--79%---

if the cursor is inside "class MyClass ....."

Or better, like this, if the cursor is inside
myFunc of MyClass:

Noconv-----XEmacs: foo.py/MyClass/myFunc (Python Font)----L1177-C0--79%---

thomas

Jul 18 '05 #1
2 1716
"Thomas Guettler" <gu*****@thomas-guettler.de> writes:
Hi!

I use xemacs. Is it possible to show the next higher
level in the status bar?

Up to now it looks like this:

Noconv-----XEmacs: foo.py (Python Font)----L1177-C0--79%---

It would be nice if it could look like this:

Noconv-----XEmacs: foo.py/MyClass (Python Font)----L1177-C0--79%---

if the cursor is inside "class MyClass ....."

Or better, like this, if the cursor is inside
myFunc of MyClass:

Noconv-----XEmacs: foo.py/MyClass/myFunc (Python Font)----L1177-C0--79%---


From memory (I switched to GNU Emacs): how about (require 'speedbar)?

'as
Jul 18 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5 Nov 2003, gu*****@thomas-guettler.de wrote:
Hi!

I use xemacs. Is it possible to show the next higher
level in the status bar?

Up to now it looks like this:

Noconv-----XEmacs: foo.py (Python Font)----L1177-C0--79%---

It would be nice if it could look like this:

Noconv-----XEmacs: foo.py/MyClass (Python Font)----L1177-C0--79%---

if the cursor is inside "class MyClass ....."

Or better, like this, if the cursor is inside
myFunc of MyClass:

Noconv-----XEmacs: foo.py/MyClass/myFunc (Python
Font)----L1177-C0--79%---

thomas


You could try func-menu. Note the last sentence, which says it does
what you wish.

;; Description:
;; ============
;; Suppose you have a file with a lot of functions in it. Well, this package
;; makes it easy to jump to any of those functions. The names of the
;; functions in the current buffer are automatically put into a menubar menu,
;; you select one of the function-names and the point is moved to that very
;; function. The mark is pushed on the mark-ring, so you can easily go back
;; to where you were. Alternatively, you can use enter the name of the
;; desired function via the minibuffer which offers completing read input. In
;; addition, the name of the function before point is optionally displayed in
;; the modeline.

I use it like this:

(require 'func-menu)
(add-hook 'find-file-hooks 'fume-add-menubar-entry)

Steve
- --
__________________________________________________ __________________________
Steve Evans,
Zuken Limited, TEL: +44 (0)1454 207800 ext 8607
1500 Aztec West, Fax: +44 (0)1454 207803
Almondsbury, mailto:st****@zuken.co.uk
Bristol, BS32 4RF, UK Web: http://www.zuken.com
Registered Linux user #217906: http://counter.li.org
Public Encryption Key: http://www.gorbag.com/public-key-work.html
"a@b c"@d
__________________________________________________ ___________________________

"Only an idiot fights a war on two fronts. Only the heir to the throne of
the kingdom of idiots would fight a war on twelve fronts."
"We can handle it. Our resources are greater than you think."
-- Londo and Lord Refa in Babylon 5:"Ceremonies of Light and Dark"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (SunOS)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE/qo/E1a67iNP86GcRAn+eAKCUi/w+M9uoQHLqoR3Oy1Ek0cjs9wCeMPd2
pHhD0Dr1XdBr4Uo3ZF64AQk=
=41zm
-----END PGP SIGNATURE-----
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Christian Seberino | last post by:
I am looking at the ELSE home page and trying to figure out if I should invest the time to learn about the ELSE minor mode for Emacs. Is there any programmer out there using ELSE that is getting...
1
by: Li Daobing | last post by:
Hello, I want to use fold-mode or hideshow mode under emacs, but it doesn't work. Cound you tell me how to do this? Thank you. Li Daobing
0
by: Greg Novak | last post by:
I realize that this is a pretty esoteric question, but I'm not even getting any traction on it by myself. I believe that the problem has to do with signal handling for programs run underneath...
331
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.