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

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

[nongnu] elpa/lua-mode d313ff5 024/468: New Release: 20061208


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode d313ff5 024/468: New Release: 20061208
Date: Thu, 5 Aug 2021 04:58:01 -0400 (EDT)

branch: elpa/lua-mode
commit d313ff517be4e5aa1061d1be57be3753c675db49
Author: juergen <juergen>
Commit: juergen <juergen>

    New Release: 20061208
    Fix lua-postprocess-output-buffer (use char-offset instead of line-offset 
for start of search because lua-send-region uses char-offset now)
---
 lua-mode.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lua-mode.el b/lua-mode.el
index db817ea..d278387 100755
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -28,7 +28,7 @@
 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 ;; MA 02110-1301, USA.
 
-(defconst lua-version "20060625"
+(defconst lua-version "20061208"
   "Lua Mode version number.")
 
 ;; Keywords: languages, processes, tools
@@ -1089,14 +1089,15 @@ If `lua-process' is nil or dead, start a new process 
first."
 ;;}}}
 ;;{{{ lua-postprocess-output-buffer
 
-(defun lua-postprocess-output-buffer (buf start-line &optional 
lua-stdin-line-offset)
+(defun lua-postprocess-output-buffer (buf start &optional 
lua-stdin-line-offset)
   "Highlight tracebacks found in buf. If an traceback occurred return
 t, otherwise return nil.  BUF must exist."
   (let ((lua-stdin-line-offset (or lua-stdin-line-offset 0))
        line file bol err-p)
     (save-excursion
       (set-buffer buf)
-      (goto-line start-line)
+      (goto-char start)
+      (beginning-of-line)
       (if (re-search-forward lua-traceback-line-re nil t)
          (setq file (match-string 1)
                line (string-to-int (match-string 2)))))



reply via email to

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