I posted a workaround for your problem here.
I'll paste the relevant part here for your convenience and just in case anyone else has the same problem.
Good luck!
I had to add a couple of lines in order to make it work.
Initially, I was getting the error:
Symbol's value as variable is void: TeX-view-program-list
Then I added the following line between lines 38 and 39:
(setq TeX-view-program-list '())
Sadly, I started getting the error:
Symbol's value as variable is void: TeX-view-program-selection
So I added the following line between lines 43 and 44:
(setq TeX-view-program-selection '())
It fixed the problem. I'm not sure why :-P It was a matter of trial and error. Now everything works as it should.
Edit: As percusse suggested, I think it is better to combine my two answers in one. So here goes the full explanation:
Please take a look at the relevant part of my ~/.emacs file regarding forward and inverse search (see below). After adding the two lines I mentioned and three more lines (just in order to choose pdflatex, start the server and choose and activate synctex), I got a working environment with inverse and forward search for evince + emacs + auctex in my system (Debian Wheezy + Gnome 3.2.1 + Emacs 23.3.1 + Evince 3.2.1).
Of course, all the credit for this goes to the authors, referenced through the links mentioned before. I'll paste it here just for your convenience.
;; Forward/inverse search with evince using D-bus.
(server-start)
(add-hook 'LaTeX-mode-hook 'TeX-PDF-mode)
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
(setq TeX-source-correlate-method 'synctex)
(if (require 'dbus "dbus" t)
(progn
;; universal time, need by evince
(defun utime ()
(let ((high (nth 0 (current-time)))
(low (nth 1 (current-time))))
(+ (* high (lsh 1 16) ) low)))
;; Forward search.
;; Adapted from http://dud.inf.tu-dresden.de/~ben/evince_synctex.tar.gz
(defun auctex-evince-forward-sync (pdffile texfile line)
(let ((dbus-name
(dbus-call-method :session
"org.gnome.evince.Daemon" ; service
"/org/gnome/evince/Daemon" ; path
"org.gnome.evince.Daemon" ; interface
"FindDocument"
(concat "file://" pdffile)
t ; Open a new window if the file is not opened.
)))
(dbus-call-method :session
dbus-name
"/org/gnome/evince/Window/0"
"org.gnome.evince.Window"
"SyncView"
texfile
(list :struct :int32 line :int32 1)
(utime))))
(defun auctex-evince-view ()
(let ((pdf (file-truename (concat default-directory
(TeX-master-file (TeX-output-extension)))))
(tex (buffer-file-name))
(line (line-number-at-pos)))
(auctex-evince-forward-sync pdf tex line)))
;; New view entry: Evince via D-bus.
(setq TeX-view-program-list '())
(add-to-list 'TeX-view-program-list
'("EvinceDbus" auctex-evince-view))
;; Prepend Evince via D-bus to program selection list
;; overriding other settings for PDF viewing.
(setq TeX-view-program-selection '())
(add-to-list 'TeX-view-program-selection
'(output-pdf "EvinceDbus"))
;; Inverse search.
;; Adapted from: http://www.mail-archive.com/auctex@gnu.org/msg04175.html
(defun auctex-evince-inverse-sync (file linecol timestamp)
(let ((buf (get-file-buffer (substring file 7)))
(line (car linecol))
(col (cadr linecol)))
(if (null buf)
(message "Sorry, %s is not opened..." file)
(switch-to-buffer buf)
(goto-line (car linecol))
(unless (= col -1)
(move-to-column col)))))
(dbus-register-signal
:session nil "/org/gnome/evince/Window/0"
"org.gnome.evince.Window" "SyncSource"
'auctex-evince-inverse-sync)))
(custom-set-variables '(LaTeX-command "latex -synctex=1") )– user15917 Jun 25 '12 at 0:29