unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: nick@nick.uklinux.net, emacs-devel@gnu.org
Subject: Re: Emacs mode for GDB - 2 questions
Date: 01 Jun 2002 02:12:24 +0200	[thread overview]
Message-ID: <5xu1onrh5j.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <200205312127.g4VLRd915638@aztec.santafe.edu>

Richard Stallman <rms@gnu.org> writes:

>     With a large array, if the top line was in the buffer it would scroll out of 
>     view. I would like to be able to enter the three digits (0,5,2 in this case)
>     into the header line.
> 
> That feature makes sense well enough, but as I said, it would
> be difficult to implement.

There are obvious alternative ways to accomplish the same effect
(e.g. click on the header-line and use the mini-buffer to enter the
numbers).  To me that seems like a more logical approach than editing
the numbers directly in the header line -- when and how do you then
determine what numbers to actually use -- and how do you change,
e.g. the 5 to 10? do you delete the 5 first and then enter 1 and 0
(giving 2 interrim data values in the middle field).

I'd definitely prefer to use the minibuffer for this kind of input.

> 
> But I have another idea for implementing it.  Suppose that line were
> actually a separate window, with its mode line disabled, showing just
> one line of some buffer.  That way you could indeed select it and edit
> it as usual.  You could make the parts that should not really be edited
> read-only.
> 
Such modeline-less windows may be useful for other purposes, so
we should try adding them to see what use people can find for them.

> This would require a new feature in the C code, but since it would
> only affect the setting up of window structure, not redisplay,
> it would be far easier.  It might actually be feasible.
> 
Yes, I think this would be a fairly trivial change.

> We would need to decide on the UI for selection of these special
> windows.

For the UI, just set mode-line-format to nil to remove the modeline.

> 
> This leads to a further idea.  Suppose that every mode line (and every
> header line) were actually a separate window, and formatting of mode
> line elements was done by converting them into text in a buffer.  That
> would be elegant in some ways.  The usage of memory for this would
> be acceptable nowadays.

Sounds complicated -- and of limited use.  I don't think it is worth
the efforts.

> 
> This would make it possible to copy text from a mode line or header
> line by dragging the mouse across it, for example.

We already has other uses for clicking in and dragging of the modeline.
Adding cut and paste to that list makes it more complicated to use.

Someone suggested to add a function to get the current mode line
contents as a string.  With that function, we could make a "hot-spot"
in the modeline (e.g. click mouse-3 on the buffer name) to copy it to
the kill-ring.  For the rare cases where you need to get the mode line
contents, I think that would be an acceptable solution.

> 
> What do people think?
> 
I like the idea of modeline-less windows, but the idea of using buffers
to format the mode line seems like overkill to me.

  parent reply	other threads:[~2002-06-01  0:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-29 14:19 Emacs mode for GDB - 2 questions Nick Roberts
2002-05-30 17:05 ` Richard Stallman
2002-05-30 20:58   ` Nick Roberts
2002-05-31 21:27     ` Richard Stallman
2002-05-30 17:05 ` Richard Stallman
2002-05-30 17:33   ` Miles Bader
2002-05-30 20:56     ` Nick Roberts
2002-05-30 17:05 ` Richard Stallman
2002-05-30 21:16   ` Nick Roberts
2002-05-30 23:16     ` Kim F. Storm
2002-05-31  6:38       ` Eli Zaretskii
2002-06-01 20:44         ` Nick Roberts
2002-05-31 21:27     ` Richard Stallman
2002-05-31 23:21       ` Miles Bader
2002-06-01  0:12       ` Kim F. Storm [this message]
2002-05-31 23:43         ` Miles Bader
2002-06-01 19:44           ` Alex Schroeder
2002-06-02  2:52             ` Richard Stallman
2002-06-02  2:51         ` Richard Stallman
2002-06-13 21:38           ` Stefan Monnier
2002-06-03  8:57       ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5xu1onrh5j.fsf@kfs2.cua.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=nick@nick.uklinux.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).