emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] 261/299: Hide some entries of the Command menu when not available


From: Stefan Monnier
Subject: [elpa] 261/299: Hide some entries of the Command menu when not available.
Date: Sun, 02 Nov 2014 03:11:51 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

commit fe51d8ed3244691a5f0f6bd1d544963c26e2781e
Author: Mosè Giordano <address@hidden>
Date:   Wed Jul 2 00:26:39 2014 +0200

    Hide some entries of the Command menu when not available.
    
    * tex.el (TeX-mode-specific-command-menu-entries): Hide "Previous Error"
    and "Error Overview" entries when not available.
---
 ChangeLog |    2 ++
 tex.el    |    8 +++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 265767b..d60d2da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@
        now deleted `TeX-source-correlate-method-active' variable.
        (TeX-source-specials-view-expand-options): Use the
        `TeX-source-correlate-method-active' function.
+       (TeX-mode-specific-command-menu-entries): Hide "Previous Error"
+       and "Error Overview" entries when not available.
 
        * context.el: Update copyright years.
        (ConTeXt-expand-options): Use the
diff --git a/tex.el b/tex.el
index 84d823b..3cb5411 100644
--- a/tex.el
+++ b/tex.el
@@ -4451,9 +4451,11 @@ Brace insertion is only done if point is in a math 
construct and
       ["Next Error" TeX-next-error
        :help "Jump to the next error of the last TeX run"]
       ["Previous Error" TeX-previous-error
-       :help "Jump to the previous error of the last TeX run"]
-      ["Error overview" TeX-error-overview
-       :help "Open an overview of errors occured in the last TeX run"]
+       :help "Jump to the previous error of the last TeX run"
+       :visible TeX-parse-all-errors]
+      ["Error Overview" TeX-error-overview
+       :help "Open an overview of errors occured in the last TeX run"
+       :visible (and TeX-parse-all-errors (fboundp 'tabulated-list-mode))]
       ["Quick View" TeX-view
        :help "Start a viewer without prompting"]
       "-"



reply via email to

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