logs archiveIRC Archive / Freenode / #emacs / 2010 / February / 21 / 1
laurus
The code seems to work
bojohan
the proper way to change line-move-visual temporarily is to simply let-bind it
laurus
Oh ok
Well there's something to e-mail Xah Lee about I suppose ;)
Thanks for telling me that!
bojohan
and (let (x y) (setq x a) (setq y b)) is better written (let ((x a) (y b)))
laurus
bojohan, yeah, though he did mention the two different forms earlier
bojohan
and (while (<= i n) ... (setq i (1+ i))) is better written `dotimes'
laurus
Hmm ok!
Wow where did you learn ELisp? ;)
bojohan
mostly from reading and writing code and following gnu.emacs.help
laurus
Cool bo
bojohan, sorry :)
Would you consider e-mailing Xah Lee with some of those comments?
         

bojohan
the emacs documentation is *very* good, but i never read through all of it.
laurus
:)
bojohan
even don knuth praised the elisp manual
laurus
Well, as Xah Lee siaid:
Both the elisp intro and the elisp manual are extremely well-written. They are the highest quality technical writing in the info tech industry.
;)
bojohan
he is completely right about *that*
:)
laurus
Hehehehe :P
Eek
The Ctrl + Alt +  doesn't work in GNOME
damd
then use C-M-b
laurus
damd, how did you know about that? It doesn't show up when I do Ctrl + h, f
Oh, eek
I'm stupid
Sorry!
Heh, I guess these are the pitfalls of the Xah pages
bojohan
C-A-backspace used to kill the x server
laurus
Yeah, hehe, C-A-l turns on the darn screensaver :P
bojohan
actually, insert-column-counter is completely broken. it counts characters and will do the wrong thing with multi-column chars like TAB.
laurus
bojohan, wow
You should tell Xahlee about that!
Hey, he's online
His nick here is xahlee
Why not msg him?
bojohan
he used to be in this channel until he was banned
laurus
Yeah, I know
Maybe they should consider unbanning him
metaperl
we want xah! we want xah!
bojohan
http://xahlee.org/emacs/_p/KickbanXahLeeFromEmacsChannel.htm
atjo
Has anyone tried compiling the lexbind branch of emacs in the last year or so?
That is, successfully?
snogglethorpe
i haven't tried since last fall
atjo
I'm getting Symbol's value as variable is void ((byte-compile-not-obsolete-var) in isearch.el
Or rather, when isearch.el is being compiled, I suppose the variable is part of the byte compiler
bojohan
are there still plans to merge lexbind in emacs 24?
         

atjo
snogglethorpe: are you maintaining it?
bojohan
fsvo maintaining
laurus
Gotta go, thanks for all your help bojohan and everyone else.
bojohan
bye
atjo
bojohan: have there been any plans more than people thinking it might be a good idea, but not before 24?
bojohan
http://lists.gnu.org/archive/html/emacs-devel/2009-06/msg00260.html
atjo
I wanted to check it out and play a bit
I try to do that from time to time, but I always hit funny new errors
bojohan
(chong is one of the two current maintainers)
atjo
Last time I got it to work was about a year ago, I think
bojohan
the guile-emacs project is slightly less than dead too
atjo
Well, I'll dig in and see if I can fix it this time
I don't believe in guile-emacs, but lexbind should be somewhat realistic :)
bojohan
snogglethorpe: are you still using arch?
snogglethorpe
bojohan: nope
bojohan: but my only attempt to merge the lexbind branch using bzr failed horribly....
approximately 1 billion conflicts
ned-
so im not sure if this is an #emacs question or a #python question but i'm using python-mode.el 5.1.0 (not the default python.el mode that comes with emacs), and when i C-c C-c (evaluate the buffer) all of emacs blocks (and an hour glass appears, making emacs completely unresponsive to anything) until python is done evaluating the code
has anyone encountered this? and if so, did they manage to rectify the situation
timotheus
When I use python-mode from python.el in Emacs 23, it "feels" like the Python interpreter is causing a lot of latency, causing typing response to be slow. Is it due to eldoc lookup? How can I change this? Should I use python-mode.el instead?
I do not have flymake turned on. Default Emacs 23 settings.
bob2
pretty sure eldoc's not on by default either
cluck
http://www.eugeneleeslover.com/VIDEOS/fire_control_computer_1.html
wtf
my emacsen may have just gained sentience and started hating me
that or i somehow toggled write ability
dmhouse
cluck: C-x C-q?
cluck
dmhouse: i know how to toggle it, i just don't remember having done anything remotely similar
$DEITY! bbdb + the internet just scared the crap out of me.
offby1
boo
cluck
i haven't had the pleasure to meet hellwolf yet but bbdb just pointed to me he's accessing from portugal (at least the exit node) and google just found and translated his site for me
hellwolf
cluck, hello..
cluck
i guess they weren't kidding when they said privacy is dead
hellwolf: hi (ou será que devo dizer olá?) :)
hellwolf
I don't really speak portuguesse, but it's not a problem for me you got my blog site, it's supposed to be public.
cluck
hellwolf: well, yeah, i get that much, it's just the concept you know, i'm not even trying to data mine and almost instantly get all this info, i don't even like to think what bad people that do data mine can get their hands on
in any case it's not like all this info wasn't available before, it just became easier to filter through it all, even the illusion of privacy is gone :)
offby1: if i didn't know better i'd think you'd helped write bbdb
offby1
^-.
(Action) cannot imagine why cluck would think that
dmhouse
Emacs is no longer horizontally scrolling when I press C-e on a line that's longer than my screen. What the hell have I done?
bpalmer
offby1: maybe it's that jwz mask you're wearing
ryomanolonger
try ,,auto-hscroll-mode
fsbot
ryomanolonger
try ,,dv auto-hscroll-mode
fsbot
Allow or disallow automatic scrolling windows horizontally.
If non-nil, windows are automatically scrolled horizontally to make
point visible.
You can customize this variable.
Defined in `/usr/share/emacs/23.1/lisp/frame.elc'.
Drakeson
does `w' not work on '.' and '..' in dired?
ryomanolonger
Drakeson: ouch
why would you want that?
Drakeson
for obvious reasons? to get the name of the current directory (prefix `w' with 0)
bojohan
the current directory is printed at the top of the buffer
or available by C-x C-f
ded
I want to do the equivalent of the following: (let* ((condition t) (f (if condition f-new f))) (f)) where f is a function. I.e. I want to alter the definition of f temporarily, just for the duration of the let binding. The closest I've got is this, using flet, but it has a circular reference to f if condition is nil: (flet ((f (&rest args) (apply (if condition 'f-new 'f) args))) (f 'arg)) How should I be doing this? Full example code at
http://www.pastebin.com/dcdaca4f
Drakeson
bojohan: still, getting the name of the current directory could be a bit easier.
is there a reason why `w' does not want to do that?
ryomanolonger
Drakeson: sorry, i was thinking of wdired
bojohan
the error does not come from `w' but from one the sub-subroutines it calls
ryomanolonger
but some unix implementations allow hardlinked dirs
bojohan
(dired-get-filename)
it does have a "NO-ERROR-IF-NOT-FILEP" argument, but the intermediate level in the call chain does not
Drakeson
maybe that cond term can be modified to behave differently when 'no-dir nil
but I am not sure if other functions are relying on dired-get-filename giving an error instead of doing something stupid. (e.g. what would D on '.' do)
`D' on '.' is actually invoking the error
bojohan
ded: use unwind-protect directly
quotemstr
Emacs? SFW?
Since fu*king goddamn when?
ded
bojohan: OK, I haven't used that before. So do you mean I do something like (fset 'f-copy 'f) and then (fset 'f 'f-new) in the body and then (fset 'f 'f-copy) afterwards in the unwind bit?
quotemstr
ded: Why are you doing that?
ded: LABELS.
,df labels
fsbot
labels is a Lisp macro in `cl-macs.el'.
(labels ((FUNC ARGLIST BODY...) ...) FORM...)
Make temporary function bindings.
This is like `flet', except the bindings are lexical instead of dynamic.
Unlike `flet', this macro is fully compliant with the Common Lisp standard.
bojohan
ded: or use a combination of let and flet,
(let ((f-original (symbol-function 'f)))
(flet ((f (&rest args) (apply (if condition 'f-new f-original) args)))
(f 1 2)))
quotemstr
Or hell, flet.
You should never have to use fset directly.
ded
bojohan, quotemstr: thanks, I think I'll use bojohan's let and flet version
ned-
is there anyway to prevent all of emacs from blocking when running C-c C-c in python-mode.el ?
phuff`
How do I unbind a keybinding in a major mode?
ESS binds _ to ->
Which is annoying
as all get out
I could just add a local binding to (insert '_') for _
But that seems like "the wrong way"
bojohan
bind it to nil
damd
you can bind it to nil
phuff`
Is that most idiomatic way?
Ah
Wait
there's local-unset-key
:)
damd
that's not the same thing though
phuff`
Oh really?
bojohan
it is the same thing as (local-set-key key nil)
e1f
legumbre_
quotemstr: just read a nytimes article which mentions Haystack
e1f
"After having read Douglas Hofstadter's Godel, Escher, Bach, a copy of which Ivins had tossed in the garbage can, the FBI concluded that Ivins had hidden either the message "FNY" or "PAT" in his letter. Of course, the FBI misunderstood GEB, interpreting a whimsical demonstration of Cantor's diagonal argument for a steganographic how-to. Even Hofstadter himself says that the supposed connection was a "red herring.""
offby1
.oO(Molly Ivins was a spy? Get out!!)
e1f
http://www.justice.gov/amerithrax/docs/amx-investigative-summary.pdf
legumbre
,spook
fsbot
Khaddafi data haven Adriatic Kh-11 counter intelligence ASIO Watergate
quotemstr
legumbre: Yep.
legumbre: I'm sorta pissed that he didn't mention my name, but otherwise it's a good article.
e1f
your name in the ny times?!
quotemstr
Not this time.
Just my partners. *Grr*.
Probably space constraints.
legumbre
you need an alias
e1f
perhaps you should change your name to something shorter
perhaps three letters
quotemstr
I swear, it's because nobody can pronounce it.
"Daniel.. Cola*cough* *spit* *coke* -- ee? *
On the other hand, Cohen did mention "engineers".
I have the coding strength of many ordinary men!
legumbre
haha
offby1
maybe it's because they can't spell "quotemstr". Ever think of that? Huh?
quotemstr
offby1: Damn my parents for naming me that.
OTOH, CNN has expressed some interest in covering us. We'll see how that works out.
(Action) returns to writing a shell script to build gcc from scratch
offby1
(Action) returns to his life-sized replica of the Eiffel Tower, made entirely out of toothpicks
bremner
(Action) return to writing a smalltalk compiler in strict POSIX SH, no bashishms!
quotemstr
bremner: #!/bin/sh \n /usr/bin/perl <<EOF ... :-)
offby1
quotemstr: seriously, the few times I've read Roger Cohen, I've been impressed.
(Not enough to add him to my list-o-feeds, but still)
quotemstr
Indeed; his analysis is usually penetrating.
His is on my list of OVER 9000 Iran-related blogs and columns that I read. :-P
damd
no wai
offby1
ya, rly
e1f
aldrich ames was arrested feb. 21, 1994
"Its first director was Captain Sir George Mansfield Smith-Cumming, who often dropped the Smith in routine communication. He typically signed correspondence with his initial C in green ink. This usage evolved as a code name, and has been adhered to by all subsequent directors of SIS when signing documents to retain anonymity."
http://en.wikipedia.org/wiki/MI6
offby1
You better tell the SIS to keep outta sight -- 'cause I know they been taking pictures of me in ultra-violet light.
quotemstr
Sorry; it's just infecting my mind.
e1f
if you wear the special glasses, they can't see you
quotemstr
One of my co-workers uses that language constantly.
"Icanhazhost.domain.tld" was a recent example..
madnificent
I'd like to use org-mode to use the result of (org-evaluate-time-range) in a table. But I don't know what buffer I should give that command so the result would appear in the table
nvm, I wasn't using the correct syntax :)
« prev 1 2 3 4 5 6 next »