* mode line mouse copy
@ 2008-01-31 13:32 Edward Susko
2008-01-31 23:00 ` Stephen Berman
2008-02-17 16:18 ` Kevin Rodgers
0 siblings, 2 replies; 4+ messages in thread
From: Edward Susko @ 2008-01-31 13:32 UTC (permalink / raw)
To: help-gnu-emacs
Can the mode line mouse commands be turned off so that, for instance,
dragging mouse 1 over the buffer name copies it to the clipboard?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mode line mouse copy
2008-01-31 13:32 Edward Susko
@ 2008-01-31 23:00 ` Stephen Berman
2008-02-17 16:18 ` Kevin Rodgers
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Berman @ 2008-01-31 23:00 UTC (permalink / raw)
To: help-gnu-emacs
On Thu, 31 Jan 2008 09:32:32 -0400 Edward Susko <susko@mathstat.dal.ca> wrote:
> Can the mode line mouse commands be turned off so that, for instance,
> dragging mouse 1 over the buffer name copies it to the clipboard?
I don't think this is possible without modifying Emacs's C source code.
However, you might find the following useful or adaptable to your
purposes:
(defun srb-display-mode-line-string(&optional arg)
"Display the unpropertized mode-line string in the echo area.
With prefix argument ARG, insert it at point in the current buffer."
(interactive "P")
(let ((mode-line-string
(eval-expression '(format-mode-line mode-line-format 0))))
(and arg (insert mode-line-string))))
(global-set-key "\C-cf" 'srb-display-mode-line-string)
Steve Berman
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mode line mouse copy
[not found] <mailman.6804.1201790131.18990.help-gnu-emacs@gnu.org>
@ 2008-02-08 14:30 ` Joel J. Adamson
0 siblings, 0 replies; 4+ messages in thread
From: Joel J. Adamson @ 2008-02-08 14:30 UTC (permalink / raw)
To: help-gnu-emacs
Edward Susko <susko@mathstat.dal.ca> writes:
> Can the mode line mouse commands be turned off so that, for instance,
> dragging mouse 1 over the buffer name copies it to the clipboard?
M-: (buffer-name)
emits the buffer name to the *Messages* buffer and you can copy and
paste it from there. What do you want to do with it?
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mode line mouse copy
2008-01-31 13:32 Edward Susko
2008-01-31 23:00 ` Stephen Berman
@ 2008-02-17 16:18 ` Kevin Rodgers
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2008-02-17 16:18 UTC (permalink / raw)
To: help-gnu-emacs
Edward Susko wrote:
> Can the mode line mouse commands be turned off so that, for instance,
> dragging mouse 1 over the buffer name copies it to the clipboard?
What happens if you (setq mode-line-buffer-identification-keymap nil)?
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-17 16:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.6804.1201790131.18990.help-gnu-emacs@gnu.org>
2008-02-08 14:30 ` mode line mouse copy Joel J. Adamson
2008-01-31 13:32 Edward Susko
2008-01-31 23:00 ` Stephen Berman
2008-02-17 16:18 ` Kevin Rodgers
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).