[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 04fb034 009/468: lua-jump-to-traceback: Issue war
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 04fb034 009/468: lua-jump-to-traceback: Issue warnings about truncated traceback |
Date: |
Thu, 5 Aug 2021 04:57:58 -0400 (EDT) |
branch: elpa/lua-mode
commit 04fb0341064e8cb2f3e8db013ae2d3626ea1f751
Author: juergen <juergen>
Commit: juergen <juergen>
lua-jump-to-traceback: Issue warnings about truncated traceback
---
lua-mode.el | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index c2fee93..6fea962 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 "$Revision: 1.8 $"
+(defconst lua-version "20060528"
"Lua Mode version number.")
;; Keywords: languages, processes, tools
@@ -1003,7 +1003,7 @@ If `lua-process' is nil or dead, start a new process
first."
(display-buffer lua-process-buffer))))
;;}}}
-;;{{{ lua-prompt-line
+;;{{{ lua-postprocess-output-buffer
(defun lua-postprocess-output-buffer (buf start &optional
lua-stdin-line-offset)
"Highlight tracebacks found in buf. If an traceback occurred return
@@ -1024,21 +1024,24 @@ t, otherwise return nil. BUF must exist."
err-p))
;;}}}
-;;{{{ lua-prompt-line
+;;{{{ lua-jump-to-tracebackw
(defun lua-jump-to-traceback (file line lua-stdin-line-offset)
"Jump to the Lua code in FILE at LINE."
- (let ((buffer (cond ((or (string-equal file tempfile) (string-equal file
"stdin"))
+ ;; sanity check: temporary-file-directory
+ (if (string= (substring file 0 3) "...")
+ (message "Lua traceback output truncated: customize
'temporary-file-directory' or increase 'LUA_IDSIZE' in 'luaconf.h'.")
+ (let ((buffer (cond ((or (string-equal file tempfile) (string-equal file
"stdin"))
(setq line (+ line lua-stdin-line-offset))
lua-stdin-buffer)
- (t (find-file-noselect file)))))
- (pop-to-buffer buffer)
- ;; Force Lua mode
- (if (not (eq major-mode 'lua-mode))
- (lua-mode))
- ;; TODO fix offset when executing region
- (goto-line line)
- (message "Jumping to error in file %s on line %d" file line)))
+ (t (find-file-noselect file)))))
+ (pop-to-buffer buffer)
+ ;; Force Lua mode
+ (if (not (eq major-mode 'lua-mode))
+ (lua-mode))
+ ;; TODO fix offset when executing region
+ (goto-line line)
+ (message "Jumping to error in file %s on line %d" file line))))
;;}}}
;;{{{ lua-prompt-line
- [nongnu] elpa/lua-mode e057e22 044/468: Rename install.rst to README to help github and users., (continued)
- [nongnu] elpa/lua-mode e057e22 044/468: Rename install.rst to README to help github and users., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode b20ca34 051/468: Add note to send update to ELPA., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode afdf074 053/468: Make defcustom declaration formats consistent., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ec1a0f2 063/468: Remove extraneous variable lua-indent-whitespace, use back-to-indentation instead, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 47ac4f3 056/468: Don't have the echo command printed itself., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode a52e6b1 070/468: lua-left-shift-regexp: optimize and greatly reduce size, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 5fa9b81 077/468: lua-indent-line: don't change the indent if inside multiline string literal, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode aedf8a5 018/468: Documentation in restructured text, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 85fda70 039/468: Add patch from Olivier Andrieu for rudimentary long bracket support, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode cf9de96 031/468: Reverted invalid changes for Bug #620, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 04fb034 009/468: lua-jump-to-traceback: Issue warnings about truncated traceback,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode 0ae7e3e 016/468: Handle function names in assignments, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 89dbb80 020/468: imenu fix for local functions, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode bdf4bab 025/468: support for hideshow, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d7c462a 030/468: Fix bug #620: Wrong identation with tables, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode eebb50c 035/468: Fix #1913: Indenting: "(" like "{", Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode fc0a1e3 036/468: Changes/Fixes by Reuben Thomas:, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode de08e4b 028/468: Added version comment for Tom Tromeys package.el, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 676f0a6 045/468: Sync with reality., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 239783b 046/468: Bump version., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode a5f8e7b 048/468: Fix generation and use of VERSION, and ignore release notes files., Philip Kaludercic, 2021/08/05