[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] 11.82; input methods don't work when reading section title
From: |
William Henney |
Subject: |
[Bug-AUCTeX] 11.82; input methods don't work when reading section title from minibuffer |
Date: |
Mon, 30 Oct 2006 12:55:05 -0600 |
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. Other functions could probably do with a similar makeover
(e.g., LaTeX-env-figure for the figure caption).
Best wishes
Will Henney
Emacs : GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
of 2006-06-26 on rodrigues.inf.ed.ac.uk - Aquamacs Distribution 0.9.9d
Package: 11.82
current state:
==============
(setq
AUCTeX-date "2005-12-17"
window-system 'mac
LaTeX-version "2e"
TeX-style-path '("style" "auto"
"/Applications/Aquamacs
Emacs.app/Contents/Resources/site-lisp/edit-modes/auctex/style"
"/Applications/Aquamacs
Emacs.app/Contents/Resources/site-lisp/edit-modes/var/auctex")
TeX-auto-save nil
TeX-parse-self t
TeX-master "/Users/will/Work/Helix06/Flow/edr"
TeX-command-list '(("TeX" "%(PDF)%(tex) %S%(PDFout) \"%(mode)\\input %t\""
TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode)
:help "Run plain TeX")
("LaTeX" "%l \"%(mode)\\input{%t}\"" TeX-run-TeX nil
(latex-mode doctex-mode) :help "Run LaTeX")
("Makeinfo" "makeinfo %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with HTML output")
("AmSTeX" "%(PDF)amstex %S%(PDFout) \"%(mode)\\input %t\""
TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt" "texexec --once --texutil %(execopts)%t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil
(context-mode) :help "Run ConTeXt until completion")
("ConTeXt Clean" "texutil --purgeall" TeX-run-interactive
nil (context-mode) :help "Clean temporary ConTeXt files")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
"Run BibTeX")
("View" "%V" TeX-run-discard t t :help "Run Viewer")
("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help
"View the printer queue" :visible TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
"Generate PostScript file")
("Index" "makeindex %s" TeX-run-command nil t :help
"Create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for correctness")
("Spell" "<ignored>" TeX-run-ispell-on-document nil t :help
"Spell-check the document")
("XɘTeX" "\n xetex \"%(mode)\\input %t\"" TeX-run-TeX nil
(plain-tex-mode context-mode))
("XɘLaTeX" "xelatex \"%(mode)\\input{%t}\"" TeX-run-TeX nil
(latex-mode context-mode))
("Other" "" TeX-run-command t t :help
"Run an arbitrary command")
)
)
--
Dr William Henney, Centro de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
- [Bug-AUCTeX] 11.82; input methods don't work when reading section title from minibuffer,
William Henney <=