- To: tcross@xxxxxxxxxxx
- Subject: format-mode-line function
- From: "T. V. Raman" <raman@xxxxxxxxxxx>
- Date: Thu, 7 Sep 2006 07:46:26 -0700
- Delivered-To: emacspeak@xxxxxxxxxxx
- DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns;h=received:mime-version:content-type:content-transfer-encoding:message-id:date:to:cc:subject:in-reply-to:references:x-mailer:reply-to:from:x-attribution;b=ZUdVQvmn3OEqlU+ZoebHhJP1dJTPwQ2kdRJrHNPPzSN8+ShxVqOZALWdQRXd8bD7PXlSmRPpl+8xcFJzlHlZKg==
- In-Reply-To: <17662.19601.506431.752674@xxxxxxxxxxx>
- List-Help: <mailto:emacspeak-request@xxxxxxxxxxx?subject=help>
- List-Post: <mailto:emacspeak@xxxxxxxxxxx>
- List-Subscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=subscribe>
- List-Unsubscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=unsubscribe>
- Old-Return-Path: <raman@xxxxxxxxxxx>
- Reply-To: raman@xxxxxxxxxxx
- Resent-Date: Thu, 7 Sep 2006 10:47:07 -0400 (EDT)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <cosCLD.A.Wi.rDDAFB@xxxxxxxxxxx>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
It's possible that format-mode-line was not exposed to the lisp
layer until emacs 22. I'll check in a fix sometime in the next
couple of days, but at present my home machine is dead and I have
more serious problems to solve as a consequence.
If you want a fix, basically grab
the function that processed the mode line format in
emacspeak-speak.el from a few svn revisions ago, and defalias
format-mode-line to that function
>>>>> "tcross" == tcross <tcross@xxxxxxxxxxx> writes:
tcross> Emacs Version: GNU Emacs 21.4.1 (i486-pc-linux-gnu, X
tcross> toolkit, Xaw3d scroll bars) of 2005-10-03 on trouble,
tcross> modified by Debian
tcross>
tcross> * I have done a make clean and make. Emacspeak builds
tcross> fine.
tcross>
tcross> * format-mode-line is not mentioned in the 21.4 NEWS
tcross> file I have, though it clearly states in the NEWS
tcross> file with emacs version 22 that it has been included
tcross> since 21.1
tcross>
tcross> * There are no existing bug reports in Debian
tcross> relating to this
tcross>
tcross> * There is no reference to or definition of the
tcross> function in the 21.4 elisp sources. However, emacs 22
tcross> indicates this function is implemented in C code.
tcross>
tcross> * This function was not defined on three different
tcross> systems I have checked. All are running Debian
tcross> testing or Debian unstable. One of them is a fresh
tcross> install with minimal additional emacs packages.
tcross>
tcross> * Function does not exist when emacs is started with
tcross> the -no-site-file and -q switches.
tcross>
tcross> * I haven't found any indication my environment is
tcross> screwed in any way
tcross>
tcross> I guess this leaves two possible explinations
tcross>
tcross> 1. The Debian build and mods has somehow removed
tcross> this function. There is no mention of it in the
tcross> changelog for the Debian build
tcross>
tcross> 2. It is a documentation error.
tcross>
tcross> Would it be possible for others who are running emacs
tcross> 21 to see if the function is defined and report on
tcross> the emacs version. Note that you can yank the version
tcross> information into your message by calling M-x
tcross> emacs-version with the C-u prefix argument. I want to
tcross> know if this function does actually exist in version
tcross> 21 emacs from other distributions or even if someone
tcross> else running Debian has it
tcross>
tcross> thanks,
tcross>
tcross> Tim
tcross>
tcross> T. V. Raman writes:
>>
>> I looked into this further and it turns out that function
>> format-mode-line has been in emacs since 2002 so I will
>> not be making any changes to the emacspeak code. Tim,
>> check your environment, do a make clean and a make and if
>> you still have trouble, please track down the version of
>> emacs you have
>>
>> >>>>> "tvr" == T V Raman <raman@xxxxxxxxxxx> writes:
tvr> Assume this is emacs 21.x --- looks like function
tvr> format-mode-line got added later.
tvr>
tvr> If that is the case you'll get the error *everywhere*
tvr> not just in dired, --- I'll need to re-install the older
tvr> hand-rolled code later tonight.
tvr>
tvr>
tvr>
>> >>>>>> "tcross" == tcross <tcross@xxxxxxxxxxx> writes:
tcross> Hi Raman, FYI I just did an svn checkout and am now
tcross> getting the following error when running dired under
tcross> emacs 21.4
tcross>
tcross> Debugger entered--Lisp error: (void-function
tcross> format-mode-line) format-mode-line((""
tcross> display-time-string)) emacspeak-speak-mode-line()
tcross> emacspeak-dired-initialize()
tcross> dired("~/.poddy/downloads/" nil) *
tcross> call-interactively(dired)
tcross>
tcross> I did a bit of checking and format-mode-line does not
tcross> appear to be in emacs 21. However, it is in emacs 22.
tcross>
tcross> regards,
tcross>
tcross> Tim
tcross>
tcross> -- Tim Cross tcross@xxxxxxxxxxx
tcross>
tcross> There are two types of people in IT - those who do
tcross> not manage what they understand and those who do not
tcross> understand what they manage.
tcross>
tcross> -----------------------------------------------------------------------------
tcross> To unsubscribe from the emacspeak list or change your
tcross> address on the emacspeak list send mail to
tcross> "emacspeak-request@xxxxxxxxxxx" with a subject of
tcross> "unsubscribe" or "help"
tvr>
tvr> -- Best Regards, --raman
tvr>
tvr>
tvr> Email: raman@xxxxxxxxxxx WWW:
tvr> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
tvr> tv.raman.tv@xxxxxxxxxxx PGP:
tvr> http://emacspeak.sf.net/raman/raman-almaden.asc Google:
tvr> tv+raman IRC: irc://irc.freenode.net/#emacs
tvr>
tvr> -----------------------------------------------------------------------------
tvr> To unsubscribe from the emacspeak list or change your
tvr> address on the emacspeak list send mail to
tvr> "emacspeak-request@xxxxxxxxxxx" with a subject of
tvr> "unsubscribe" or "help"
>>
>> --
>> Best Regards, --raman
>>
>>
>> Email: raman@xxxxxxxxxxx WWW:
>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
>> tv.raman.tv@xxxxxxxxxxx PGP:
>> http://emacspeak.sf.net/raman/raman-almaden.asc Google:
>> tv+raman IRC: irc://irc.freenode.net/#emacs
tcross>
tcross> -- Tim Cross tcross@xxxxxxxxxxx
tcross>
tcross> There are two types of people in IT - those who do
tcross> not manage what they understand and those who do not
tcross> understand what they manage.
tcross>
tcross> -----------------------------------------------------------------------------
tcross> To unsubscribe from the emacspeak list or change your
tcross> address on the emacspeak list send mail to
tcross> "emacspeak-request@xxxxxxxxxxx" with a subject of
tcross> "unsubscribe" or "help"
--
-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"