[AUCTeX-devel] Re: Strange things with AUCTeX-CVS toolbar

2008-09-07 Thread Ralf Angeli
* Ralf Angeli (2008-09-07) writes:

> * David Kastrup (2008-09-07) writes:
>
>> Ralf Angeli <[EMAIL PROTECTED]> writes:
>>
>>> What do people think about adding `TeX-PDF-mode' to `minor-mode-alist'
>>> which will make `desktop-save' recognize TeX PDF mode as a minor mode to
>>> be restored and remove the additions to `desktop-locals-to-save' we do
>>> at the end of tex.el?  I dunno why we deal with `desktop-locals-to-save'
>>> at all.
>>
>> My guess would be older versions of desktop.el.  One should probably
>> crosscheck with 22.1 and sort of recent XEmacs variants.
>
> Yeah, that would have been the next step.

AFAICS it works in Emacs 21.4 and XEmacs 21.4.21 as well.  I've checked
it in.

I'll take care of the other minor modes later because I don't know yet
what to do with respect to TeX Omega mode and TeX XeTeX mode.  Those are
mutually exclusive but one could activate both of them via an init file
entry (especially if we add a defcustom for TeX XeTeX mode).  And when
you load a LaTeX file both are active because the minor mode functions
are not executed.  So perhaps we should not implement those as minor
modes.  I'm digressing, I know, but this is what prevents me from
finishing the update of the manual.

-- 
Ralf



___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


[AUCTeX-commit] auctex ChangeLog

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 17:40:48

Modified files:
.  : ChangeLog 

Log message:
*** empty log message ***

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/auctex/ChangeLog?cvsroot=auctex&r1=5.1617&r2=5.1618


___
auctex-commit mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-commit


[AUCTeX-diffs] Changes to auctex/ChangeLog,v

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 17:40:48

Index: ChangeLog
===
RCS file: /cvsroot/auctex/auctex/ChangeLog,v
retrieving revision 5.1617
retrieving revision 5.1618
diff -u -b -r5.1617 -r5.1618
--- ChangeLog   7 Sep 2008 17:37:43 -   5.1617
+++ ChangeLog   7 Sep 2008 17:40:48 -   5.1618
@@ -1,6 +1,7 @@
 2008-09-07  Ralf Angeli  <[EMAIL PROTECTED]>
 
-   * tex.el (TeX-PDF-mode): Add to `minor-mode-alist'.
+   * tex.el (TeX-PDF-mode): Add to `minor-mode-alist'.  Use "" as
+   lighter.
("desktop"): Remove `TeX-PDF-mode' from `desktop-locals-to-save'.
 
* latex.el (LaTeX-mark-environment): Swap beg and end.


___
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-diffs] Changes to auctex/tex.el,v

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 17:40:04

Index: tex.el
===
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.629
retrieving revision 5.630
diff -u -b -r5.629 -r5.630
--- tex.el  7 Sep 2008 17:37:15 -   5.629
+++ tex.el  7 Sep 2008 17:40:02 -   5.630
@@ -1210,7 +1210,7 @@
   (TeX-set-mode-name nil nil t)
   (setq TeX-output-extension
(if TeX-PDF-mode "pdf" "dvi")))
-(add-to-list 'minor-mode-alist '(TeX-PDF-mode nil))
+(add-to-list 'minor-mode-alist '(TeX-PDF-mode ""))
 
 (defun TeX-global-PDF-mode (&optional arg)
   "Toggle default for `TeX-PDF-mode'."


___
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-commit] auctex tex.el

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 17:40:04

Modified files:
.  : tex.el 

Log message:
(TeX-PDF-mode): Use "" as lighter in `minor-mode-alist'.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/auctex/tex.el?cvsroot=auctex&r1=5.629&r2=5.630


___
auctex-commit mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-commit


[AUCTeX-diffs] Changes to auctex/ChangeLog,v

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 17:37:43

Index: ChangeLog
===
RCS file: /cvsroot/auctex/auctex/ChangeLog,v
retrieving revision 5.1616
retrieving revision 5.1617
diff -u -b -r5.1616 -r5.1617
--- ChangeLog   7 Sep 2008 14:21:53 -   5.1616
+++ ChangeLog   7 Sep 2008 17:37:43 -   5.1617
@@ -1,5 +1,8 @@
 2008-09-07  Ralf Angeli  <[EMAIL PROTECTED]>
 
+   * tex.el (TeX-PDF-mode): Add to `minor-mode-alist'.
+   ("desktop"): Remove `TeX-PDF-mode' from `desktop-locals-to-save'.
+
* latex.el (LaTeX-mark-environment): Swap beg and end.
 
 2008-08-02  Ralf Angeli  <[EMAIL PROTECTED]>


___
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-commit] auctex ChangeLog

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 17:37:43

Modified files:
.  : ChangeLog 

Log message:
*** empty log message ***

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/auctex/ChangeLog?cvsroot=auctex&r1=5.1616&r2=5.1617


___
auctex-commit mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-commit


[AUCTeX-commit] auctex tex.el

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 17:37:15

Modified files:
.  : tex.el 

Log message:
(TeX-PDF-mode): Add to `minor-mode-alist'.
("desktop"): Remove `TeX-PDF-mode' from `desktop-locals-to-save'.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/auctex/tex.el?cvsroot=auctex&r1=5.628&r2=5.629


___
auctex-commit mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-commit



[AUCTeX-diffs] Changes to auctex/tex.el,v

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 17:37:15

Index: tex.el
===
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.628
retrieving revision 5.629
diff -u -b -r5.628 -r5.629
--- tex.el  28 Jul 2008 20:41:12 -  5.628
+++ tex.el  7 Sep 2008 17:37:15 -   5.629
@@ -919,7 +919,7 @@
 ("^html?$" "." "netscape %o"))
   "List of output file extensions and view options.
 
-If the first element (a regular expresion) matches the output
+If the first element (a regular expression) matches the output
 file extension, and the second element (a regular expression)
 matches the name of one of the style options, any occurrence of
 the string `%V' in a command in `TeX-command-list' will be
@@ -1210,6 +1210,7 @@
   (TeX-set-mode-name nil nil t)
   (setq TeX-output-extension
(if TeX-PDF-mode "pdf" "dvi")))
+(add-to-list 'minor-mode-alist '(TeX-PDF-mode nil))
 
 (defun TeX-global-PDF-mode (&optional arg)
   "Toggle default for `TeX-PDF-mode'."
@@ -5193,8 +5194,7 @@
 ;; buffer-local values of it.
 (eval-after-load "desktop"
   '(progn
- (dolist (elt '(TeX-master TeX-PDF-mode TeX-interactive-mode
-  TeX-Omega-mode))
+ (dolist (elt '(TeX-master TeX-interactive-mode TeX-Omega-mode))
(unless (member elt (default-value 'desktop-locals-to-save))
 (setq-default desktop-locals-to-save
   (cons elt (default-value 'desktop-locals-to-save)


___
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs


Re: [AUCTeX-devel] Re: Strange things with AUCTeX-CVS toolbar

2008-09-07 Thread Ralf Angeli
* David Kastrup (2008-09-07) writes:

> Ralf Angeli <[EMAIL PROTECTED]> writes:
>
>> What do people think about adding `TeX-PDF-mode' to `minor-mode-alist'
>> which will make `desktop-save' recognize TeX PDF mode as a minor mode to
>> be restored and remove the additions to `desktop-locals-to-save' we do
>> at the end of tex.el?  I dunno why we deal with `desktop-locals-to-save'
>> at all.
>
> My guess would be older versions of desktop.el.  One should probably
> crosscheck with 22.1 and sort of recent XEmacs variants.

Yeah, that would have been the next step.

> I think that TeX-PDF-mode is probably not in minor-mode-alist because we
> want a different way of displaying the lighter.  But "" should probably
> be fine here.

I tried nil which worked, but "" is likely the safer bet.

-- 
Ralf


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] Re: Strange things with AUCTeX-CVS toolbar

2008-09-07 Thread David Kastrup
Ralf Angeli <[EMAIL PROTECTED]> writes:

> * Angelo Graziosi (2008-09-07) writes:
>
>> If, now, I close Emacs (C-x C-c) with save desktop enabled and then
>> restart Emacs, the file foo.tex is reloaded, the toolbar shows only the
>> icon a) b) d) for DVI files _BUT_ 'Command/Texing Options/Generate PDF
>> files' is still selected and cliking 'a) Run LaTeX (DVI)' generates PDF
>> file not DVI. 'b) Run Viewer (XDVI)' runs xpdf not xdvi!
>
> It looks like the minor mode variable value of TeX PDF mode is restored
> but the minor mode function is not called.  The latter runs
> `toolbarx-refresh' through the minor mode hook.
>
> What do people think about adding `TeX-PDF-mode' to `minor-mode-alist'
> which will make `desktop-save' recognize TeX PDF mode as a minor mode to
> be restored and remove the additions to `desktop-locals-to-save' we do
> at the end of tex.el?  I dunno why we deal with `desktop-locals-to-save'
> at all.
>
> Mail-Followup-To: auctex-devel@gnu.org

My guess would be older versions of desktop.el.  One should probably
crosscheck with 22.1 and sort of recent XEmacs variants.

I think that TeX-PDF-mode is probably not in minor-mode-alist because we
want a different way of displaying the lighter.  But "" should probably
be fine here.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


[AUCTeX-devel] Re: Strange things with AUCTeX-CVS toolbar

2008-09-07 Thread Ralf Angeli
* Angelo Graziosi (2008-09-07) writes:

> If, now, I close Emacs (C-x C-c) with save desktop enabled and then
> restart Emacs, the file foo.tex is reloaded, the toolbar shows only the
> icon a) b) d) for DVI files _BUT_ 'Command/Texing Options/Generate PDF
> files' is still selected and cliking 'a) Run LaTeX (DVI)' generates PDF
> file not DVI. 'b) Run Viewer (XDVI)' runs xpdf not xdvi!

It looks like the minor mode variable value of TeX PDF mode is restored
but the minor mode function is not called.  The latter runs
`toolbarx-refresh' through the minor mode hook.

What do people think about adding `TeX-PDF-mode' to `minor-mode-alist'
which will make `desktop-save' recognize TeX PDF mode as a minor mode to
be restored and remove the additions to `desktop-locals-to-save' we do
at the end of tex.el?  I dunno why we deal with `desktop-locals-to-save'
at all.

Mail-Followup-To: auctex-devel@gnu.org

-- 
Ralf


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


[AUCTeX-diffs] Changes to auctex/ChangeLog,v

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 14:21:54

Index: ChangeLog
===
RCS file: /cvsroot/auctex/auctex/ChangeLog,v
retrieving revision 5.1615
retrieving revision 5.1616
diff -u -b -r5.1615 -r5.1616
--- ChangeLog   2 Aug 2008 20:20:17 -   5.1615
+++ ChangeLog   7 Sep 2008 14:21:53 -   5.1616
@@ -1,3 +1,7 @@
+2008-09-07  Ralf Angeli  <[EMAIL PROTECTED]>
+
+   * latex.el (LaTeX-mark-environment): Swap beg and end.
+
 2008-08-02  Ralf Angeli  <[EMAIL PROTECTED]>
 
* tex-bar.el (TeX-bar-TeX-buttons, TeX-bar-LaTeX-buttons): Mimic


___
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-commit] auctex ChangeLog

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 14:21:54

Modified files:
.  : ChangeLog 

Log message:
*** empty log message ***

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/auctex/ChangeLog?cvsroot=auctex&r1=5.1615&r2=5.1616


___
auctex-commit mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-commit


[AUCTeX-diffs] Changes to auctex/latex.el,v

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 14:21:17

Index: latex.el
===
RCS file: /cvsroot/auctex/auctex/latex.el,v
retrieving revision 5.447
retrieving revision 5.448
diff -u -b -r5.447 -r5.448
--- latex.el19 Jul 2008 17:09:13 -  5.447
+++ latex.el7 Sep 2008 14:21:16 -   5.448
@@ -3357,10 +3357,10 @@
 ;; Point should not end up in the middle of nowhere if the search fails.
 (save-excursion
   (dotimes (c count) (LaTeX-find-matching-end))
-  (setq beg (line-beginning-position 2))
+  (setq end (line-beginning-position 2))
   (goto-char cur)
   (dotimes (c count) (LaTeX-find-matching-begin))
-  (setq end (point)))
+  (setq beg (point)))
 (set-mark end)
 (goto-char beg)
 (TeX-activate-region)))


___
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs


[AUCTeX-commit] auctex latex.el

2008-09-07 Thread Ralf Angeli
CVSROOT:/cvsroot/auctex
Module name:auctex
Changes by: Ralf Angeli 08/09/07 14:21:17

Modified files:
.  : latex.el 

Log message:
(LaTeX-mark-environment): Swap beg and end.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/auctex/latex.el?cvsroot=auctex&r1=5.447&r2=5.448


___
auctex-commit mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-commit


Re: [AUCTeX-devel] Restructuring of AUCTeX manual

2008-09-07 Thread Frank Küster
Ralf Angeli <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'd like to restructure the manual a bit to make it more accessible.
> Below you can find the main info menu and the table of contents taken
> from the PDF output (first two sectioning levels only) as a proposal.
[...]
> Let me know what you think.

No one else seems to have answered to this. And I am the last one (that
I remember...) to have proposed structural changes (Adding the "Quick
Start" chapter). Therefore let me just briefly say: Looks good.

Regards, Frank
-- 
Frank Küster
Debian Developer (TeXLive)
ADFC Miltenberg
B90/Grüne KV Miltenberg


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel