yatex

changeset 593:0a96c5fef8f1

Error protection for dbus-register
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 29 Sep 2022 09:46:30 +0900
parents 86ceef677ca2
children 638284a7a9d0
files yatexprc.el
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/yatexprc.el	Sat Sep 24 12:25:21 2022 +0900
     1.2 +++ b/yatexprc.el	Thu Sep 29 09:46:30 2022 +0900
     1.3 @@ -1,7 +1,7 @@
     1.4  ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*-
     1.5  ;;; 
     1.6  ;;; (c)1993-2022 by HIROSE Yuuji.[yuuji@yatex.org]
     1.7 -;;; Last modified Sat Sep 24 12:17:14 2022 on firestorm
     1.8 +;;; Last modified Thu Sep 29 09:45:03 2022 on firestorm
     1.9  ;;; $Id$
    1.10  
    1.11  ;;; Code:
    1.12 @@ -1172,10 +1172,13 @@
    1.13  			(error "[Synctex]: Not found [%s]" file)
    1.14  		      (goto-line ln)
    1.15  		      (move-to-column (max 0 col))))))))
    1.16 -       (dbus-register-signal
    1.17 -	:session nil "/org/gnome/evince/Window/0"
    1.18 -	"org.gnome.evince.Window" "SyncSource"
    1.19 -        'YaTeX-evince-inverse-search)))
    1.20 +       (condition-case ()
    1.21 +	   (dbus-register-signal
    1.22 +	    :session nil "/org/gnome/evince/Window/0"
    1.23 +	    "org.gnome.evince.Window" "SyncSource"
    1.24 +            'YaTeX-evince-inverse-search)
    1.25 +	 (error
    1.26 +	  (message "Reverse search not available on this system.")))))
    1.27  
    1.28  (defun YaTeX-set-virtual-error-position (file-sym line-sym)
    1.29    "Replace the value of FILE-SYM, LINE-SYM by virtual error position."