[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

format-mode-line function



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@rapttech.com.au> 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@users.sf.net> 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@rapttech.com.au> 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@rapttech.com.au
    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@cs.vassar.edu" with a subject of
    tcross> "unsubscribe" or "help"
    tvr> 
    tvr> -- Best Regards, --raman
    tvr> 
    tvr> 
    tvr> Email: raman@users.sf.net WWW:
    tvr> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
    tvr> tv.raman.tv@gmail.com 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@cs.vassar.edu" with a subject of
    tvr> "unsubscribe" or "help"
    >> 
    >> -- 
    >> Best Regards, --raman
    >> 
    >> 
    >> Email: raman@users.sf.net WWW:
    >> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
    >> tv.raman.tv@gmail.com PGP:
    >> http://emacspeak.sf.net/raman/raman-almaden.asc Google:
    >> tv+raman IRC: irc://irc.freenode.net/#emacs
    tcross> 
    tcross> -- Tim Cross tcross@rapttech.com.au
    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@cs.vassar.edu" 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@cs.vassar.edu" with a
subject of "unsubscribe" or "help"


Emacspeak Files | Subscribe | Unsubscribe | Search