[Top][All Lists]

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

Re: [Bug-AUCTeX] 11.82; input methods don't work when reading section ti

From: David Kastrup
Subject: Re: [Bug-AUCTeX] 11.82; input methods don't work when reading section title from minibuffer
Date: Mon, 30 Oct 2006 20:53:54 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"William Henney" <address@hidden> writes:

> Dear AUCTeX devs,
> When using the "C-c C-s" (LaTeX-section) command, the user gets the
> opportunity to enter the title for the new section in the
> minibuffer. However, if input methods are enabled, then they don't
> work when entering this text. I think that the fix is to set the
> "inherit-input-method" argument to the "read-string" function.
> Here is a new version of LaTeX-section-title (from latex.el) that
> works how I would like in Emacs 22:
> (defun LaTeX-section-title ()
>  "Hook to prompt for LaTeX section title.
> Insert this hook into `LaTeX-section-hook' to allow the user to change
> the title of the section inserted with `\\[LaTeX-section]."
>  (setq title (read-string "Title: " nil nil title t))
>  (let ((region (and (TeX-active-mark)
>                    (cons (region-beginning) (region-end)))))
>    (when region (delete-region (car region) (cdr region)))))
> I've no idea if this would still work in older versions of
> emacs.

Not in XEmacs.  One could use the following patch in order to have a
function TeX-read-string taking 5 arguments:

Attachment: txtYh75oPPtTg.txt
Description: Text Data

> Other functions could probably do with a similar makeover
> (e.g., LaTeX-env-figure for the figure caption).

One would need to do a grep for read-string and replace it by a
5-argument call to TeX-read-string where appropriate.  Anybody willing
to figure out where it is appropriate?

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]