Percy Leonhardt | 2 Aug 2003 13:07
Picon

XEmacs and modeline in sourcefiles

Hi all,

okay, a bit off topic but as most people seem to be on holiday or busy fixing 
bugs it's really quiet on the list, so this might not disturb too much.

Question: Why is my XEmacs complaining with 'File mode specification error: 
(void-function c++-mode-mode)' when opening source files that contain a line 
'// -*- Mode: c++-mode; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 
4; -*-'

I know, the mode is called c++-mode and not c++-mode-mode but why is my XEmacs 
appending this second '-mode'? It's a bit annoying to start c++-mode by hand 
for those files...

Btw, I'm using XEmacs 21.4.

	Percy 
Karl-Heinz Zimmer | 2 Aug 2003 14:23
Picon
Favicon

Re: XEmacs and modeline in sourcefiles


On Samstag, 2. August 2003 13:07, Percy Leonhardt wrote:
> Hi all,
>
> okay, a bit off topic but as most people seem to be on holiday or busy
> fixing bugs it's really quiet on the list, so this might not disturb
> too much.
>
> Question: Why is my XEmacs complaining with 'File mode specification
> error: (void-function c++-mode-mode)' when opening source files that
> contain a line '// -*- Mode: c++-mode; c-basic-offset: 4;
> indent-tabs-mode: nil; tab-width: 4; -*-'
>
> I know, the mode is called c++-mode and not c++-mode-mode

IIRC the mode is called "C++"  -  but not "c++-mode"

Try to replace the term "c++-mode" by a simple "C++",
so a basic mode line would look like this:

/* -*- Mode: C++ -*-

HTH,
Karl-Heinz     <a happy vim user>    ;-)
--

-- 
Karl-Heinz Zimmer, Senior Software Engineer, Klarälvdalens Datakonsult AB
<mailto:khz <at> klaralvdalens-datakonsult.se>            <mailto:khz <at> kde.org>
 "For every complex problem there is an
  answer that is clear, simple, and wrong."  H. L. Mencken, 1880 - 1956
(Continue reading)

\"shaheed r. haque\" | 2 Aug 2003 18:59

Re: wv2-0.1.7 released


Werner,

Good to hear about the progress you are making. Although I have very limited 
time now, and don't even keepup with Koffice builds (:-(), if you need any 
help, I'll try to pitch in...

Thanks, Shaheed
Percy Leonhardt | 3 Aug 2003 09:55
Picon

Re: XEmacs and modeline in sourcefiles

On Saturday 02 August 2003 14:23, Karl-Heinz Zimmer wrote:
> On Samstag, 2. August 2003 13:07, Percy Leonhardt wrote:
> > Hi all,
> >
> > okay, a bit off topic but as most people seem to be on holiday or busy
> > fixing bugs it's really quiet on the list, so this might not disturb
> > too much.
> >
> > Question: Why is my XEmacs complaining with 'File mode specification
> > error: (void-function c++-mode-mode)' when opening source files that
> > contain a line '// -*- Mode: c++-mode; c-basic-offset: 4;
> > indent-tabs-mode: nil; tab-width: 4; -*-'
> >
> > I know, the mode is called c++-mode and not c++-mode-mode
>
> IIRC the mode is called "C++"  -  but not "c++-mode"
>
> Try to replace the term "c++-mode" by a simple "C++",
> so a basic mode line would look like this:
>
> /* -*- Mode: C++ -*-

But then I would have to change all these lines in the sourcefiles. There must 
be a way to tell Emacs to handle the existing lines. I think Lukas has 
inserted this line in some of the files, maybe he knows the right settings... 

Anyway, thanks for your hint. I didn't expect a vim user to answer. :-)

	Percy
(Continue reading)

Lukáš Tinkl | 3 Aug 2003 10:03
Picon
Favicon
Gravatar

Re: XEmacs and modeline in sourcefiles

Dne ne 3. srpna 2003 09:55 Percy Leonhardt napsal(a):
> On Saturday 02 August 2003 14:23, Karl-Heinz Zimmer wrote:
> > On Samstag, 2. August 2003 13:07, Percy Leonhardt wrote:
> > > Hi all,
> > >
> > > okay, a bit off topic but as most people seem to be on holiday or busy
> > > fixing bugs it's really quiet on the list, so this might not disturb
> > > too much.
> > >
> > > Question: Why is my XEmacs complaining with 'File mode specification
> > > error: (void-function c++-mode-mode)' when opening source files that
> > > contain a line '// -*- Mode: c++-mode; c-basic-offset: 4;
> > > indent-tabs-mode: nil; tab-width: 4; -*-'
> > >
> > > I know, the mode is called c++-mode and not c++-mode-mode
> >
> > IIRC the mode is called "C++"  -  but not "c++-mode"
> >
> > Try to replace the term "c++-mode" by a simple "C++",
> > so a basic mode line would look like this:
> >
> > /* -*- Mode: C++ -*-
>
> But then I would have to change all these lines in the sourcefiles. There
> must be a way to tell Emacs to handle the existing lines. I think Lukas has
> inserted this line in some of the files, maybe he knows the right
> settings...

The mode is called "c++-mode" in GNU Emacs, maybe it's different in XEmacs.

(Continue reading)

Percy Leonhardt | 3 Aug 2003 10:40
Picon

Re: XEmacs and modeline in sourcefiles

On Sunday 03 August 2003 10:03, Lukáš Tinkl wrote:
> The mode is called "c++-mode" in GNU Emacs, maybe it's different in XEmacs.

But that won't solve my initial problem:

When I open a sourcefile, for example kprcanvas.cc, my XEmacs 21.4 will not 
enter c++-mode because of the first line in the file starting with 
'// -*- Mode: c++-mode'.

Maybe this works for GNU Emacs but for XEmacs (at least for mine) it doesn't. 
So I thought there is an option I could set in XEmacs to get this fixed.

	Percy
Clarence Dang | 3 Aug 2003 12:31
Picon
Favicon

[Bug 40731] Create a document with a name in command line with koffice app

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

http://bugs.kde.org/show_bug.cgi?id=40731     
dang <at> kde.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
      everconfirmed|0                           |1
Clarence Dang | 3 Aug 2003 12:32
Picon
Favicon

[Bug 61571] Alt+F4 on changed document does only save it, forgetting to close it

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

http://bugs.kde.org/show_bug.cgi?id=61571     
dang <at> kde.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
Clarence Dang | 3 Aug 2003 13:11
Picon
Favicon

[Bug 61571] Alt+F4 on changed document does only save it, forgetting to close it

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

http://bugs.kde.org/show_bug.cgi?id=61571     

------- Additional Comments From dang <at> kde.org  2003-08-03 13:10 -------
Subject: koffice/lib/kofficecore

CVS commit by dang: 

Saving does not always fail (I left out some curly braces...bang head against wall)
There's still another problem I can see so the bug can't be closed yet.

CCMAIL: 61571 <at> bugs.kde.org

  M +2 -0      koMainWindow.cc   1.307

--- koffice/lib/kofficecore/koMainWindow.cc  #1.306:1.307
 <at>  <at>  -881,4 +881,5  <at>  <at>  bool KoMainWindow::saveDocument( bool sa
                (needConfirm && exportConfirmation ( oldOutputFormat /* not so old :) */, _native_format ))
            )
+        {
             // be sure pDoc has the correct outputMimeType!
             ret = pDoc->save();
 <at>  <at>  -889,4 +890,5  <at>  <at>  bool KoMainWindow::saveDocument( bool sa
                 pDoc->setURL( oldURL ), pDoc->setFile( oldFile );
             }
+        }
         else
             ret = false;
(Continue reading)

Navindra Umanee | 3 Aug 2003 13:49
Picon
Favicon

Re: XEmacs and modeline in sourcefiles

Of course:

(defun c++-mode-mode () (c++-mode))

Cheers,
Navin.

Percy Leonhardt <percy <at> eris23.de> wrote:
> On Sunday 03 August 2003 10:03, LukᨠTinkl wrote:
> > The mode is called "c++-mode" in GNU Emacs, maybe it's different in XEmacs.
> 
> But that won't solve my initial problem:
> 
> When I open a sourcefile, for example kprcanvas.cc, my XEmacs 21.4 will not 
> enter c++-mode because of the first line in the file starting with 
> '// -*- Mode: c++-mode'.
> 
> Maybe this works for GNU Emacs but for XEmacs (at least for mine) it doesn't. 
> So I thought there is an option I could set in XEmacs to get this fixed.
> 
> 	Percy
> 
> _______________________________________________
> koffice-devel mailing list
> koffice-devel <at> mail.kde.org
> http://mail.kde.org/mailman/listinfo/koffice-devel

Gmane