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

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

[nongnu] elpa/geiser-guile 20043b1 271/284: Make guile return line numbe


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-guile 20043b1 271/284: Make guile return line numbers more often, as suggested by Sergey
Date: Sun, 1 Aug 2021 18:29:58 -0400 (EDT)

branch: elpa/geiser-guile
commit 20043b13bb9756079d73c68ffd3942cecedb2b9e
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>

    Make guile return line numbers more often, as suggested by Sergey
    
    See gitlab issue #303, where Sergey Trofimov kindly described not only
    the symptons, but this cure.
---
 geiser/xref.scm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/geiser/xref.scm b/geiser/xref.scm
index ba509e7..549cc94 100644
--- a/geiser/xref.scm
+++ b/geiser/xref.scm
@@ -1,6 +1,6 @@
 ;;; xref.scm -- cross-referencing utilities
 
-;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2020 Jose Antonio Ortega Ruiz
 
 ;; This program is free software; you can redistribute it and/or
 ;; modify it under the terms of the Modified BSD License. You should
@@ -23,10 +23,10 @@
   #:use-module (system vm program))
 
 (define (symbol-location sym)
-  (cond ((symbol-module sym) => module-location)
-        (else (let ((obj (symbol->object sym)))
-                (or (and (program? obj) (program-location obj))
-                    '())))))
+  (let ((obj (symbol->object sym)))
+    (cond ((program? obj) (program-location obj))
+          ((symbol-module sym) => module-location)
+          (else '()))))
 
 (define (generic-methods sym)
   (let* ((gen (symbol->object sym))



reply via email to

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