logs archiveIRC Archive / Freenode / #emacs / 2010 / May / 4 / 1
ToxicFrog
Argh
ECB has broken customize
and quit
qdot_
Hmmm. How do you unstage single lines in magit?
technomancy
qdot_: mark the line and hit U
(magit is awesome)
qdot_
YAY.
locklace
i've just been using git.el, maybe i'll try magit
TheFuturePast
i would like to know why M-Q don't indent my paragraphe
ToxicFrog
Trying to use customize with ecb has opened a bunch of empty *Customize* buffers in fundamental mode and also randomly dumped a configuration page into my .emacs :/
qdot_
locklace: Use the head of the gitorious repo, the 0.70 release is really really old
locklace
TheFuturePast: last i checked M-q does a fill, not an indent
         

qdot_
And the head of master has been really stable
locklace
qdot_: thanks
ToxicFrog
Anyone here have experience using customize + ecb?
TheFuturePast
locklace, thanks but it's re indent no,?
locklace
i'm still not sure how much of git i want to do in emacs vs the shell. but probably that depends on the quality of the emacs interface
TheFuturePast: try C-h k M-q
docgnome
locklace: check out magit
locklace
so i have this weird behaviour happening where the echo area is half-borked. specifically, partial command keystrokes like C-x don't echo after a pause like they should
i suspect this is due to emms, since iirc it started happening after i set it up
docgnome
locklace: it's super nice cause it doesn't try to hide git from you, but just provides a nice interface to all the git commands
locklace
another effect is in calc, where hitting something like "t ?" shows you options for the t command in the echo area. but in this borked state, the help appears and then disappears after 1 second
any ideas on how to fix this or confirmation that it's due to emms's modeline trickery appreciated
ToxicFrog
Hmm. I think I understand the problem more, at least
Choosin to customize barfs the customization buffer into the current buffer, then creates a new empty buffer with the right name and switches to it
So creating an empty buffer and then choosing customize, then switching back to it works
TheFuturePast
locklace, the M is the escape touch ?
locklace
TheFuturePast: you could use ESC, but usually Alt works
TheFuturePast
ok thanks
tuvwx
how do i have emacs always ensure an empty line (newline) at the end of the buffer?
(nano behavior)
shabble
,dv require-final-newline
fsbot
Whether to add a newline automatically at the end of the file.
A value of t means do this only when the file is about to be saved.
A value of `visit' means do this right after the file is visited.
A value of `visit-save' means do it at both of those times. ..[Type ,more]
tuvwx
,more
fsbot
Any other non-nil value means ask user whether to add a newline, when saving.
A value of nil means don't add newlines.
Certain major modes set this locally to the value obtained
from `mode-require-final-newline'.
You can customize this variable.
Defined in `/usr/share/emacs/23.1/lisp/files.elc'.
tuvwx
is there a graceful way to kill/restart an emacs --daemon? (or force to re-read .emacs)
r4yner
tuvwx: if you only added a couple lines to .emacs, you can go to the end of your sexp and type C-x C-e
         

shabble
or select them and M-x eval-region
tuvwx
great
johnw
kensanata!
rryouumaa
,df parse-time-digits
fsbot
Nooo! Symbol's function definition is void: parse-time-digits
rryouumaa
,(require 'parse-time)
fsbot
parse-time
rryouumaa
,df parse-time-digits
fsbot
Uh oh, Symbol's function definition is void: parse-time-digits
rryouumaa
magit is trying to call parse-time-digits, and it does not exist in my copy of parse-time.el, which is included in carbon emacs 22.
kensanata
johnw: Hello!
rryouumaa
does it exist in anybody's vanilla emacs 23 or 24?
grrrrrrrrr. bad magit!
,dv parse-time-digits
fsbot
not documented as a variable.
Defined in `/usr/share/emacs/23.1/lisp/calendar/parse-time.elc'.
rryouumaa
eh, i fixed it
i think
e1f
can western style democracy be considered a transformation of traditional tribal warfare into non-lethal tribal warfare?
technomancy
e1f: I don't know much about democracy, but I think that describes Emacs vs Vim pretty well
rryouumaa
corporate involvement is kind of different from tribal warfare imo
industrial control
jlf
in what way is western style democracy non-lethal?
rryouumaa
jlf raises a good point
e1f
the losers get to live
cvandusen
*seemingly* non-lethal
to the winner, that is
tuvwx
loosers representatives get to live, rather
e1f
in tribal warfare, typically, the losing side is massacred
i'm thinking africa, afghanistan, bosnia, etc.
jlf
,g iraq body count
fsbot
[google] http://www.iraqbodycount.org/database/
http://en.wikipedia.org/wiki/Iraq_Body_Count_project
jlf
letting the losers live - doing it wrong
e1f
iraq is not a democracy. it will never be
jlf
the body count is due to 'western style democracy' which you claim lets the losers live
e1f
not until a revolution happens
iraq wasn't about democarcy, it was about oil
it was marketed as democracy
jlf
and is of a piece with the rest of western style so-called democracy
yonkeltron
hmm
how do capture groups work in emacs?
regexps
i can't seem to get what i need with \( \)
rryouumaa
consider the effect of medical industries on sick people. that is democracy (corporate state version). dead is dead whether wars or not.
cvandusen
e1f jlf: That's what they'll say about Amnerika in the near future
given the Supreme Courts ruling about corporations as persons.
yonkeltron
,regex
fsbot
[->] I think regexp is [0] a regular expression. See the node Regexps in the Emacs manual.
[1] difficult to write. Use M-x re-builder in Emacs to do it interactively.,
[2] slow. Use (regexp-opt '("alex" "albino" "foo")) to create optimized regular expressions., ..[Type ,more]
yonkeltron
damn
eh?
i have a regex issue here
http://paste.lisp.org/+2473
dunno what the issue is
jlf
[0-9.]
yonkeltron
and i can use capture groups?
jlf
it's ok with me
yonkeltron
but that doesn't work
i'm trying to grab just the 24.7
out of time=24.7 ms
rryouumaa
upgrading from 22 to latest emacs.git has caused a font change. my .emacs and 22 use "-apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1" but the new version of emacs seems to use monaco instead. how come?
jlf
yonkeltron: \\([0-9]*\\.[0-9]+\\) looks right according to re-builder
yonkeltron
but it captures a ton of other sh*t
jlf: i just want the 24.7
so i want to include the time= and the ms there to be specific
jlf
yonkeltron: paste a snippet of text showing the regexp you're using and an undesired capture
technomancy
page breaks: I love them!
dave137
yonkeltron: have you heard of txt2regex?
yonkeltron
dave137: no
technomancy
I'm seriously considering starting a campaign to bring them back into style
yonkeltron
installing now
dave137: i can do it in other languages
dave137
yonkeltron: it is written in bash, and it allows you to answer a series of questions to build a regex in a number of different variants
yonkeltron
just new to elisp regexes
dave137
ah
jlf
yonkeltron: try ,,rx
fsbot
I heard rx is [0] a symbolic notation for regular expressions (C-h f rx RET).
[1] not part of XEmacs.,
[2] just what the doctor ordered
yonkeltron
jlf: it's ping output
dave137
yonkeltron: it gives perl, php, postres, python, sed, and vim... sadly no elisp
jlf
yonkeltron: paste the original text, your regexp, and the captured text
yonkeltron
sure
anaran
,re-builder
fsbot
[->] hmm, ReBuilder is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?ReBuilder
[1] M-x re-builder
yonkeltron
http://pastebin.com/YVn1d6Mf
i used it
that's where i've had issues
jlf
yonkeltron: it appears to be working fine. you just need to use ,,df match-string
fsbot
match-string is a compiled Lisp function in `subr.el'.
(match-string NUM &optional STRING)
Return string of text matched by last search.
NUM specifies which parenthesized expression in the last regexp.
Value is nil if NUMth pair didn't match, or there were less than NUM pairs. ..[Type ,more]
yonkeltron
i'm trying to make a regex so that i can do font-lock goodness
moljac024
any way to have a progress bar or some sort of indication of progress in dired when moving or copying large/multiple files?
legumbre_
let's do non-blocking io
jlf
oh you'd like that wouldn't you
rudybot: seen seangrove
rudybot
jlf: seangrove was seen joining in/on #scheme three days ago, and then seangrove was seen quitting in/on 70-36-146-156.dsl.dynamic.sonic.net three days ago, saying "Ping timeout: 260 seconds"
Ade
Emacs seems to indent with tabs by default, but when I backspace it changs the tabs too backspaces, and removes just one. How do I stop the conversion from tabs to spaces when I backspace?
jlf
,tabs
fsbot
tabs is, like, [0] check indent-tabs-mode
[1] Also ask me about whitespace,
[2] Also ask me about notabs,
[3] Try C-q TAB to force a literal tab,
[4] M-x (un)tabify,
[5] see `tab-stop-list' and `tab-width',
[6] M-x edit-tab-stops,
[7] if trying to change indenting in C, java etc, try "IndentingC", ..[Type ,more]
jlf
erm
r4yner
Ade: by default i think emacs indents with a combination of tabs and spaces
jlf
the function that's doing that is backward-delete-char-untabify. if you want to keep using tabs you can rebind BS to something else
r4yner
Ade: it's pretty distrssing for anyone using any other editor. i recommedn (setq-default indent-tabs-mode nil)
jlf
ob ,,tabsareevil
fsbot
I think tabsareevil is see http://emacswiki.org/wiki/TabsAreEvil
Ade
r4yner: Would that not force all users to use my visual indentation level? If so, that's a bit draconic isn't it?
rryouumaa
(Action) gets popcorn
fledermaus
better than them seeing the wrong indentation entirely
r4yner
Ade: they would still have to have tabs appear at the same width as you're having them displayed
Ade
r4yner: My main issue is that when I BACKSPACE, I want to remove all indenting, not just go back one space (unless the previous character isn't used for indenting)
fledermaus
whic his what will happen if you use tabs
Ade
r4yner: They wouldn't actually, why would they?
r4yner
Ade: to keep text fitting inside a certain column width, for example
fledermaus
r4yner: maybe we should just let Ade make the mistake and learn from it
jlf
,tabsareawesome
fsbot
Tuesday is the Wednesday of the rest of your life.
Ade
r4yner: I don't follow. I use a tab width of 4, the next guy uses 8. As long as all use tabs for indentation, everything magically lines up properly.
jlf
i think the conclusion is obvious
fledermaus
it seems to be the only way people ever learn this one
r4yner
fledermaus: maybe you're right
Ade
fledermaus: I've read the standard tabs vs spaces debate. Even the argument handed out often in this channel ends with telling you how to use smart tabs.
fledermaus
er, no
nobody sensible suggests "smart" tabs
that entry was added to that page by people with more bandwidth than sense.
such is the nature of wikis
Ade
What's wrong with smart tabs. Tabs for indentation, spaces for alignment. Just makes sense. One guy can use a tab width of 4, the next of 8, still all works in the end and all lines up properly.
rryouumaa
Ade: you can put in the file how others should view the file. for emacs, at least.
fledermaus
ugh.
ah, that's better
Ade
rryouumaa: Can, but why would a person sensibly?
rryouumaa
never mind, my mistake
r4yner
Ade: if you're using tabs at width 4, and someone else is using them at width 8, suddenly linebreak choices become very different between the two coders
rgr
tabs are the invention of the devil.
jlf
,rgr++
fsbot
Noted, jlf. One lispy-point for rgr!
rgr
and many editors dont process them the same. experience taught me. I too thought it was a good idea when my machine had 4k of ram etc etc....
Ade
r4yner: Ya, but who is limited to 80 columns these days unless they're working on old IBM mainframes. So line breaks may not be in the right place, but EVERYTHING ELSE is :) Whereas spaces makes line breaks reasonable, and forces everyone into a possible indentation level that is hard for them to read.
jlf
oh btw, fledermaus, do you know the backstory of why karma recording is disabled in erbot?
fledermaus
I'm not ure it was ever actually implemented
+s
« prev 1 2 3 4 5 6 7 8 9 10 next »