logs archiveIRC Archive / Freenode / #emacs / 2010 / March / 2 / 8
quotemstr
'&' is string concatenation?
Maybe it's my chronic insomnia, but I don't understand that query.
farciarz84
how can I activate *-mode.el in emacs? And where to copy it if I have recent?
quotemstr
farciarz84: Just ask.
,asktoask
fsbot
asktoask -- This is IRC. Don't ask to ask a question. Just ask your question and if someone's around, he'll be glad to help.
quicksilver
quotemstr: yes, & is string concat
quotemstr: so that gets three properties of event id 1234, joined with pipes. I then split them emacs side with split-string
quotemstr: this will obviously break if I ever have a pipe character in the subject line of an event
hence my brief hope that do-applescript did something better ;)
quotemstr
Doesn't Applescript have some kind of string encoding function? urlencode, maybe, or json?
farciarz84
quotemstr: I'm asking:) How to use .el files?
quotemstr
,installingpackages
fsbot
InstallingPackages is, like, at http://www.emacswiki.org/cgi-bin/wiki.pl?InstallingPackages
         

quicksilver
quotemstr: I recently discovered that osascript has a -s option
karljam
how to i get emacs to return the path of the current emacs binary? i want to load a sound relative to that path
quicksilver
quotemstr: which formats applescript as applescript source; then you can use an applescript list which has reliable string quoting
quotemstr: ...but you have to write the parser for that emacs-side.
quotemstr: mind you, (read) is probably close enough.
kensanata
karljam: Normally you'd use a variable like data-directory load-path or image-load-path
quicksilver
still have to split on commas in a way which doesn't get caught out by commas inside strings
but that is regexpable
I haven't bothered yet though.
kensanata
karljam: On my current system, data-directory seems like your best bet?
karljam
kensanata: i'll give that a whirl
quicksilver
quotemstr: anyhow, these are surely the same problems you faced in espresso-mode. It's a kind of universal problem.
quotemstr
quicksilver: JSON works as an interchange format there though.
kensanata
farciarz84: Did the URL fsbot gave you answer the question?
jatt
hi, I did the following in a shell (GNU/Linux):
grep -ir antlr * > foo.log
quicksilver
quotemstr: there is a standard emacs package for parsing JSON? Or you wrote a parser?
jatt
now foo.log contains:
resources/.svn/text-base/build.properties.svn-base:antlr.jar=antlr-3.2.jar
with that control M at the end
I thought that would happen only in Windows...
quotemstr
quicksilver: json.el is in 23.
quicksilver
quotemstr: *nod*
stepnem
farciarz84: http://www.emacswiki.org/emacs/PythonProgrammingInEmacs there's also about ipython
quotemstr
Parsing it wouldn't have been hard though. A little state machine would have sufficed.
quicksilver
agreed. parsing is not hard.
jatt
C-u C-x = says:
character: RET (13, #o15, #xd)
quotemstr
(Though because elisp lacks TAG and GOBODY, it's harder than it needs to be.)
         

jatt
why do I get
why do I get ^M then?
quotemstr
ret *is* ^M
farciarz84
kensanata: I'm following an adivce
jatt
on linux?
quotemstr
Everywhere.
quicksilver
jatt: if I remember correctly, jar files contain text files which are normally full of ^M in their manifests or whatever
jatt
I do get ^M only when I redirect to a file from the shel
quotemstr
Emacs just translates that into \n if the buffer is set up for that kind of line ending.
jatt
shell
quotemstr
Oh.
Reading your scrollback -- maybe the origin files just have ^M in them.
jatt
I see
so somehow when the extension is .log, emacs uses that kind of line ending
my .java files are shown without ^Ms.
quotemstr
You can do a search and replace, or C-x RET r
bpalmer
jatt: is the buffer in DOS mode?
quotemstr: jar files are just .zip + MANIFEST files
quotemstr
jatt: emacs tries to autodetect certain line ending combinations. If you take lines out of their original context using grep, you might confuse it enough to just give up and display the raw ^M
jatt
I don't see if it's in DOS mode, it's in Fundamental mode now. I will rename the file and open it again.
ivan4th
Hello. My emacs is constantly eating 10-90% CPU while viewing/editing Python buffers. I suspect ropemacs and/or flymake, but I'm not sure. Is there any easy way to profile the system or interrupt emacs immediatelly and see the lisp backtrace? debug-on-quit isn't of much help
jatt
quotemstr: that makes sense
quotemstr
jatt: It's a different kind of mode; it would appear on the left of the modeline.
bpalmer
jatt: the major mode would be java, but you'd see it's in a DOS encoding by DOS being present in the modeline (or check with C-h v buffer-file-coding-system RET)
quotemstr
ivan-kanis: strace?
stepnem
ivan4th: ^
jatt
buffer-file-coding-system is a variable defined in `C source code'.
Its value is undecided-unix
ohhhh
quotemstr
ivan-kanis: timer-list ?
jatt
Local in buffer antlr.log; global value is utf-8-unix
stepnem
quotemstr: wake up
quotemstr
stepnem: ?
stepnem
quotemstr: it's ivan4th who's asking
ivan4th
quotemstr: strace is too low-level. As of timer-list, thanks, will look at that
kensanata
quotemstr: Your nick completion seems to be off. :)
jatt
so why it's "undecided-unix"? If a redirected using bash from linux
quotemstr
Ah, heh. :-)
jatt: because it tried to figure out the encoding and gave up.
bpalmer
a total quitter
jatt
I see
bpalmer
did we give up when the Germans bombed Pearl Harbor?
stepnem
o_O
jatt
Somehow this should have changed in the development version of emacs because I noticed this just now and older versions had no ^Ms in it.
quotemstr
jatt: with -Q?
jatt
no I haven't tested with -Q
dapple
how to use emacs for java development?
karljam
about shell-command... how do I quiet the output in emacs?
jatt
with jdee
bpalmer
karljam: quiet how?
quotemstr
bpalmer: Hell no!
farciarz84
I've install everything like in tutorial but I don't know how to use ipython now, is there some magic shortcut that activate it or?
ephcon
dapple: this may be worth checking out <http://jdee.sourceforge.net/>
dapple
thanks.
jatt
however for web development with java emacs need a lot of work, but for pure java development jdee is the best tool I know
karljam
bpalmer: how to run a command without getting its output in my minibuffer
dapple
actually I only need code-complete function in java development
bpalmer
karljam: hmm, normally people like that; you can either execute it asynchronously (by sticking & at the end); or redirect its output to /dev/null (NUL on dos/windows)
karljam
bpalmer: where in (shell command "say SPARTA") would & go?
*shell-command
bpalmer
(shell-command "say SPARTA &")
which gets it out of the minibuffer, but into another buffer
dapple
why are someone using emacs for web-brower?
kensanata
dapple: hack value.
karljam
amen
mnemonikk
dapple: also, it makes sense for reading documentation.
dapple
reading documents?
pdf is better
karljam
dapple: still getting minibuffer verbosity
kensanata
That's a pretty broad and sweeping statement, dapple
karljam
dapple: (shell-command (concat "afplay " data-directory "../slaa/sounds/" filename " &"))
quotemstr
(Action) pipes Duran Duran lyrics into say
mnemonikk
dapple: sometimes you only get html. of course, info files are best. 8-)
kensanata
Hehe
quotemstr
dapple: PDF is good for prepress. Anything else is a hack.
dapple
maybe
jemarch
hm
kensanata
quotemstr: Well, in some cases there is value in right layout control, I guess. But enforced pagination and reflow problems are a pain.
bpalmer
reflow problems?
ivan4th
flymake makes timers for every buffer. there's so many of them that even if I redefine flymake-on-timer-event as an empty function emacs still takes 8-10% CPU. If I remove all flymake-on-timer-event references from timer-list CPU usage goes down to 0%. Is there any cure for this?...
dapple
image-mode is not well enough.
Nobody can draw a complex picture with image-mode
kensanata
bpalmer: You can't change the height to width ratio, ie. you can't read it in a slim column of text.
At least I can't.
dapple
once I try to draw uml with emacs, but failed
karljam
bpalmer: any ideas why my minibuffer is still cluttered after using & ?
bpalmer
karljam: oh, hm. I do get some output in the minibuffer, but it's different.
karljam: try the > /dev/null solution, then
karljam
cool
lich
emacswiki down?
quotemstr
,g downforeveryoneorjustforme
fsbot
[google] http://theanswersquad.com/%3Fp%3D324
http://www.davidnaylor.co.uk/gmail-down-google-mail-problems.html
quotemstr
Ah, it's downforeveryoneorjustme
lich
What utilities does doc-view use buy default when viewing a pdf? getting errors about png or pdf tools unavailable..
jatt
uml s*cks
fledermaus
UML socks?
jatt
yes
fledermaus
madness!
bpalmer
Sounds warm
quotemstr
bpalmer: The heat comes from the decay of bullsh*t.
cvandusen
I tried to use a UML diagram to teach my daughter how to put on socks. The ingrate laughed in my face!
kensanata
lich: Use C-h f doc-view RET and click on the source code link. Then search the code for defvar.*program
defcustom.*program
I get gs dvipdfm dvipdf ps2pdf pdftotext ...
quotemstr
kensanata: It took me a second to realize you weren't just mashing your keyboard.
Hrm.
I don't appear to have that library on Emacs 22.
banister`gym
hey guys how do i get M-k to delete an entire line (instead of a paragraph) ?
dim
try C-S-DEL
jemarch
M-k kills sentences by default.
pgas
(global-set-key (kbd "M-k") 'kill-whole-line)
kensanata
banister`gym: Why not use C-k instead?
banister`gym
kensanata: cos c-k only kills from point to the end of the line
kensanata: i want to be able to kill the whole line (without having to move point first)
pgas: thanks
hanDerPeder
it seems everytime i open a file flyspell-mode gets enabled, i've tried setting flyspell-mode 0 in my .emacs, but it still starts. It must be enabled somewhere else in my configuration. How can I figure out where?
kensanata
hanDerPeder: Search for flyspell-mode?
dim
banister`gym: that's C-S-DEL
pgas
hanDerPeder: that's not the default behaviour, so you might want to search what enables it
jordanb
I like it that the news media are now going on 3 days of coverage of obama's medical checkup.
banister`gym
hmm
where is my .emacs on windows? :/
kensanata
hanDerPeder: Worst case: Try with emacs -Q, then with emacs -q, then with half your .emacs commented, and keep commenting and uncommenting halves until you narrow it down. :(
banister`gym: Just C-x C-f ~/.emacs and you get the right thing.
pgas
,windowsdotemacs
fsbot
I think WindowsDotEmacs is at http://www.emacswiki.org/cgi-bin/wiki.pl?WindowsDotEmacs
kensanata
banister`gym: But for me personally, I set a HOME variable to control it.
hanDerPeder
kensanata: isnt there anyway to override it so it doesn't have to come to that?
kensanata
hanDerPeder: Well, what I've given you is the generic advice on how to figure out where non-standard behaviour comes from. :(
hanDerPeder
shouldn't I be able to just have (flyspell-mode 0) as the last entry of my .emacs and then it would not start
pgas
it's a minor mode, so it's probably set in a hook of your modes
the hook is executed when you open a file
banister`gym
how do i eval a line again?
hanDerPeder
(add-hook 'c++-mode (lambda () (flyspell-mode 0))) i have this guy in place to kill flyspell, but it still loads
banister`gym
i want to exec a new line i just added to my init.el
quotemstr
After the terminating ), C-x C-e
kensanata
My guess is that a site-wide init file is adding it to text-mode-hook
banister`gym
thx
quotemstr
Let's abolish site-init.
hanDerPeder
sigh, guess i'll just wait untill I have time to hack on emacs for a few hours
btw, do you get a log buffer of the init process when doing emacs --dbug-init?
dim
mmm a custom `:final' function for a muse style would allow for separating the journal in files
banister`gym
pgas: do you like van morrison?
pgas
I don't know van morrison
hanDerPeder
hilarious
konr
Is it possible to create metadata beyond tags in org-mode? I wish I had lines like ** Matrix :category "sci-fi" and search/browse for categories
ivan-kanis
brx: v>
bpalmer
ha, bad omens in iraq: "At the end of the rally, doves were released as a symbol of peace. Unfortunately, they were set free just as fireworks burst in the sky, catching many birds in the cross-fire."
dim
is there an html parser (ala sax) in elisp?
kensanata
dim: Not that I know of. But there's xml.el for xhtml, I guess?
Then again, there's also nxhtml, which might contain better code.
dim
well in fact you know what
<div class="entry">
I only need to know about that, or about
I'm parsing the muse produced html, which is pretty stable
ugly hacking ahead
« prev 1 2 3 4 5 6 7 8 9 10 11 next »