@@ -383,7 +383,6 @@ end keywords as associated values.")
383383(defun gretl-indent-line ()
384384 " Indent current line of gretl code."
385385 (interactive )
386- ; (save-excursion
387386 (end-of-line )
388387 (indent-line-to
389388 (or (and (ess-inside-string-p (point-at-bol )) 0 )
@@ -397,16 +396,16 @@ end keywords as associated values.")
397396 (if endtok (- gretl-basic-offset) 0 )))))
398397 ; ; previous line ends in =
399398 (save-excursion
400- (if (and (not (equal (point-min ) (line-beginning-position )))
401- (progn
402- (forward-line -1 )
403- (end-of-line ) (backward-char 1 )
404- (equal (char-after (point )) ?= )))
405- (+ gretl-basic-offset (current-indentation ))
406- nil ))
399+ (if (and (not (equal (point-min ) (line-beginning-position )))
400+ (progn
401+ (forward-line -1 )
402+ (end-of-line ) (backward-char 1 )
403+ (equal (char-after (point )) ?= )))
404+ (+ gretl-basic-offset (current-indentation ))
405+ nil ))
407406 ; ; take same indentation as previous line
408407 (save-excursion (forward-line -1 )
409- (current-indentation ))
408+ (current-indentation ))
410409 0 ))
411410 (when (gretl-at-keyword gretl-block-end-keywords)
412411 (forward-word 1 )))
@@ -544,16 +543,16 @@ to gretl, put them in the variable `inferior-gretl-args'."
544543 " \n (Gretl): ess-dialect=%s, buf=%s"
545544 ess-dialect (current-buffer )))
546545 (let* ((r-start-args
547- (concat inferior-gretl-args " " ; add space just in case
548- (if start-args
549- (read-string
550- (concat " Starting Args [other than `"
551- inferior-gretl-args
552- " '] ? " ))
553- nil )))
546+ (concat inferior-gretl-args " " ; add space just in case
547+ (if start-args
548+ (read-string
549+ (concat " Starting Args [other than `"
550+ inferior-gretl-args
551+ " '] ? " ))
552+ nil )))
554553 (inf-buf (inferior-ess r-start-args gretl-customize-alist)))
555- (set ( make -local-variable ' indent-line-function) 'gretl-indent-line )
556- (set ( make -local-variable ' gretl-basic-offset) 4 )
554+ (setq -local indent-line-function 'gretl-indent-line )
555+ (setq -local gretl-basic-offset 4 )
557556 (setq indent-tabs-mode nil )
558557 (goto-char (point-max ))
559558 ; ; (if inferior-ess-language-start
0 commit comments