Discussion:
deleting minibuffer
sunway
2007-08-29 12:29:49 UTC
Permalink
Hi there everybody :-) I'm a brand new emacs user, and I'd like to get
rid of some of some minibuffers that I generate (for instance
*Completions* minibuffer) and then the y get in my way when I do the
C-x -> thing. When I do C-x 0, I get "Attempt to delete minibuffer...".
Why is attempting to delete minibuffer wrong?
Second thing is: how do I force emacs to break lines for me? When I write
news posts, I want my lines to be less than 70 chars. Is there a way to
force emacs to break my lines for me?
And, how do I prevent emacs from showing me introductory screen? If I run
emacs -nw foo, I want to see foo opened, not introductory screen... :-\
the last one:
(setq inhibit-startup-message t)
Peter Dyballa
2007-08-29 13:44:34 UTC
Permalink
Second thing is: how do I force emacs to break lines for me? When I write
news posts, I want my lines to be less than 70 chars. Is there a way to
force emacs to break my lines for me?
Check the variable fill-column.

--
Greetings

Pete

A blizzard is when it snows sideways.
Nikola Skoric
2007-08-29 11:19:10 UTC
Permalink
Hi there everybody :-) I'm a brand new emacs user, and I'd like to get
rid of some of some minibuffers that I generate (for instance
*Completions* minibuffer) and then the y get in my way when I do the
C-x -> thing. When I do C-x 0, I get "Attempt to delete minibuffer...".
Why is attempting to delete minibuffer wrong?

Second thing is: how do I force emacs to break lines for me? When I write
news posts, I want my lines to be less than 70 chars. Is there a way to
force emacs to break my lines for me?

And, how do I prevent emacs from showing me introductory screen? If I run
emacs -nw foo, I want to see foo opened, not introductory screen... :-\
--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
Piet van Oostrum
2007-08-29 15:04:39 UTC
Permalink
NS> Hi there everybody :-) I'm a brand new emacs user, and I'd like to get
NS> rid of some of some minibuffers that I generate (for instance
NS> *Completions* minibuffer) and then the y get in my way when I do the
NS> C-x -> thing. When I do C-x 0, I get "Attempt to delete minibuffer...".
NS> Why is attempting to delete minibuffer wrong?
*Completions* is not a minibuffer. The minibuffer is on the bottom of the
frame (window) and is usually only one line high. It is used for additional
input to commands, e.g. file names. Without minibuffer Emacs cannot
function properly. However, the *Completions* can be deleted without
problems. I don't know what you mean with the C-x -> thing.
NS> Second thing is: how do I force emacs to break lines for me? When I write
NS> news posts, I want my lines to be less than 70 chars. Is there a way to
NS> force emacs to break my lines for me?
menu: Options -> Word wrap in text modes. Don't forget to select Options ->
Save Options if you want to keep it the same for fututre Emacs sessions.
The value 70 can be set by customizing fill-column. Use Options ->
Customize Emacs -> Specific Options and specify fill-column in the
minibuffer.
You can then fill in the value 70 in the dialog window and save it for
future session with the appropriate button.
--
Piet van Oostrum <***@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: ***@vanoostrum.org
Nikola Skoric
2007-08-29 16:42:55 UTC
Permalink
Dana Wed, 29 Aug 2007 17:04:39 +0200,
Post by Piet van Oostrum
NS> Hi there everybody :-) I'm a brand new emacs user, and I'd like to get
NS> rid of some of some minibuffers that I generate (for instance
NS> *Completions* minibuffer) and then the y get in my way when I do the
NS> C-x -> thing. When I do C-x 0, I get "Attempt to delete minibuffer...".
NS> Why is attempting to delete minibuffer wrong?
*Completions* is not a minibuffer. The minibuffer is on the bottom of the
frame (window) and is usually only one line high. It is used for additional
input to commands, e.g. file names. Without minibuffer Emacs cannot
function properly. However, the *Completions* can be deleted without
problems. I don't know what you mean with the C-x -> thing.
When I have more than one buffer opened, then I go to next buffer with C-x, and
then right arrow. If I have, say, 2 buffers opened, and then use completion, a
3. buffer gets opened. If I go to that buffer, and press C-x 0, I get "Attempt
to delete minibuffer or sole ordinary window". How do I get rid of that buffer?
Post by Piet van Oostrum
NS> Second thing is: how do I force emacs to break lines for me? When I write
NS> news posts, I want my lines to be less than 70 chars. Is there a way to
NS> force emacs to break my lines for me?
menu: Options -> Word wrap in text modes. Don't forget to select Options ->
Save Options if you want to keep it the same for fututre Emacs sessions.
The value 70 can be set by customizing fill-column. Use Options ->
Customize Emacs -> Specific Options and specify fill-column in the
minibuffer.
You can then fill in the value 70 in the dialog window and save it for
future session with the appropriate button.
Thank you very much! :-)
--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
Malte Spiess
2007-08-29 17:42:06 UTC
Permalink
Post by Nikola Skoric
When I have more than one buffer opened, then I go to next buffer with
C-x, and then right arrow. If I have, say, 2 buffers opened, and then
use completion, a 3. buffer gets opened. If I go to that buffer, and
press C-x 0, I get "Attempt to delete minibuffer or sole ordinary
window". How do I get rid of that buffer?
Well, you see, the problem is a little different.
(Btw.: You mix up window and buffer here. You want to get rid of the
buffer or the window?)
I think the problem is that your cursor is in the minibuffer. You can't
close that. Maybe try pressing "C-g" instead. Or put the cursor in the
correct window (not buffer) and then you can do your "C-x 0" again.

HTH
Malte
Nikola Skoric
2007-08-29 18:25:39 UTC
Permalink
Dana Wed, 29 Aug 2007 19:42:06 +0200,
Post by Malte Spiess
Post by Nikola Skoric
When I have more than one buffer opened, then I go to next buffer with
C-x, and then right arrow. If I have, say, 2 buffers opened, and then
use completion, a 3. buffer gets opened. If I go to that buffer, and
press C-x 0, I get "Attempt to delete minibuffer or sole ordinary
window". How do I get rid of that buffer?
Well, you see, the problem is a little different.
(Btw.: You mix up window and buffer here. You want to get rid of the
buffer or the window?)
I think the problem is that your cursor is in the minibuffer. You can't
close that. Maybe try pressing "C-g" instead. Or put the cursor in the
correct window (not buffer) and then you can do your "C-x 0" again.
Oh, right. You're right. I confused buffer and window. C-x k did the job.
Thanks for clearing that out.
--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
Peter Dyballa
2007-08-29 19:01:51 UTC
Permalink
Post by Nikola Skoric
When I have more than one buffer opened, then I go to next buffer with C-x, and
then right arrow. If I have, say, 2 buffers opened, and then use completion, a
3. buffer gets opened. If I go to that buffer, and press C-x 0, I get "Attempt
to delete minibuffer or sole ordinary window". How do I get rid of that buffer?
Choose an item from the suggested completions!

--
Greetings

Pete

’Twas a woman who drove me to drink, and I never had the courtesy
to thank her for it. — W.C. Fields
r***@ureach.com
2007-08-30 21:38:12 UTC
Permalink
Second thing is: how do I force emacs to break lines for
me? When I write
news posts, I want my lines to be less than 70 chars. Is
there a way to
force emacs to break my lines for me?
Filling to break lines has been suggested. Possibly a better
method is to use longlines-mode. I understand it's built
into the newest version of Emacs. Those of us with older
versions can get it at emacswiki as an add-on.

Longlines will give you the line-breaking behavior that most
other word processors and text editors will give you.

--Rod
______________________
Author of "Linux for Non-Geeks--Clear-eyed Answers for
Practical
Consumers" and "Boring Stories from Uncle Rod." To reply by
e-mail
take the second "o" out of the e-mail address.

Nikola Skoric
2007-08-29 13:25:29 UTC
Permalink
Dana Wed, 29 Aug 2007 20:29:49 +0800,
Post by sunway
And, how do I prevent emacs from showing me introductory screen? If I run
emacs -nw foo, I want to see foo opened, not introductory screen... :-\
(setq inhibit-startup-message t)
Sorry for being newbie: where do I put that?
--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
Loading...