bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] Bug#702871: Regarding forward and backward search with


From: Nicolas Richard
Subject: Re: [Bug-AUCTeX] Bug#702871: Regarding forward and backward search with evince.
Date: Mon, 15 Apr 2013 11:23:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Tassilo Horn <address@hidden> writes:
> address@hidden writes:
>
>> You mean you expect me to learn how to use emacs lisp correctly rather
>> than use ugly hacks.... ?
>
> Well, yes, I hoped to find a solution that doesn't rely on external
> programs.  Unfortunately, that doesn't seem to be possible.  There's no
> DBUS interface for that, and neither does (raise-frame) work.

I had code lying in my .emacs, meant to maximize current frame
(presumably from http://emacswiki.org/emacs/FullScreen#toc16), which I
managed to modify to this :

(defun yf/raise ()
  (interactive)
  (x-send-client-message nil 0 nil "_NET_ACTIVE_WINDOW" 32
                         '(1 0 0)))

Tested by opening a new term and calling emacsclient --eval "(yf/raise)"

Not quite sure if the arguments are ok ; in fact I'm pretty sure the
second 0 is not, but For Me, It Works©™

The spec is there if you want to have a closer look
http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2731082

I can try and make a patch later if you want, but I'm a bit in a hurry
right now.

-- 
Nico.




reply via email to

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