logs archiveIRC Archive / Freenode / #emacs / 2009 / November / 27 / 1
boscop
works, thanks
now: what is wrong with this?: (global-set-key (kbd "<backtab>") (lambda () (insert-char ?\ tab-width)))
it complains about the call to insert-char
shabble
I'd have thought you'd need an (interactive) in there somewhere
boscop
thanks
how can I distinguish between DEL and C-d?
it seems to be physically the same o.O
shabble
terminal or gui?
boscop
gui
fledermaus
,del
fsbot
[Too many DB matches] [google] http://www.emacswiki.org/emacs-en/BackspaceKey
http://www.emacswiki.org/emacs/WThreeMDelicious
fledermaus
,delbackspace
fsbot
         

fledermaus
,backspace
fsbot
backspace is, like, [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]
fledermaus
,more
fsbot
boscop
alsi C-i and tab seem to be the same
JordiGH
My compilation or C++ buffer has the wrong directory, but if I do M-x set-variable <RET> default-<TAB> in either buffer, it doesn't tab complete to default-directory... how do I fix this?
boscop
*also
palomer
gnu screen! best window manager ever
what's the empty line regexp in emacs?
e1f
isn't it ^$
palomer
I meant a line with only spaces and tabs
I want to remove such lines
e1f
m-x delete-blank-lines
palomer
it only deletes them one at a time
ggole
Shouldn't do
Should delete all the ones surrounding point but one
palomer
ah yes
but I want to delete all that are in a file
boscop
maybe "^\\s$"
or call delete-trailing-whitespace
palomer
the lines are already empty
boscop
and then ^$
palomer
now I have to remove them
replace-regexp ^$ doesn't do anything
boscop
when they are empty, you don't have spaces or tabs on them
ggole
"^[ \t]*$"
         

boscop
you probably have to escape them
palomer
replace-regexp doesn't seem to remove lines at all
boscop
how can I go forward in the mark ring?
ggole
I don't think there's a command for that
boscop
why?
it would be somewhat useful
ggole
No idea
ryoma
boscop: imo all commands that go in one direction on some ring or stack should also go the other direction.
boscop
that's why I wonder
I can't find it
ryoma
boscop: actually, there should be 2 commands for every sequence, including undo, mark ring, kill ring, etc.
boscop: there isn't one :(
if you go back 2 and want to go back 1, you have to go back 15 or something
and with undo, well, you have to do undo the undo, which has its own issues
boscop
indeed
ryoma
imo the biggest improvement to emacs would be a non-buffer-corrupting redo
ggole
Buffer corrupting?
ryoma
but at least it's possible to do forward-char, instead of doing backward-char until you wrap around the buffer. :)
ggole: this explains: http://groups.google.com/group/gnu.emacs.help/msg/b802df52522533f8
redo.el corrupts the buffer
JordiGH
I don't get it, why do people want a redo?
ryoma
it would be great to have a forward in mark ring also
JordiGH
To redo, you undo your undo.
ryoma
JordiGH: the link explains
coldhead
TLDR
ryoma
,tldr
fsbot
ryoma: emacs is too good for you-- switch to xemacs
JordiGH
,wtf tldr
ryoma
xemacs doesn't have redo either :)
fsbot
Too Long, Didn't Read
ryoma
ah
well, it explains
MisterN
,...
rudybot
Woof.
fsbot
[In the distance, you hear a dog bark]
ryoma
,..
fsbot
[Too many DB matches] [google] http://www.emacswiki.org/alex/Matthias
http://www.emacswiki.org/alex/
ryoma
MisterN
,rudybot
fsbot
idempotency is, like, the property such that f·...·f(x) a f(x)
rudybot is, like, [0] a heap of junk offby1 made by pushing bits of junk towards one another until a heap formed
[1] a digital golem,
[2] at http://www.emacswiki.org/cgi-bin/wiki.pl?rudybot
ryoma
fsbot: undo-the-undo is different from redo. see http://groups.google.com/group/gnu.emacs.help/msg/b802df52522533f8 .
fsbot
created.
MisterN
,undo-the-undo
fsbot
MisterN: I think undo-the-undo is different from redo. see http://groups.google.com/group/gnu.emacs.help/msg/b802df52522533f8 .
MisterN
fsbot: you THINK so?
fsbot
Try: dlgs-phrases goahead StudentsBillOfRights http://www.emacswiki.org/emacs/ElectricDotAndDash
MisterN
fsbot: StudentsBillOfRights
fsbot
MisterN, I think StudentsBillOfRights is [0] a statement of rights of students
[1] 1. You have the right to publish what you learn,
[2] 2. You have the right to demand standard file formats in electronic teaching materials,
[3] 2. You have the right to use free software, ..[Type ,more]
MisterN
,more
fsbot
[4] 4. You have the right to refuse to use non-free software,
[5] (4. You have the right to refuse to use non-free software) is a bit harsh, we need to rethink that,
[6] 4. You have the right to fight for your right to use free software
boscop
I often practice right 4 at school
ryoma
there are duplicate numbers
boscop
in our school they have only windows and ms office on all the computers, and only the admin can install new software
stephenry
Not good
boscop
it's sad. the little children get indoctrinated
ryoma
can you use a usb key with debian and emacs on it?
MisterN
ryoma: a very astute observer you are.
boscop
they think windows is the only OS in the world
MisterN
emacs runs on windows i think
ryoma
(Action) thinks that emacs is the only os
boscop
it does. but most of the time I bring my ubuntu laptop anyway
ryoma
,redo
fsbot
I think redo is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?RedoMode
[1] in general, to redo a command, just move point, and do some more undos.,
[2] Repeat (C-x z) executes the most recent command)
boscop
since the little children occupy the other computers playing flash games in internet explorer
ryoma
fsbot: redo is also corrupts the buffer :(
fsbot
Added entry to the term "redo"
ryoma
fsbot: redo 3 is redo.el corrupts the buffer :(
fsbot
redo.elhmm, redo is corrupts the buffer :( .. + other entries
boscop
ryoma: how so?
ryoma
boscop: just bugs
it is an old package and both xemacs and emacs have changed, perhaps?
boscop
orly? and why the ":(" ? did you lose important data?
ryoma
boscop: i don't think so, but i don't trust it any more
boscop: many others have noted this
legumbre
,kook
fsbot
WAKE UP SHEEPLE!!!!!
boscop
there are other modes to handle this
custom solutions
ryoma
to handle what?
boscop
undo and redo
ryoma
boscop: which ones specifically? did you try them?
boscop
I heard of one that resembles the undo stack of other apps. didn'T try it though
ryoma
that's redo.el, which corrupts the buffer
boscop
ah
I'm using the default
ryoma
:)
boscop
what's wrong with the default?
nimred
wich way to eval function_1 and if function_1 returns 0 then exec function_2 ?
ryoma
yeah me too, but i agree with the post in the link
boscop
nimred: (if (not (func1)) (func2))
ryoma
you need (= 0 whatever) too
cmatei
(if (zerop (f1)) (f2))
boscop
ah right
ryoma
or that
shabble
(unless (foo) (bar))?
boscop
I am just learning elisp, forgot that 0 was true too
nimred
"(= 0 whatever)" what is it ?
boscop
nimred: tests whether "whatever" is 0
ryoma
nimred: zerop is fine
nimred
ok thanks :)
The_Journey
does emacs have tab?
nimred
what about if i just need to run 2 functions without any condition ?
MisterN
The_Journey: sure
The_Journey
MisterN: How do I use them
MisterN
type TAB
just hit the key
The_Journey
MisterN: not that tab, tab like firefox's tabs
cmatei
C-x b
fsmunoz
The_Journey: there are some modes that provide them, yes.
elscreen for one, there is also some other whose name eludes me atm.
boscop
like speedbar
nimred
any idea ?
The_Journey
fsmunoz: I cant just type some key and have tab?
boscop
nimred: (progn (func1) (func2))
MisterN
The_Journey: C-x b
stephenry
What color themes do you guys use?
The_Journey
MisterN: That is for switching buffers
nimred
cool thanks boscop
boscop
stephenry: euphoria
fsmunoz
The_Journey: only by installing an "addon". "Vanilla" emacs doesn't have tabs on top, although it supports multiple buffers of course
MisterN
The_Journey: and creating.
boscop
The_Journey: speedbar can do this
The_Journey
what addon do I need?
boscop
,speedbar
fsbot
SpeedBar is, like, [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?SpeedBar
[1] (info "(emacs)Speedbar")
The_Journey
ok thank you
boscop
also shows directory tree and whatnot
(if you want it too)
fsmunoz
shabble
I wonder if anyone's bolted speedbar and magit/psvn together
fsmunoz
The_Journey: actually disregard that, it seems it is Aquamacs specific
Or not
ryoma
most people use ibuffer or ido or some other way of switching buffers
boscop
I do ;)
fsmunoz
I use elscreen to have separate stuff in different tabs
Like, I have rcirc running in one tab, while my work is in another.
The_Journey
how do I go to a line #xxx ?
consolers
goto-line
The_Journey
is there a shortcut?
rgr
Is there any emacs extension to control external gnome apps? e.g I would love to be able to send a page/up message to evince from within emacs.
M-g g
but can find out yourself with C-h f goto-line
MisterN
rgr: M-g M-g too, i just found out :)
boscop
how can I save window registers between sessions?
« prev 1 2 3 4 5 6 next »