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

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

[nongnu] elpa/gnuplot 7e33d0d 087/184: three fixes: indentation, require


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 7e33d0d 087/184: three fixes: indentation, require cl macros, fix defc
Date: Sun, 29 Aug 2021 11:03:21 -0400 (EDT)

branch: elpa/gnuplot
commit 7e33d0db1194d7bb9a0165425e60c51e8534f2bd
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>

    three fixes: indentation, require cl macros, fix defc
    
    - make new indentation work on XEmacs, which uses a generic "error"
      condition when scanning sexps
    
    - (require 'cl) for (case ) macro
    
    - include :group and :type in gnuplot-basic-offset defcustom
---
 gnuplot.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnuplot.el b/gnuplot.el
index 0c70392..cdfcc2a 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -340,6 +340,7 @@
 
 (require 'comint)
 (require 'easymenu)
+(eval-when-compile (require 'cl))
 
 ;; Keep gnuplot-context separate from main gnuplot library, for people
 ;; who don't want to load the whole thing. Load it automatically on
@@ -647,7 +648,9 @@ to the empty string."
 This applies only to new-style do- and if-statements using
 braces. Commands continued over a linebreak using a backslash are
 always indented to line up with the second word on the line
-beginning the continued command.")
+beginning the continued command."
+  :group 'gnuplot
+  :type 'integer)
 
 ;; (defcustom gnuplot-gnuplot-version nil
 ;;   "*Force gnuplot-mode to behave for this version of gnuplot."
@@ -2592,7 +2595,7 @@ Add additional indentation for continuation lines."
                   (backward-up-list)
                   (gnuplot-beginning-of-continuation)
                   (setq indent (+ gnuplot-basic-offset (current-indentation))))
-              (scan-error
+              (error
                (setq indent 0)))))))
 
     ;; Set indentation



reply via email to

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