logs archiveIRC Archive / Freenode / #emacs / 2010 / March / 3 / 1
ysph
is ,UndoTree useful?
,UndoTree
fsbot
[google] http://www.emacswiki.org/emacs/UndoTreeScreenshot
http://www.emacswiki.org/emacs/CategoryUndo
hekevintran
how do i make linum-mode default for all buffers?
jeremyw
Let's say I wanted to debug python.el as my current Emacs build is using it. How might one do that? I must be doing it wrong.
sword
hekevintran: ,,df global-linum-mode
fsbot
global-linum-mode is an interactive compiled Lisp function in
`linum.el'.
(global-linum-mode &optional ARG)
Toggle Linum mode in every possible buffer.
With prefix ARG, turn Global-Linum mode on if and only if ARG is positive.
Linum mode is enabled in all buffers where `linum-on' would do it. ..[Type ,more]
sva-
,more
fsbot
See `linum-mode' for more information on Linum mode.
sword
jeremyw: "debug" it? Is it not working?
         

jeremyw
sword: Well, I've never debugged emacs internals within emacs. I've opened python.el.gz and tried to step through but either I did something wrong or that wasn't right.
sword: I don't see a vanilla python.el in my install. ("./configure --with-ns && make && make install")
But emacs opened the python.el.gz just fine.
sword
So it's in python mode?
jeremyw
I've looked for documentation for emacs developers. I'll continue looking.
jlf
jeremyw: could be python.el.gz
jeremyw
sword: Yes. I found a bug in python mode and I'd like to submit a patch.
jlf: That's what I opened. I guess if that's the right file to open, I probably did something else wrong. ;)
jlf
oops, missed your earlier comment :)
jeremyw
No sweat. Such is irc.
jlf: So, if I want to step through python.el/python.el.gz as Emacs uses it, as in I invoke something in Python mode, I can just open it, start up edebug and go from there?
sva-
Hello everybody
Have a question about "case-sensitiveness" of buffer names
sword
jeremyw: oh, it wasn't clear where you were
sva-
Before (Emacs 22), I could C-x C-b *messages* successfully
stepnem
jeremyw: you have to instrument the functions you want to step through, e.g. using C-u C-M-x
sva-
Now, I need to do it with *Messages* (caps M) under Emacs 23
sword
Or if you are getting dropped into an error toggle-debug-on-error
sva-
Any idea which var would render the switch case insensitive
?
jeremyw
stepnem: Is this documented somewhere? I want to say I remember this idea of instrumentation but I've read and tried a few different things to no avail.
stepnem
jeremyw: sure, in edebug manual
sword
,edebug
fsbot
I think edebug is an awesome way to trace your errors. Read about it in the elisp manual, for which press C-x C-e after this: (Info-goto-node "(ELisp)Edebug")
jeremyw
stepnem: Probably a PEBCAK issue but after a few different attempts, I figured it was time to consult the professionals.
ysph
sva-: completion-ignore-case
         

jeremyw
Crap...so I was in the right location. Just didn't go in deep enough.
Thanks stepnem, sword and jlf.
stepnem
heh
jlf
hmm, the doc for window-size-fixed claims that emacs won't change the size of any window displaying the associated buffer "unless you explicitly change the size, or Emacs has no other choice," but it *does* change the size upon C-x +. does that seem reasonable?
jeremyw
I'll crank this patch out quick like now.
sva-
ysph: I already have (setq completion-ignore-case t)
jlf
i'd expect rebalance-windows to be constrained by window-size-fixed.
sword
,dv completion-ignore-case
fsbot
Non-nil means don't consider case significant in completion.
For file-name completion, `read-file-name-completion-ignore-case'
controls the behavior, rather than this variable.
For buffer name completion, `read-buffer-completion-ignore-case'
controls the behavior, rather than this variable.
ysph
there you have it
sva-
Yep, for long
But something changed between Emacs 22 and 23?
(I'm under Ubuntu)
sword
NEWS should say
C-h n and let the chan know
sva-
Did not know how to read the NEWS file. Thanks.
damd
!t8 ru en @04
!t9 ru en @04
hm...
jlf
try ,t8
damd
,t8 ru en @04
fsbot
rad
damd
,t8 en ru slave
fsbot
!;02O=A:89
stepnem
rudybot: t8 en ru slave
rudybot
stepnem: !;02O=A:89
sva-
sword: *** The variable read-buffer-completion-ignore-case overrides
completion-ignore-case for buffer name completion.
stepnem
heh
sva-
Should do it...
damd
stepnem: does @04 mean slave?
sva-
read-buffer-completion-ignore-case is a variable defined in `C source code'.
Its value is nil

Excellent!
damd
lol rads didn't quite enjoy this discussion
sword
sva-: cool
sva-
Thank you very much...
stepnem
damd: no, that's @01
damd
as in rab?
stepnem
yeah
damd
thanks
stepnem
(and "!;02O=A:89" actually means "Slavic"; I guess the bots' Russian is rather rusty)
damd
haha
sva-
Just another (stupid, maybe) question... It's the first time I'm using IRC, in fact. Trying right now with Circe. Tried to find some refcard, but miserably failed. Any help on an easy setup or tutorial?
jlf
tutorial at C-h t
,cheatsheets
fsbot
sword
,circe
fsbot
Circe is [0] a Client for IRC in Emacs at http://www.nongnu.org/circe/
[1] It aims to provide most features one would expect from an IRC client, with sane defaults to start from.,
[2] at http://www.emacswiki.org/cgi-bin/wiki.pl?Circe
bpalmer
tutorial for x?emacs , or for circe, or for irc?
damd
jlf: i think she/he is asking for a tutorial on circe/irc
sva-
No, just for IRC (Circe).
Not about Emacs...
sword
fsbot shall provide manna from the emacswikiheaven
Worship not the golden vi
sva-
I wonder, for example, or to get the name of the person I reply to automatically prefixing the answer, or things like that
quicksilver
I wonder why shell-command-to-string is defined using (with-current-buffer standard-output (call-process "osascript" nil t nil....
bpalmer
sva-: type the first few characters, and hit TAB (possibly a few times)
damd
sva-: you can start typing out a nickname and then hit "tab" to complete the nickname, but that's about it...
quicksilver
instead of simply (call-process "blah" nil standard-output nil
damd
sva-: i haven't used circe myself but in virtually every other irc client out there, this is the case
sva-
Don't wanna launch a fight. But as I'm ignorant about IRC, is Circe a right way to go?
stepnem
quicksilver: why do you wonder? It has to actually return the string
sva-
Should I look at others?
bpalmer
it's one way to go. There are a bazillion irc clients out there.
damd
sva-: i personally like rcirc, many people like erc, circe is on the uprise i think
stepnem
quicksilver: so it inserts the output into a throwaway buffer first
sva-
That's exactly the problem
bpalmer
circe's architecture is really nice, but it's not as widely used as erc or rirc
sva-
Same as it was for selecting Gnus among Rmail, VM, etc.
sword
sva-: try 'em all for your own tastes
bpalmer
they're all pretty similar.
fledermaus
or stop when you find one you like, whatever works for you
bpalmer
unlike, say, zenirc
fledermaus
zenirc is dead, isn't it?
damd
zen's dead baby... zen's dead.
bpalmer
that is not dead which eternal lies.
quicksilver
stepnem: yes, but why use 'with-current-buffer' when call process already accepts a buffer to use in its 3rd arg
fledermaus
like [lr]iece
quicksilver
stepnem: you can just pass standard-output in that 3rd arg instead.
sva-
I already read, yes, that there was at least: rcirc, circe, bitlbee, liece, riece, zenirc, erc

Though, difficult to test 'em all, as I'm sure I won't be aware of all the features they offer, or could offer, it rightly set up
bpalmer
what offers do you want , really?
features, rather
join a channel; chat.
stepnem
quicksilver: because it has to be an already existent buffer in `call-process'
fledermaus
[lr]iece and zenirc are pretty ancient.
sva-
I don't know exactly, but one that would, for example, better colorize different "threads" (or, authors, should I say?)
stepnem
quicksilver: and to return it to standard-output is different from returning it as a string
fledermaus
bitlbee is more of an IM gateway, it's not an irc client
stepnem
quicksilver: that w-c-b -> insert -> buffer-string trick is seen quite a lot in Elisp
sva-
Currently, all lines are black on white. Not easy to follow the discussions
bpalmer
that's pretty much the way I prefer to irc, so I don't follow; any proliferation of colors is likely to cause problems. (very minimal highlighting for particularly interesting people or people to avoid excepted)
quicksilver
stepnem: I'm testing it here. (with-output-to-string (call-process "ls" nil standard-output nil "-l"))
stepnem: works just as well and is quite a bit shorter than the version which explicitly uses with-current-buffer
sva-
and highlighting answers made to me?
fledermaus
my own nicj is highlighted
stepnem
quicksilver: hehe -- with-output-to-string actually uses with-current-buffer
fledermaus
so if people say my name it shows up.
nick
sva-
nice
will look in the vars I can customize
fledermaus
that's pretty standard, I'd be surprised if circe didn't have it.
sva-
Yes, I guess it does, maybe not by default, though
bpalmer
customize lui-highlight-keywords
sva-
thx
bpalmer
sva-
URL seems very interesting. Thx
For multiple channels, how do you handle reading on one, then on another, etc.
By simply switching with C-x o?
and C-x C-b
fledermaus
C-c C-SPC
will take you to the next "intersting" circe buffer
interesting
sva-
Can you get the ones having discussions going on be highlighted, or unburied?
or similar mechanisms so that you don't have to look at all of them?
quicksilver
stepnem: ah, ok.
fledermaus
they turn up in the mode line
sva-
That's the #z,#c,#la symbols for example?
fledermaus
yes
sva-
ok
quicksilver
stepnem: but still, using with-output-to-string alone makes for a shorter function that the definition which uses both with-output-to-string *and* with-current-buffer (as seen in simple.el)
sva-
When I spoke of tutorial, I meant such questions, you see my poor level for irc
in the modeline, do I see channels with unread stuff?
Meaning as long as I don't go to that channel, the names stays in the bottom?
fledermaus
I believe so
sva-
Just tested... Looks like yes
stepnem
quicksilver: yes, I don't understand why it uses both, either
sva-
Thanks to your couple of advice, I'm already much more autonomous now...
Thanks a lot, mates. Can't remember all of whom I just received help, but thanks to all
stepnem
quicksilver: ask RMS (he wrote the function) :P
ryomanolonger
this is probably a silly question, but is there (standard mostly consumer x86-based) hardware that works better with emacs than others? the only example i can think of is get a dual instead of a quad because emacs is mostly single-threaded.
fledermaus
get adual instead of a quad? what?
ryomanolonger
well, it's a stretch, but the idea would be that a dual would get you higher throughput for a single process
for the same price
bremner
that sounds right to me
get lots of memory
(Action) wonders if SSDs payoff for emacs
probably only if you care about start up time reading 1 meelion packages
ryomanolonger
i think the bottlenecks are certain operations in org-mode, rendering in w3m, and probably some operations in gnus
there might be some others
sECuRE
i can only speak for vim, but you dont have any hangs there anymore when writing the file or the .viminfo when using an ssd
ryomanolonger
ssd though is slick
karme
ryomanolonger: full ack regarding the bottlenecks
ryomanolonger
of course, ff, the kernel, disk encryption, radio, downloads, and any other processes could conceivably take up 3 processors
or rather, 4
bremner
ryomanolonger: the other thing to think about is spending the extra 100 gold pieces to get a good monitor
« prev 1 2 3 4 5 6 7 8 next »