Mailing List Archive


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

Re: [tlug] More joy with MMM Mode in XEmacs



On 19/06/07, Stephen J. Turnbull <stephen@example.com> wrote:

Josh Glover writes:

 > A picture is worth 1000 words, so see the attached, then read on.

Yeah, but a few more words would help.  Did you type this (and keep
typing in hopes your head would stop hurting)?  Probably not, but if
not, where *did* you get that buffer from?

Sorry 'bout that. My problem was obvious to me! ;)

: jglover@example.com; cat title.mi
<%doc>
#-------------------------------------------------
# Description: Output title of item
#-------------------------------------------------
</%doc>

<%shared_vars>
</%shared_vars>

<%method PREPARE>
 <%args>
   $item
 </%args>
 <%init>
   $item->get(
              [
               'title',
              ],
             );
 </%init>
</%method>

<%args>
 $item
</%args>

<%init>
 my $title = $item->getTitle;
</%init>

<% $title %>
: jglover@example.com; xemacs title.mi &


I have the following in my init.el to turn on mmm-mode with the mason submode for .mi files:


(mmm-add-mode-ext-class nil "\\.m[i]?\\'" 'mason)


So what is happening is that I have a perfectly good Mason component that I've been editing in fundamental mode, and when I turn on mmm-mode / mason, my newlines get jacked.

Same thing happens if I comment out the init.el stuff, open title.mi,
and then turn on mmm-mode manually:

M-x mmm-mode<RET>
C-c % C-c mason<RET>

I can see my component getting newline-munged in real time. :(

As others have said, you're looking at old-Macintosh line break
conventions.  (For more information than any sane person would want,
see http://www.unicode.org/reports/tr14/.)

Yup, I recognised that. I should have emphasised that I wanted to know why this was happening and thus how to stop it from happening. Manually converting back to Unix newlines is not an option for me, given the fact that I can edit upwards of 50 Mason components a day.

Since you have a Mule build, you shouldn't be seeing this unless you
did it to yourself on purpose.  What is the value of
`eol-detection-enabled-p'?  If it's non-nil, a bug report might be
appropriate.  The only case where it *might* reasonably happen that I
can think of is when using TRAMP or if it's the output of a program;
is either the case?

Ah... now that you mention it, the first time I do:

C-x f /some/partial<TAB>

I see:

"loading tramp... done"

which I've never noticed before. I just rebuilt XEmacs and all of its
attendant app-xemacs/ packages to get M17N stuff working properly
(wasn't paying attention and accidentally built a non-Unicode version
of ncurses, getline, etc.).

As for `eol-detection-enabled-p', how do I go about getting its value?
I tried M-x describe-variable, M-x describe-function (I did find an
`eolp'), evaluating it in the scratch buffer, etc.

Sorry, I'm not an elisp expert, I just use the editor. :)

If it was read from a file, to fix it, you could kill the buffer, then
reread with

C-u C-x C-f title.mi RET iso-8859-1-mac RET

That had no effect.

If you're using a fairly recent 21.5.27 or 21.5.28,

I'm not. :( I keep meaning to get a newer version of XEmacs into Portage (~x86 is OK with me!), but I always run into a roadblock that is insurmountable in the confines of the time window I have. I'll try to find another window soon and see if I cannot get a reasonable ebuild. Maybe you can help with that, being a Gentooist yerself?

I've attached my init.el and an i18n.el that it sources, in case
either contain clews (sorry, I've just finished reading "The Baroque
Cycle"[1], and I cannot / don't wanna shake that spelling of "clue"),
and here are the bits of XEmacs that I have installed:

: jglover@example.com; for i in app-editors/xemacs app-xemacs/; do equery
list $i; done
[ Searching for package 'xemacs' in 'app-editors' among: ]
* installed packages
[I--] [  ] app-editors/xemacs-21.4.20-r1 (0)
[ Searching for all packages in 'app-xemacs' among: ]
* installed packages
[I--] [  ] app-xemacs/apel-1.32 (0)
[I--] [  ] app-xemacs/bbdb-1.29 (0)
[I--] [  ] app-xemacs/cc-mode-1.45 (0)
[I--] [  ] app-xemacs/cookie-1.15 (0)
[I--] [  ] app-xemacs/debug-1.18 (0)
[I--] [  ] app-xemacs/dired-1.17 (0)
[I--] [  ] app-xemacs/ecrypto-0.20 (0)
[I--] [  ] app-xemacs/edebug-1.22 (0)
[I--] [  ] app-xemacs/ediff-1.66 (0)
[I--] [  ] app-xemacs/edit-utils-2.36 (0)
[I--] [  ] app-xemacs/efs-1.33 (0)
[I--] [  ] app-xemacs/eieio-1.05 (0)
[I--] [  ] app-xemacs/elib-1.11 (0)
[I--] [  ] app-xemacs/emerge-1.11 (0)
[I--] [  ] app-xemacs/fsf-compat-1.15 (0)
[I--] [  ] app-xemacs/gnus-1.90 (0)
[I--] [  ] app-xemacs/ilisp-1.34 (0)
[I--] [  ] app-xemacs/jde-1.51 (0)
[I--] [  ] app-xemacs/latin-euro-standards-1.07 (0)
[I--] [  ] app-xemacs/latin-unity-1.19 (0)
[I--] [  ] app-xemacs/leim-1.24 (0)
[I--] [  ] app-xemacs/mail-lib-1.78 (0)
[I--] [  ] app-xemacs/mailcrypt-2.14 (0)
[I--] [  ] app-xemacs/mew-1.19 (0)
[I--] [  ] app-xemacs/mh-e-1.29 (0)
[I--] [  ] app-xemacs/mmm-mode-1.02 (0)
[I--] [  ] app-xemacs/mule-base-1.49 (0)
[I--] [  ] app-xemacs/mule-ucs-1.14 (0)
[I--] [  ] app-xemacs/net-utils-1.49 (0)
[I--] [  ] app-xemacs/os-utils-1.39 (0)
[I--] [  ] app-xemacs/pcl-cvs-1.67 (0)
[I--] [  ] app-xemacs/pgg-1.06 (0)
[I--] [  ] app-xemacs/prog-modes-2.09 (0)
[I--] [  ] app-xemacs/ps-print-1.11 (0)
[I--] [  ] app-xemacs/psgml-1.44 (0)
[I--] [  ] app-xemacs/rmail-1.14 (0)
[I--] [  ] app-xemacs/sasl-1.16 (0)
[I--] [  ] app-xemacs/semantic-1.20 (0)
[I--] [  ] app-xemacs/sh-script-1.21 (0)
[I--] [  ] app-xemacs/sieve-1.18 (0)
[I--] [  ] app-xemacs/speedbar-1.28 (0)
[I--] [  ] app-xemacs/supercite-1.21 (0)
[I--] [  ] app-xemacs/texinfo-1.30 (0)
[I--] [  ] app-xemacs/text-modes-1.92 (0)
[I--] [  ] app-xemacs/tm-1.38 (0)
[I--] [  ] app-xemacs/vc-1.41 (0)
[I--] [  ] app-xemacs/vm-7.22 (0)
[I--] [  ] app-xemacs/w3-1.33 (0)
[I--] [  ] app-xemacs/xemacs-base-2.08 (0)
[I--] [  ] app-xemacs/xemacs-devel-1.75 (0)
[I--] [  ] app-xemacs/xemacs-eterm-1.17 (0)
[I--] [  ] app-xemacs/xemacs-ispell-1.32 (0)
[I--] [  ] app-xemacs/xemacs-packages-sumo-2006.12.21 (0)
[I--] [  ] app-xemacs/xslide-1.09 (0)
[I--] [  ] app-xemacs/xslt-process-1.12 (0)

--
Cheers,
Josh

[1] http://en.wikipedia.org/wiki/The_Baroque_Cycle

Attachment: init.el
Description: Binary data

Attachment: i18n.el
Description: Binary data


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links