Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:Replacing text en masse (Score 1) 412

The really nice thing about query-replace and query-replace-regexp is that you can replace almost all items. It's great for cases where, say, you want to replace all uses of variable "count" while leaving the word alone when it's used in a comment.

If you just want to replace everything, you use the non-query versions, replace-string and replace-regexp. That way, you don't need to hold down the 'y' key.

Comment Re:The EMACS equivalent of "." (Score 1) 412

When I googled to see what the vi "." did, I found this, so the answer is no, but you can download an extension to do it.

But what I was going to say was that there are two options that I can think of:

  • If you typed in the command at the M-x or M-: (lisp eval) prompts, you can always just use the command history and rerun the command that way.
  • Alternately, you can repeat the next command by typing C-u and the number of repetitions followed by the command. So "C-u 75 -" will draw a row of 75 dashes. You can do more complex things by first recording a keyboard macro ("C-x (", keystrokes, "C-x )" and then prefexing the macro eval command ("C-x e") with a repeat count. If you're afraid of going past a certain point and don't want to carefully figure out exactly how many times to repeat, you can use narrow-to-region first.

Those two things, along with query-replace, automates most of my tasks for me.

London 2006, Meet London 1984 422

Draape writes "Shoreditch TV is an experiment TV channel beaming live footage from the street into people's homes. According to the Telegraph U.K. television will broadcast from 400 surveillance cameras on the streets, into people's homes. For now they are only showing it to 22,000 homes, but next year they plan on going national with the 'show'. They fly under the flag 'fighting crime from the sofa'."

Super Smash Brothers Wii, Featuring Solid Snake 292

mcc writes "In a surprise news conference this evening, Nintendo unexpectedly revealed Super Smash Bros. Brawl for the Nintendo Wii, and released a promo video of the title. Smash Bros. Brawl will feature online play; a Nintendog item that blocks your view of the playfield by jumping up on the screen and demanding to be petted; bizarre Dragonball Z style superattacks; your choice of traditional Gamecube or motion-sensing Revmote control; and new characters in the form of Samus (without the suit), Meta Knight, Kid Icarus (!), and... Konami's Solid Snake, complete with a cardboard box he hides in. The only bad news is despite earlier reports it would be a launch title, Smash Bros. Brawl will not be out until 2007."

Slashdot Top Deals

Anyone can make an omelet with eggs. The trick is to make one with none.

Working...