Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-05-08 Thread Mosè Giordano
We sorted out the copyright situation, patch installed, thank you so much!

Cheers,
Mosè

On Wed, 8 May 2019 at 21:32, Mosè Giordano  wrote:
>
> Hi Mohammad,
>
> I've waited a few days because I couldn't find your name in the list
> of people who assigned their copyright to FSF, and your name isn't
> there yet, just checked.  Did you receive confirmation from the
> copyright clerk that everything was fine?
>
> Bye,
> Mosè
>
> On Mon, 29 Apr 2019 at 16:50, Mohammad Hossein Bateni  
> wrote:
> >
> > Hi,
> >
> > I handled the copyright issue.  Everything should be good to go, except 
> > that I need to use my other email address (bat...@google.com) because of 
> > the copyright paperwork.  Which is why I updated the patch to that effect 
> > (see the attachment).
> >
> > Best,
> > MHB
> >
> > On Sun, Apr 21, 2019 at 3:46 PM Mohammad Hossein Bateni  
> > wrote:
> >>
> >> Please wait on this till I sort out the copyright.
> >>
> >> On Sun, Apr 21, 2019 at 1:29 PM Mohammad Hossein Bateni  
> >> wrote:
> >>>
> >>> Thanks for the review.
> >>>
> >>> As noted by Mosè, this change does not affect latex-mode at all.  Its 
> >>> effect on context-mode is also minimal.  It basically allows the user to 
> >>> pick and choose, while it removes a few tools from the default for 
> >>> context-mode.
> >>>
> >>> ConTeXt has two dialects now: Mark II and Mark IV.  BibTeX is perhaps 
> >>> still used in Mark II, though I don't know how many people actively use 
> >>> Mark II ConTeXt.  In Mark IV, I would say BibTeX is not required.
> >>>
> >>> Now I could be more aggressive and remove BibTeX from context-mode in the 
> >>> default.  What do you think?
> >>>
> >>> I will follow the instructions for assigning the copyright to FSF.
> >>>
> >>> On Sat, Apr 20, 2019 at 1:20 PM Colin Baxter  wrote:
> 
>  > Mosè Giordano  writes:
> 
>  > Hi Colin,
>  > On Fri, 19 Apr 2019 at 19:45, Colin Baxter  
>  wrote:
>  >> Not everybody uses ConTeXt and I for one use dvi2ps, ps2pdf and
>  >> index nearly everyday.
> 
>  > Sure, but the proposed patch hides by default some commands in
>  > context-mode only, LaTeX users won't be affected by this.
> 
>  Thanks for the explanation.
> 
>  Best wishes,
> 
>  Colin Baxter
>  m43...@yandex.com

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


Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-05-08 Thread Mosè Giordano
Hi Mohammad,

I've waited a few days because I couldn't find your name in the list
of people who assigned their copyright to FSF, and your name isn't
there yet, just checked.  Did you receive confirmation from the
copyright clerk that everything was fine?

Bye,
Mosè

On Mon, 29 Apr 2019 at 16:50, Mohammad Hossein Bateni  wrote:
>
> Hi,
>
> I handled the copyright issue.  Everything should be good to go, except that 
> I need to use my other email address (bat...@google.com) because of the 
> copyright paperwork.  Which is why I updated the patch to that effect (see 
> the attachment).
>
> Best,
> MHB
>
> On Sun, Apr 21, 2019 at 3:46 PM Mohammad Hossein Bateni  
> wrote:
>>
>> Please wait on this till I sort out the copyright.
>>
>> On Sun, Apr 21, 2019 at 1:29 PM Mohammad Hossein Bateni  
>> wrote:
>>>
>>> Thanks for the review.
>>>
>>> As noted by Mosè, this change does not affect latex-mode at all.  Its 
>>> effect on context-mode is also minimal.  It basically allows the user to 
>>> pick and choose, while it removes a few tools from the default for 
>>> context-mode.
>>>
>>> ConTeXt has two dialects now: Mark II and Mark IV.  BibTeX is perhaps still 
>>> used in Mark II, though I don't know how many people actively use Mark II 
>>> ConTeXt.  In Mark IV, I would say BibTeX is not required.
>>>
>>> Now I could be more aggressive and remove BibTeX from context-mode in the 
>>> default.  What do you think?
>>>
>>> I will follow the instructions for assigning the copyright to FSF.
>>>
>>> On Sat, Apr 20, 2019 at 1:20 PM Colin Baxter  wrote:

 > Mosè Giordano  writes:

 > Hi Colin,
 > On Fri, 19 Apr 2019 at 19:45, Colin Baxter  wrote:
 >> Not everybody uses ConTeXt and I for one use dvi2ps, ps2pdf and
 >> index nearly everyday.

 > Sure, but the proposed patch hides by default some commands in
 > context-mode only, LaTeX users won't be affected by this.

 Thanks for the explanation.

 Best wishes,

 Colin Baxter
 m43...@yandex.com

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


Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-04-29 Thread Mohammad Hossein Bateni
Hi,

I handled the copyright issue.  Everything should be good to go, except
that I need to use my other email address (bat...@google.com) because of
the copyright paperwork.  Which is why I updated the patch to that effect
(see the attachment).

Best,
MHB

On Sun, Apr 21, 2019 at 3:46 PM Mohammad Hossein Bateni 
wrote:

> Please wait on this till I sort out the copyright.
>
> On Sun, Apr 21, 2019 at 1:29 PM Mohammad Hossein Bateni 
> wrote:
>
>> Thanks for the review.
>>
>> As noted by Mosè, this change does not affect latex-mode at all.  Its
>> effect on context-mode is also minimal.  It basically allows the user to
>> pick and choose, while it removes a few tools from the default for
>> context-mode.
>>
>> ConTeXt has two dialects now: Mark II and Mark IV.  BibTeX is perhaps
>> still used in Mark II, though I don't know how many people actively use
>> Mark II ConTeXt.  In Mark IV, I would say BibTeX is not required.
>>
>> Now I could be more aggressive and remove BibTeX from context-mode in the
>> default.  What do you think?
>>
>> I will follow the instructions for assigning the copyright to FSF.
>>
>> On Sat, Apr 20, 2019 at 1:20 PM Colin Baxter  wrote:
>>
>>> > Mosè Giordano  writes:
>>>
>>> > Hi Colin,
>>> > On Fri, 19 Apr 2019 at 19:45, Colin Baxter 
>>> wrote:
>>> >> Not everybody uses ConTeXt and I for one use dvi2ps, ps2pdf and
>>> >> index nearly everyday.
>>>
>>> > Sure, but the proposed patch hides by default some commands in
>>> > context-mode only, LaTeX users won't be affected by this.
>>>
>>> Thanks for the explanation.
>>>
>>> Best wishes,
>>>
>>> Colin Baxter
>>> m43...@yandex.com
>>>
>>
From 9b4dac83a85cedef739ff9e7d578060002f5d088 Mon Sep 17 00:00:00 2001
From: Mohammad Hossein Bateni 
Date: Fri, 19 Apr 2019 06:45:39 -0400
Subject: [PATCH] Allow the user to customize which TeX commands are available in
 each mode.

Commands such as Biber, DVI2PS, PS2PDF, Index, etc. are not useful in
ConTeXt.  ConTeXt generates a PDF directly and has its own indexing
mechanism.

In Mark IV (which has been the preferred version for over a decade and
is actively developed), a new bibliography package is also available,
which can process old bibtex files as well.  So there is no need for
BibTeX.

Having so many commands in context-mode clutters the menus.  In the
definition of TeX-command-list, we either provide a list of relevant
modes, or set the value to `t' indicating that this command should
always be available.  In the latter case, the user cannot customize
it.  Here we provide sensible defaults as well as the ability for the
user to customize.
---
 tex.el | 34 --
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/tex.el b/tex.el
index f469a6c7..e714b7a8 100644
--- a/tex.el
+++ b/tex.el
@@ -136,27 +136,41 @@ If nil, none is specified."
 ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
  TeX-run-TeX nil
  (context-mode) :help "Run ConTeXt until completion")
-("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
-("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
+("BibTeX" "bibtex %s" TeX-run-BibTeX nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode
+		 context-mode)
+ :help "Run BibTeX")
+("Biber" "biber %s" TeX-run-Biber nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
+ :help "Run Biber")
 ("View" "%V" TeX-run-discard-or-function 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-dvips t t
+("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Generate PostScript file")
-("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t
+("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert DVI file to PostScript")
-("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t
+("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert DVI file to PDF with dvipdfmx")
-("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t
+("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert PostScript file to PDF")
 ("Glossaries" "makeglossaries %s" TeX-run-command nil
- t :help "Run makeglossaries to create glossary file")
-("Index" "makeindex %s" TeX-run-index nil t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
+ :help "Run makeglossaries to create glossary
+ file")
+("Index" "makeindex %s" TeX-run-index nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode 

Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-04-24 Thread Mosè Giordano
Hi Colin,

On Tue, 23 Apr 2019 at 20:13, Colin Baxter  wrote:
> I think I was a little premature with the thanks. How do I get back to
> the old behaviour of no section headings when I enter a changelog with
> C-x 4a? I have tried
>
> (setq add-log-current-defun-function nil)
>
> with no effect. I still get an unwanted section heading.

Wrong thread?

Bye,
Mosè

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


Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-04-23 Thread Colin Baxter
> Mohammad Hossein Bateni  writes:

> Please wait on this till I sort out the copyright.  On Sun, Apr
> 21, 2019 at 1:29 PM Mohammad Hossein Bateni 
> wrote:

>> Thanks for the review.
>> 
>> As noted by Mosè, this change does not affect latex-mode at all.
>> Its effect on context-mode is also minimal.  It basically allows
>> the user to pick and choose, while it removes a few tools from
>> the default for context-mode.
>> 
>> ConTeXt has two dialects now: Mark II and Mark IV.  BibTeX is
>> perhaps still used in Mark II, though I don't know how many
>> people actively use Mark II ConTeXt.  In Mark IV, I would say
>> BibTeX is not required.
>> 
>> Now I could be more aggressive and remove BibTeX from
>> context-mode in the default.  What do you think?
>> 
>> I will follow the instructions for assigning the copyright to
>> FSF.
>> 
>> On Sat, Apr 20, 2019 at 1:20 PM Colin Baxter  wrote:
>> 
>>> > Mosè Giordano  writes:
>>> 
>>> > Hi Colin, > On Fri, 19 Apr 2019 at 19:45, Colin Baxter
>>> 
>>> wrote:
>>> >> Not everybody uses ConTeXt and I for one use dvi2ps, ps2pdf
>>> and >> index nearly everyday.
>>> 
>>> > Sure, but the proposed patch hides by default some commands in
>>> > context-mode only, LaTeX users won't be affected by this.
>>> 
>>> Thanks for the explanation.
>>> 
>>> Best wishes,
>>> 
>>> Colin Baxter m43...@yandex.com
>>> 
>> 


I think I was a little premature with the thanks. How do I get back to
the old behaviour of no section headings when I enter a changelog with
C-x 4a? I have tried

(setq add-log-current-defun-function nil)

with no effect. I still get an unwanted section heading.

Best wishes,

-- 
Colin Baxter
m43...@yandex.com
-
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8
-

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


Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-04-21 Thread Mohammad Hossein Bateni
Please wait on this till I sort out the copyright.

On Sun, Apr 21, 2019 at 1:29 PM Mohammad Hossein Bateni 
wrote:

> Thanks for the review.
>
> As noted by Mosè, this change does not affect latex-mode at all.  Its
> effect on context-mode is also minimal.  It basically allows the user to
> pick and choose, while it removes a few tools from the default for
> context-mode.
>
> ConTeXt has two dialects now: Mark II and Mark IV.  BibTeX is perhaps
> still used in Mark II, though I don't know how many people actively use
> Mark II ConTeXt.  In Mark IV, I would say BibTeX is not required.
>
> Now I could be more aggressive and remove BibTeX from context-mode in the
> default.  What do you think?
>
> I will follow the instructions for assigning the copyright to FSF.
>
> On Sat, Apr 20, 2019 at 1:20 PM Colin Baxter  wrote:
>
>> > Mosè Giordano  writes:
>>
>> > Hi Colin,
>> > On Fri, 19 Apr 2019 at 19:45, Colin Baxter 
>> wrote:
>> >> Not everybody uses ConTeXt and I for one use dvi2ps, ps2pdf and
>> >> index nearly everyday.
>>
>> > Sure, but the proposed patch hides by default some commands in
>> > context-mode only, LaTeX users won't be affected by this.
>>
>> Thanks for the explanation.
>>
>> Best wishes,
>>
>> Colin Baxter
>> m43...@yandex.com
>>
>
___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-04-21 Thread Mohammad Hossein Bateni
Thanks for the review.

As noted by Mosè, this change does not affect latex-mode at all.  Its
effect on context-mode is also minimal.  It basically allows the user to
pick and choose, while it removes a few tools from the default for
context-mode.

ConTeXt has two dialects now: Mark II and Mark IV.  BibTeX is perhaps still
used in Mark II, though I don't know how many people actively use Mark II
ConTeXt.  In Mark IV, I would say BibTeX is not required.

Now I could be more aggressive and remove BibTeX from context-mode in the
default.  What do you think?

I will follow the instructions for assigning the copyright to FSF.

On Sat, Apr 20, 2019 at 1:20 PM Colin Baxter  wrote:

> > Mosè Giordano  writes:
>
> > Hi Colin,
> > On Fri, 19 Apr 2019 at 19:45, Colin Baxter 
> wrote:
> >> Not everybody uses ConTeXt and I for one use dvi2ps, ps2pdf and
> >> index nearly everyday.
>
> > Sure, but the proposed patch hides by default some commands in
> > context-mode only, LaTeX users won't be affected by this.
>
> Thanks for the explanation.
>
> Best wishes,
>
> Colin Baxter
> m43...@yandex.com
>
___
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-04-20 Thread Colin Baxter
> Mosè Giordano  writes:

> Hi Colin,
> On Fri, 19 Apr 2019 at 19:45, Colin Baxter  wrote:
>> Not everybody uses ConTeXt and I for one use dvi2ps, ps2pdf and
>> index nearly everyday.

> Sure, but the proposed patch hides by default some commands in
> context-mode only, LaTeX users won't be affected by this.

Thanks for the explanation.

Best wishes,

Colin Baxter
m43...@yandex.com

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


Re: [AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-04-19 Thread Colin Baxter
> Mohammad Hossein Bateni  writes:

> See the attached patch.  I copy the description below.
>  Allow the user to customize which TeX commands
> are available in each mode.

> Commands such as Biber, DVI2PS, PS2PDF, Index, etc. are not useful
> in ConTeXt.  ConTeXt generates a PDF directly and has its own
> indexing mechanism.

> In Mark IV (which has been the preferred version for over a decade
> and is actively developed), a new bibliography package is also
> available, which can process old bibtex files as well.  So there
> is no need for BibTeX.

> Having so many commands in context-mode clutters the menus.  In
> the definition of TeX-command-list, we either provide a list of
> relevant modes, or set the value to `t' indicating that this
> command should always be available.  In the latter case, the user
> cannot customize it.  Here we provide sensible defaults as well as
> the ability for the user to customize.   From
> 9b4dac83a85cedef739ff9e7d578060002f5d088 Mon Sep 17 00:00:00 2001
> From: Mohammad Hossein Bateni  Date: Fri, 19
> Apr 2019 06:45:39 -0400 Subject: [PATCH] Allow the user to
> customize which TeX commands are available in each mode.

> Commands such as Biber, DVI2PS, PS2PDF, Index, etc. are not useful
> in ConTeXt.  ConTeXt generates a PDF directly and has its own
> indexing mechanism.

> In Mark IV (which has been the preferred version for over a decade
> and is actively developed), a new bibliography package is also
> available, which can process old bibtex files as well.  So there
> is no need for BibTeX.

> Having so many commands in context-mode clutters the menus.  In
> the definition of TeX-command-list, we either provide a list of
> relevant modes, or set the value to `t' indicating that this
> command should always be available.  In the latter case, the user
> cannot customize it.  Here we provide sensible defaults as well as
> the ability for the user to customize.  --- tex.el | 34
> -- 1 file changed, 24
> insertions(+), 10 deletions(-)

> diff --git a/tex.el b/tex.el index f469a6c7..e714b7a8 100644 ---
> a/tex.el +++ b/tex.el @@ -136,27 +136,41 @@ If nil, none is
> specified."  ("ConTeXt Full" "%(cntxcom) %(extraopts)
> %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt
> until completion") - ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t
> :help "Run BibTeX") - ("Biber" "biber %s" TeX-run-Biber nil t
> :help "Run Biber") + ("BibTeX" "bibtex %s" TeX-run-BibTeX nil +
> (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode +
> context-mode) + :help "Run BibTeX") + ("Biber" "biber %s"
> TeX-run-Biber nil + (plain-tex-mode latex-mode doctex-mode
> ams-tex-mode texinfo-mode) + :help "Run Biber") ("View" "%V"
> TeX-run-discard-or-function 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-dvips
> t t + ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t +
> (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
> :help "Generate PostScript file") - ("Dvips" "%(o?)dvips %d -o %f
> " TeX-run-dvips nil t + ("Dvips" "%(o?)dvips %d -o %f "
> TeX-run-dvips nil + (plain-tex-mode latex-mode doctex-mode
> ams-tex-mode texinfo-mode) :help "Convert DVI file to PostScript")
> - ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t + ("Dvipdfmx"
> "dvipdfmx %d" TeX-run-dvipdfmx nil + (plain-tex-mode latex-mode
> doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to
> PDF with dvipdfmx") - ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t +
> ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil + (plain-tex-mode
> latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert
> PostScript file to PDF") ("Glossaries" "makeglossaries %s"
> TeX-run-command nil - t :help "Run makeglossaries to create
> glossary file") - ("Index" "makeindex %s" TeX-run-index nil t +
> (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
> + :help "Run makeglossaries to create glossary + file") + ("Index"
> "makeindex %s" TeX-run-index nil + (plain-tex-mode latex-mode
> doctex-mode ams-tex-mode texinfo-mode) :help "Run makeindex to
> create index file") - ("upMendex" "upmendex %s" TeX-run-index t t
> + ("upMendex" "upmendex %s" TeX-run-index t + (plain-tex-mode
> latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run
> upmendex to create index file") - ("Xindy" "texindy %s"
> TeX-run-command nil t + ("Xindy" "texindy %s" TeX-run-command nil
> + (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> texinfo-mode) :help "Run xindy to create 

[AUCTeX-devel] Many commands in TeX-command-list are not useful in context-mode

2019-04-19 Thread Mohammad Hossein Bateni
See the attached patch.  I copy the description below.


Allow the user to customize which TeX commands are available in
 each mode.

Commands such as Biber, DVI2PS, PS2PDF, Index, etc. are not useful in
ConTeXt.  ConTeXt generates a PDF directly and has its own indexing
mechanism.

In Mark IV (which has been the preferred version for over a decade and
is actively developed), a new bibliography package is also available,
which can process old bibtex files as well.  So there is no need for
BibTeX.

Having so many commands in context-mode clutters the menus.  In the
definition of TeX-command-list, we either provide a list of relevant
modes, or set the value to `t' indicating that this command should
always be available.  In the latter case, the user cannot customize
it.  Here we provide sensible defaults as well as the ability for the
user to customize.

From 9b4dac83a85cedef739ff9e7d578060002f5d088 Mon Sep 17 00:00:00 2001
From: Mohammad Hossein Bateni 
Date: Fri, 19 Apr 2019 06:45:39 -0400
Subject: [PATCH] Allow the user to customize which TeX commands are available in
 each mode.

Commands such as Biber, DVI2PS, PS2PDF, Index, etc. are not useful in
ConTeXt.  ConTeXt generates a PDF directly and has its own indexing
mechanism.

In Mark IV (which has been the preferred version for over a decade and
is actively developed), a new bibliography package is also available,
which can process old bibtex files as well.  So there is no need for
BibTeX.

Having so many commands in context-mode clutters the menus.  In the
definition of TeX-command-list, we either provide a list of relevant
modes, or set the value to `t' indicating that this command should
always be available.  In the latter case, the user cannot customize
it.  Here we provide sensible defaults as well as the ability for the
user to customize.
---
 tex.el | 34 --
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/tex.el b/tex.el
index f469a6c7..e714b7a8 100644
--- a/tex.el
+++ b/tex.el
@@ -136,27 +136,41 @@ If nil, none is specified."
 ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
  TeX-run-TeX nil
  (context-mode) :help "Run ConTeXt until completion")
-("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
-("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
+("BibTeX" "bibtex %s" TeX-run-BibTeX nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode
+		 context-mode)
+ :help "Run BibTeX")
+("Biber" "biber %s" TeX-run-Biber nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
+ :help "Run Biber")
 ("View" "%V" TeX-run-discard-or-function 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-dvips t t
+("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Generate PostScript file")
-("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t
+("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert DVI file to PostScript")
-("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t
+("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert DVI file to PDF with dvipdfmx")
-("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t
+("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Convert PostScript file to PDF")
 ("Glossaries" "makeglossaries %s" TeX-run-command nil
- t :help "Run makeglossaries to create glossary file")
-("Index" "makeindex %s" TeX-run-index nil t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
+ :help "Run makeglossaries to create glossary
+ file")
+("Index" "makeindex %s" TeX-run-index nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Run makeindex to create index file")
-("upMendex" "upmendex %s" TeX-run-index t t
+("upMendex" "upmendex %s" TeX-run-index t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Run upmendex to create index file")
-("Xindy" "texindy %s" TeX-run-command nil t
+("Xindy" "texindy %s" TeX-run-command nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
  :help "Run xindy to create index file")
 ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
  :help "Check LaTeX file for correctness")
-- 
2.21.0

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