logs archiveIRC Archive / Freenode / #emacs / 2009 / November / 29 / 1
boscop
emacs throws an error "Invalid read syntax: )" for: (global-set-key (kbd "C-c C-h") 'toggle-highlight-word-at-point)
why? is this symbol too long?
Paczesiowa
how can I force a window to always take 1/3 of frame space (mostly buffers with interpreters)?
shabble
Paczesiowa: split-window-(horiz|vert) take a size argument
Paczesiowa
shabble: but I usually use mode-specific binding to show interpreter window, and if it's not already visible, it splits screen in half
shabble
Paczesiowa: I'm not sure what interpreter you mean, do you know what the function or binding is that triggers it?
Paczesiowa
shabble: I mean ghci for haskell-mode, ocaml for tuareg etc.
Han
Anybody else notice when you open a file and you hit the arrowkeys the first keystroke is something you didn't want?
shabble
hrmm, I don't use either of those modes so I can't check easily. What function does C-h k <binding to trigger interpreter> give you?
keramida
Yes, I've seen this happen in `emacs -nw' sessions
         

Han
keramida, that's all I use.
keramida
Han: e.g. in new TeX-mode buffers I often get a spurious {\bf } inserted if I start editing by pressing <down>
I think this is related to the way emacs initializes the terminal state, but that's a wild-ish guess
Han
yes, and that bug is pretty persistnat.
boscop
emacs throws an error "Invalid read syntax: )" for: (global-set-key (kbd "C-c C-h") 'toggle-highlight-word-at-point)
why?
it's in my .emacs
shabble
boscop: ,,tdoe
fsbot
hmm, tdoe is [0] type M-x toggle-debug-on-error RET, reproduce the problem, then lisppaste the contents of the backtrace buffer.
[1] NOTE: you dont *have* to lisppaste, just contemplating the backtrace will often give you enlightenment
boscop
shabble: http://pastie.org/private/ncagh7mgqcbdjhjaw0y8qq
hm
it's weird. if I execute that statement with C-x C-e it doesn't complain at all, only when loading
cluck
boscop: maybe something to with load order?
evanmeagher
anyone want a wave invite?
boscop
evanmeagher: no, toggle-highlight-word-at-point is defined before the call to global-set-key
and that wouldn't by syntactic!
MrTorque
why does (- (beginning-of-line) (end-of-line)) not work?
boscop
MrTorque: because that moves the point
doesn't give a position
ieure
MrTorque, line-beginning-position, line-end-position.
Gnu_Raiz
Anyone use nnmaildir I can't get my mailbox to work with gnus.
MrTorque
boscop: i thought that would be move-beginning-of-line.
ieure: thanks.
Gnu_Raiz
If you want details look in the emacs.help newsgroup. Gnus can't find my maildir and emacs wiki is very limited on the subject.
boscop
MrTorque: both
what else could be the reason?
http://pastie.org/private/uiaacqjsmvxdnsnoa4oa
the error occurs at the last line
o.O wtf now the exact same error seems to appear somewhere else in .emacs
on a totally unrelated line
legumbre
boscop: unbalanced parens?
boscop
legumbre: no
they are balanced
wouldn't it be a different error anyway with missing ")"?
not "(invalid-read-syntax ")")"
ah I found the reason
a ) too much
I forgot too comment that out with a function last tim
e
kiba
hello
I accidently temporary binded C-p to a command
         

ieure
I have a method that sets my frame to the size and position I like it in. It works fine if I run it after Emacs has started up, but if it runs from .emacs, it goes to the wrong place. Whats up with that?
kiba
and I don't know how to get rid of the binding
ieure
kiba, (define-key (current-global-map) "\C-p" 'previous-line)
SpinachHead
Hi, I am trying to load in .emacs the google go mode but I get this error : Symbol's value as variable is void: 'load-path I assume it is not finding the .el file but I don't know why
kiba
thanks
hmm
(Action) wonders how to copy emacs command
err
emacs minibuffer
boscop
SpinachHead: line?
SpinachHead
from a tutorial I used this (add-to-list load-path /usr/share/emacs/22.2/lisp go-mode-load.el t)
(require go-mode-load)
uffiole
hi, pls how to use same colors as in konsole?
chpln
SpinachHead: '' is not legal. Use an apostrophe instead.
kiba
does anybody know how to copy a line from the minibuffer?
google isn't getting much of anything for me
kodein
like you do ordinarily.
kiba
how does one jump to minibuffer then?
never mind
I should google that
kodein
oh, you want to access the *Messages* ?
C-x b *Messages* <ret>
chpln
SpinachHead: And the same for the double-quotes, of course.
SpinachHead
with single apostrophe's I still get the same error. You mean 'load-path 'PATH .el' t) ?
boscop
kiba: click in it
then it will open in a buffer
then you can copy
SpinachHead: don't add the .el file to the path you add to load-path
only the folder
it is in
ieure
Hmm. I guess theres a bug; x-display-pixel-height / x-display-pixel-width return zero from .emacs, so I cant calculate the position correctly.
kiba
nvm
ieure
That really sucks.
SpinachHead
still won't work. I guess the tutorial is wrong...
chpln
SpinachHead: (add-to-list 'load-path "/path/to/dir/" t) (require 'go-mode-load)
kiba
yo
how do I use a variable like this?
ericP
can't quit emacs -- seeing: require: Recursive load: "/usr/share/emacs/23.1.50/lisp/net/tramp.elc", "/usr/share/emacs/23.1.50/lisp/net/tramp-cmds.elc", "/usr/share/emacs/23.1.50/lisp/net/tramp.elc", "/usr/share/emacs/23.1.50/lisp/net/tramp-cmds.elc", "/usr/share/emacs/23.1.50/lisp/net/tramp.elc", "/usr/share/emacs/23.1.50/lisp/net/tramp-cmds.elc", "/usr/share/emacs/23.1.50/lisp/net/tramp.elc", "/usr/share/emacs/23.1.50/lisp/net/tramp-cmds.elc", "/usr/share/emacs
kiba
(defvar *pastie-last-url* ""
"The last url pasted.")
I am trying to get information from pastie-last-url
so I can paste the url on erc chat client
jimi_hendrix
slime question: its C-c C-c to tell slime to compile this buffer right
ryoma
why did google name it go? so that you are forced to say "google" in searches?
(Action) leaves aside the koan-like question of why invent another stupid language
s/stupid/redundant/g
SpinachHead
I still can't get the go .el file to work
kodein
"Go Google!"
ryoma
eh, i am losing ability to care about all languages like that
kiba
yo
kodein
I only really care for erlang out of them
kiba
does anybody know how to retrive stuff from (devar *pastie-last-url* "" "The Last url pasted.")?
ryoma
c-h v
kiba
I am trying to write a function which allow me to paste a link from my last pastie
oh thank you
hmm
BrianRice-mb
quick question: what would be the simplest way to highlight a buffer at a given point for debugging purposes of elisp?
ericP
so, anyone got a theory on how i can quit my emacs despite a recursive load dependency between tramp and tramp-cmd?
BrianRice-mb
ow, that sounds unpleasant
shabble
kill -9? ;p
ryoma
is that because provide is after require
?
teedex
I want to push 3 lines of text to the right by 3 tabs, how can i do that, is there regular key binding
ieure
teedex, Mark the lines, C-3 C-x TAB
I dont know what your tab width is, but just pass the width you want as a prefix to C-x TAB
Or a negative argument to move the lines left.
ericP, Maybe you could (unload-feature 'tramp) ?
ericP
oh, cool. would have guessed C-x r t C-q TAV C-q TAV C-q TAV
ieure, oh, i wish i'd tried that
ieure
ericP, You can probably do it with the rectangle commands, too, but I dont know how those work offhand.
ericP
xkilled it, and fortunately, i got all my buffer context back
shabble
the CUA rectangle commands are really quite ncie
ericP
ieure, i learned the rect cmds. use them for everything now
ieure
Hm. Interesting that CUA saves the rect, but plain yank does not work. C-x r y does, as does cua-paste.
kiba
hello
Symbol's function definition is void
what does that mean?
it contains nothing?
it is for pastie-last-url
ieure
kiba, pastie-last-url is probably a variable, not a function.
kiba
then how do I get it?
ieure
Get what?
Oh, its value? It evaluates to it.
kiba
http://pastie.org/private/jhxycd8fbgta4no2s3aw8w
oh
ehehehehe
I should have read the pastie.el more carefully
uffiole
bye
kiba
(Action) is a happy happy
nothingHappens
what is the deal with that thing where tramp-mode doesn't see a new directory? driving me crazy
any way to force tramp to re-read the contents of a directory, in order that it stop obstinately denying the existence of a subdirectory I just created?
restarting emacs has been tried, multiple times...
aartist
My PC is running little slow, what is the effect of degragment?
MisterN
aartist: use artist-mode *scnr*
aartist
, recentchanges
fsbot
hmm, RecentChanges is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?RecentChanges
[1] at http://www.etrumeus.com/ferment/RecentChanges,
[2] at http://www.gnufans.net/fsedu.pl?RecentChanges,
[3] at http://www.emacswiki.org/cgi-bin/community/RecentChanges
aartist
MisterN: that's for general purpose, and not for emacs. Emacs runs fine.
consolers
Let's celebrate a meaningless milestone
ieure
According to NASA, a Space Shuttle mission costs $450, which just goes to show you theres no such thing as a free launch.
kiba
ieure: that's suprising cheap
MisterN
aartist: sorry i seriously could not resist the lame joke :)
ieure
kiba, The joke?
MisterN
ieure: this is weird on a number of levels.
kiba
450 per space shuttle launch
ieure
Er. $450m.
kiba
oh
government is alway damn expensive
boscop
how can I mkdir while find-file?
consolers
what is the Asia/XXX zoneinfo file for malaysia?
kiba
I heard the US postal service is paying workers to idle
consolers
the unrenderable gratuitious utf8 of ieure always hurts the eye and detracts from any funny
ieure
consolers, Its the future. Welcome to it.
MisterN
consolers:
(that's a unicode snowman JUST FOR YOU)
kiba
don't know if I see anything funnies
consolers
its the paunch line
aartist
pwd
MisterN
wrong windows, aartist
-s
aartist
MisterN: thank you. Usually people tell me the directory.
MisterN: what interesting things you have done with emacs?
MisterN
aartist: i have customized the indentation of c++-mode :D
that's about it.
aartist: played a bit with the modes. started using org-mode, of course
e1f
,t8 se en Jävla fitta
fsbot
:( Wrong type argument: characterp, "se -> English: no matching translation services found.
"
froog
e1f: eh
e1f
eh?
froog
well, do you know what it means and want to test the translator?
,t8 se en Hej
fsbot
Uh oh, Wrong type argument: characterp, "se -> English: no matching translation services found.
"
froog
,t8 sv en Hej
fsbot
whoops, Wrong type argument: characterp, "1 -
(/usr/bin/translate-bin:31529): libtranslate-WARNING **: unable to translate chunk using Google: unable to parse server data ..[Type ,more]
froog
,t8 sv en "Hej"
fsbot
Doh! Wrong type argument: characterp, "1 -
(/usr/bin/translate-bin:31628): libtranslate-WARNING **: unable to translate chunk using Google: unable to parse server data ..[Type ,more]
e1f
i wanted to verify the translation
to verify that it means what someone said what it means
froog
e1f: it does
quotemstr
#emacs.
The_Journey
hi how can I set emacs starting size and positon?
offby1
,df set-frame-size
« prev 1 2 3 4 5 6 next »