Re: Issues with japanese support

Ikumi Keita <[email protected]> Fri, 11 Mar 2005 22:19:44 +0900
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
>>>>> Ralf Angeli <[email protected]> writes:

> I haven't made anything with the margin yet.  Can the condition that
> the current indentation is smaller than the current left margin
> actually be true in some cases?  Maybe there exist minor modes which
> use this?

I'm not sure because the filling routines are rather complicated and I'm
not able to follow them in detail...  Sorry.

> AFAICS `newline' does not do indentation.  Do you have an example?

Well, I don't have a concrete example.  The reason that I stated that
"the function newline ... performs indentation in general" comes from
the last several lines of the definition of `newline' in simple.el of
Emacs 21.4:
----------------------------------------------------------------------
(defun newline (&optional arg)
(snip)
    ;; Indent the line after the newline, except in one case:
    ;; when we added the newline at the beginning of a line
    ;; which starts a page.
    (or was-page-start
	(move-to-left-margin nil t)))
  nil)
----------------------------------------------------------------------
(Please excuse me if it is guaranteed by some reason that this
`move-to-left-margin' never does indentation under the current situation
in the filling loop.)

Anyway, if the `(newline 1)' in the LaTeX-fill-newline is expected to do
no indentation, changing it to `(insert ?\n)' as in the original code of
`fill-newline' in fill.el of CVS Emacs seems to make things simple.

Best regards,
Ikumi Keita