logs archiveIRC Archive / Freenode / #emacs / 2010 / February / 20 / 1
ngirard
Okay, meanwhile I move to my 2nd question. I tried using isearch-forward-regexp to test my regexp.
as long as I type graphics{ I get the result string highlighted, but then, I cannot find the appropriate way of specifying the newline
I tried \n, \\n, \\\n
didn't work
cvandusen
,df query-replace-regexp
fsbot
query-replace-regexp is an interactive compiled Lisp function in
`replace.el'.
It is bound to C-M-%, <menu-bar> <edit> <replace>
<query-replace-regexp>.
(query-replace-regexp REGEXP TO-STRING &optional DELIMITED START END)
Replace some things after point matching REGEXP with TO-STRING. ..[Type ,more]
cvandusen
maybe?
ngirard
I browsed the manual, and unless i'm mistaken
newline is to be specified with \n
quotemstr
Or \\n
ngirard
Hi cvandusen. Yes, this function works if you're sure about your regexp, but if not it's not the most convenient one, because it's not interactive
I'm pretty sure there's one interactive version
quotemstr
Typing make -j32 feels *amazing*
e1f
you want rebuilder
re-builder rather
it's the interactive one
         

ngirard
Hi quotemstr. query-replace-regexp doesn't recognize my newline if I write it like \\n
neither with \n, nor with \\n
\\\n
heck
legumbre
ngirard: you can use C-M-s, test your regexp, then without leaving isearch-forward-regexp, use C-M-% which will call query-replace-regexp with the regex you just entered.
e1f
c-q c-m probably works for newline
why not use re-builder
legumbre
sometimes re-builder is an overkill
ngirard
aaah thanks legumbre, C-M-s is the one ! But why do none of these syntax work ? (\n, \\n, \\\n) ? Why is it so complicated ? it's not as if regular expression fits the human brain perfectly
quotemstr
This is going to be fun. "Persian is written in a slightly modified form of Arabic alphabet. This alphabet, written from right to left, has a total of thirty-two characters, all but one of which represents consonants. The Arabic alphabet does not normally represent the "short" vowels a, e, and o; only the long vowels รข, i, and u and the glides ay and aw have graphical representations. The alphabet is a "script" in that most lette
must be connected to one another. There are no separate letter forms corresponding to Latin alphabet printing. All letters have at least two forms and at most four."
ngirard
Hi e1f. c-q c-m also fails to match my newline
quotemstr
ngirard: Try C-j
ngirard
yes, this works quotemstr. Thanks. Too bad It doesn't seem to be indicated in the regexp section of the manual
quotemstr
Patches welcome.
disturb`
anyone knows what happened to ezbl ?
quotemstr
ngirard: IMHO, RET in isearch really should do what C-j does.
legumbre
ngirard: (info "(emacs) Special Isearch")
ngirard
Special Input for Incremental Search
-------------------------------------------
To search for a newline character, type `C-j'.
Okay. My bad
I think I've been asking here twice for this problem. Apologies, this time i'll write it down for good
e1f, legumbre, quotemstr : thanks very much for your help !
legumbre
ngirard: you are welcome!
ngirard
no, no, I insist :)
bremner
any ideas why in auctex mode C-u C-c ; fails while C-u M-x comment-region works? The former says "Beginning of Buffer" without raising an error
(all in emacs 23.something, auctex 11.85, I think)
doh! C-c ; is not bound to comment region
quotemstr
Interesting.
No real plurals either -- just specific/unspecified nouns.
This is really a bizarre language.
jlf
bremner: M-; (comment-dwim) should comment the region
sepult
,last
         

fsbot
<control characters>
sepult
oh my
ngirard
fsbot: are you insane ?
fsbot
[Too many DB matches] [google] http://www.emacswiki.org/emacs/SachaChua
http://www.emacswiki.org/alex-mob/Books
jlf
,rr
fsbot
(Action) points the gnu and jlf trembles... *CLICK*
sepult
,rq
fsbot
oops, error. Wrong number of arguments: (lambda (str) (unless (stringp str) (setq str (format "%s" str))) (regexp-quote str)), 0
sepult
,rs
fsbot
BEEEP: Syntax: , s/foo.../bar in TERM [NUMBER or ALL]
rogue_
nice
anxt`
i have sold large amounts of my base, and it was purchased by emacs
i guess you could say ...
i would like to get a good workflow going with maybe tramp and svn
i want to edit remote config files, which i keep stahed in svn
technomancy
offby1: do you have an URL you'd like your name associated with on the Seajure site?
timotheus
I have a problem. If I put the following in a text file, and then eval-region on it, I get an error: (require yasnippet) eval-region: Symbol's value as variable is void: yasnippet
But yasnippet is in the load-path, and if I do M-: (require 'yasnippet) it works!
tomoyuki28jp
How can I set the default 'From:' value for C-xm (compose-mail)? I use mew.
karme
timotheus: is the difference between and ' is an accident? do you see the difference?
~/ is //
timotheus
stupid HTML
karme: thank you, should have been obvious
karme
timotheus: depends on the font ;-)
bremner
jlf: thanks
timotheus
karme: well, that, and emacs not high-lighting the identifier
ak70
Hi, guys. I heard that js2-mode is in CVS(or brz), but I can start it with M-x js2-mode. Is it really merged?
jlf
bremner: yeah comment-dwim is great :)
e1f
(Action) waits for the /. story 'researchers say women secretly desire emacs users'
perhaps even bearded emacs users!
who wear plaid!
bremner
bearded women secretly desire emacs users in plaid
e1f
(Action) edges away from bremner
bremner
(Action) looks longingly at his "e1f in plaid" poster
jlf
,yow
fsbot
Yow! Are you the self-frying president?
legumbre
what's with all the plaid?
sepult
,wazzup
fsbot
Why must you respond so briefly?
spcshpopr8r
,...
fsbot
[In the distance, you hear a dog bark]
rudybot_
Woof.
spcshpopr8r
,org
fsbot
[->] I think org-mode is [0] Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing project planning with a fast and effective plain-text system
[1] new official site: http://orgmode.org/,
[2] #org-mode,
[3] http://www.emacswiki.org/cgi-bin/wiki/OrgMode, ..[Type ,more]
spcshpopr8r
,math
fsbot
math -- [0] "Anyone who cannot cope with mathematics is not fully human. At best he is a tolerable subhuman who has learned to wear shoes, bathe and not make messes in the house." -- Lazarus Long ..[Type ,more]
spcshpopr8r
,more
fsbot
[1] Mathematicians are like Frenchmen: whatever you say to them they translate into their own language and forthwith it is something entirely different. (Johann Wolfgang von Goethe),
[2] Philosophy is a game with objectives and no rules. Mathematics is a game with rules and no objectives.
spcshpopr8r
,bs
fsbot
From memory, BS is [0] short for Bullsh*t
[1] at http://www.emacswiki.org/cgi-bin/wiki.pl?bs,
[2] see also ,backspace
spcshpopr8r
,backspace
fsbot
spcshpopr8r: backspace -- [0] to change C-h and backspace confusion, use M-x normal-erase-is-backspace-mode
[1] use 'stty erase C-v BS' before starting emacs (xemacs) if Backspace sends C-h,
[2] Turn off "delete is DEL" in xterm,
[3] If you're using an old version of GNU "screen", try a newer one, ..[Type ,more]
spcshpopr8r
ah fu*k
qed
hello all
scb
Anyone knows how to open attachments in Wanderlust message mode.
e1f
m-x describe-mode
there should be a summary of all keys
since when did mathirck become l337
kwertii
Is there an easy/standard way to dump all non-nil hooks?
specksynder
kwertii: I suppose you could write a macro that changes the copied list of hooks from ref. manual and dump if non-nil
kwertii
there's no internal hook list?
(I checked the manual, there doesn't seem to be one)
specksynder
just thinking out aloud though - why would there be a need for one? Its enough to run a hook when needed, but thats all there is a need for right?
kwertii
yeah, I guess they're just conventionalized
basically, something is calling delete-trailing-whitespace on save, and I don't know what. it's not in before-save-hook. this is a problem because clojure-mode thinks commas are whitespace, even in string literals
specksynder
you could overwrite the defun of delete-trailing-whitespace
and see what that gives you - I suppose you could get a dump of call stack when this function is called
kwertii
ahh... interesting idea!
specksynder
Cool - it'd be nice if you could share what you find!
kwertii
trying now..
specksynder: calling (debug-on-entry 'delete-trailing-whitespace) indicates that it is being called by untabify (which is not something I ever put in my .emacs, so it must be from the mode)
upon further investigation, it appears to be added (globally) by emacs-rails to write-file-hooks. that's annoying.
erikc
anyone use viper on osx? do you get flickering cursor when you press backspace in insert mode? (if you hold backspace, the cursor doesnt move at all, just flickers in place)
timotheus
How do I list which libraries/features are loaded in emacs?
kwertii
timotheus: that's pretty vague. try M-x customize to start
timotheus
To restate. If I do M-x load-library apple how can I then know that apple is loaded, assuming that apple.el contains (provide 'apple)
I am thinking in terms of debugging, not customization.
legumbre
(featurep 'apple)
e1f
firefox has never crashed on me. the latest 3.5.8 has just crashed twice
i am in shock
legumbre
anyway, sleep
timotheus
legumbre: great; now is there a way to just list all features loaded? Perhaps this information is in a variable?
(so that I can read it; do not need to use it in a program)
features
that was simple
(Action) now has Emacs 23 working with Python auto-completion via auto-complete.el and ROPE :-)
aartist
pwd
e1f
/home/ashish/pr0n/emacs/
(Action) never tires of that joke
specksynder
e1f: whats with the ashish?
e1f
if you do a whois on his nick...
specksynder
kwertii: Ah, so you found who was calling the hook! pretty cool!
kwertii
specksynder: yep, thanks for the suggestion. I couldn't have done it without you
specksynder
kwertii: thanks! What are you working on in clojure?
kwertii
specksynder: a Compojure web interface to an automated stock trading system I'm working on
specksynder
kwertii: cool
,fortune
fsbot
If your life was a horse, you'd have to shoot it.
e1f
,flame fsbot
fsbot
*** Eval error *** Wrong type argument: hackerp, fsbot
specksynder
,abuse fsbot
fsbot
fsbot: may your next reservation be at Hotel California
specksynder
rudybot_: quote
rudybot_
specksynder: Let's fight city hall.
aartist
I keep getting the message, 'init file not fully loaded', while customizing any thing.
parolang
Hmm.
You know...if you pronounce M-x weird, it sort of sounds like "emacs" :D
"em ex" Try it.
e1f
parolang: http://www.ee.ryerson.ca/~elf/emacs/I-heart-M-x.gif
waaay ahead of you
gif is dated jun 21, 2008
parolang
:)
e1f
it was suggested changing the heart to a red gnu
parolang
It's still a neat idea, even if I didn't come up with it first :)
Yeah...too bad I can't find any decent GNU shirts :)
e1f
http://www.ee.ryerson.ca/~elf/emacs/I-gnu-m-x.png
the happy hacker green gnu t-shirt is pretty cool
i dunno if it's still in stock
parolang
The I-gnu-m-x is nice.
But...I'd want a shirt that doesn't necessarily make people WTF.
e1f
yeah, it's very cryptic
parolang
But would still be recognizable to anyone who knows what it means.
Like a shirt with just a picture of a gnu on it would be neat. It's just a shirt with an animal on it.
e1f
yeah, larsi did the gnus t-shirts for wach release of gnus
i have all of them iirc
i should photograph them
parolang
http://shop.fsf.org/product/Gnu_Head_shirt/ <-- this would be nice, but I don't look good in this color.
I don't know if anyone really does :)
hmm...didn't think about gnus shirts
e1f
it's a girls colour of some colour-blind hacker
or
parolang
heh :)
e1f
this has the shirt i was talking about http://shop.fsf.org/product/happy-hacking-shirt/
it has my gnu on the back
« prev 1 2 3 4 5 next »