Thursday, March 20, 2014


;; this should delete the last line 00:00

(let ((beg (point)))
(forward-line 0)
(delete-region beg (point)))

;;then do this

(goto-char (point-min))

this solves that first problem
then

then use this in autohotkey

make-emacs-top.ahk

SetTitleMatchMode 1
WinActivate emacs
WinSet, AlwaysOnTop, On, emacs
WinSet, Top, ,emacs
Return

Sunday, March 16, 2014

defun get-stuff ()
(interactive)
(shell-command '"c:/user/get.ahk")
(goto-char (point-min))
(delete-region
(re-search-forward "00\:00")
(point-max))
(goto-char 1)
(message " hi there meshulum"))

(defun clean-stuff ()
(interactive)
(goto-char (point-min))
(delete-region
(re-search-forward "00\:00")
(point-max))
(goto-char 1)
(message " hi there user"))

(defun both-stuff ()
(interactive)
(progn
(get-stuff)
(clean-stuff)
))





(defun put-stuff ()
(interactive)
(kill-ring-save (point-min) (point-max))
(shell-command '"c:/ure/put.ahk"))


put.ahk
SetTtileMatchMode 1
text=%Clipboard%
WinActivate Nuance
Send ^a
Send {Del}
Sleep 100
Clipboard = %text%
WinActivate Nuance
Send ^v
Return


get.ahk
SetTitleMatchMode 1
WinWait Nuance
WinGetText, text;
Clipboard = %text%
WinActivate eamcs
Send ^y
Return


Thursday, March 13, 2014

write interactive emacs functin

global-set-key (kbd "C-c C-g")
(lambda ()
(interactive)
(shell-command "/home/user/trial.pl")))


Sunday, March 9, 2014

ideas to capture to emacs and avoid nuance


SetTitleMatchMode 1
WinWait Nuance
WinGetText, text ;
MsgBox, the text is: `n%text%
WinActivate Nuance
Send ^a
Send {Del}
Sleep 100
Clipboard = %text%
WinActivate Nuance

Send ^v
Return

Wednesday, February 26, 2014

stumpwm problem with mouse on gtk3 apps such as evince and other apps


I have been using stumpwm for several years and am very happy and can't contempl
ate otherwise.

I just noticed a change in debian sid.

The new version of evince 3.10 (which is a pdf viewer)
mousewheel no longer scrolls up and down the page while running under stumpwm.

I reported to evince upstream and they denied it as a problem on their end.

I found they are right when i opened up lxde icewm gnome etc evince worked norma
lly.

Note evince 3.4 under stumpwm (debian wheezy) was fine.

It was only when i upgraded 3.10 or even using jhbuild latest 3.11 same behavior
.

Do you have any idea what the change in mouse handling that would affect this ap
plication.
I have not noticed other applications.

is it a change in the xorg?

thus qpdfview works with normal scroll behavior and okular.

I mentioned on #stumpwm irc

where it was confirmed by alezost



other applications
evince
nautilus
eog


-----------

It can be solved by

> GDK_CORE_DEVICE_EVENTS=1 evince file.pdf

will work normally with the mouse

can this be set in the .profile or .bashrc ???? don't know how