- (case (get-text-property (point) 'entry-type)
- ('patch (get-text-property (point) 'stgit-patchsym))
- (t (if cause-error
- (error "No patch on this line")
- nil))))
+ (let ((patch (stgit-patch-at-point)))
+ (cond (patch
+ (stgit-patch-name patch))
+ (cause-error
+ (error "No patch on this line")))))