From ddd7578a4123ca9082d30cadf35baced3f145401 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 27 Oct 2014 12:43:13 +0100 Subject: on RET: only check for job, not for field --- grid-engine-mode.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/grid-engine-mode.el b/grid-engine-mode.el index 19e4881..9eec231 100644 --- a/grid-engine-mode.el +++ b/grid-engine-mode.el @@ -38,10 +38,9 @@ (define-key grid-engine-list-mode-map (kbd "g") 'revert-buffer) (define-key grid-engine-list-mode-map (kbd "") (lambda (&optional arg) - (let ((field (get-text-property (point) 'field)) - (job (get-text-property (point) 'grid-engine-job))) - (unless (and field job) (interactive "P") + (let ((job (get-text-property (point) 'tabulated-list-id))) + (unless job (error "[Grid Engine] point is not on a field of a job record")) (grid-engine-job-details job arg))))) -- cgit v1.2.3