* bug#5855: 23.1.95; OS X file drag-and-drop inserts into current buffer
@ 2010-04-07 18:46 Robin Dunn
2012-02-22 8:06 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Robin Dunn @ 2010-04-07 18:46 UTC (permalink / raw)
To: 5855; +Cc: robin
When dragging a text file from Finder and dropping in an Emacs window
the contents of the file are inserted into the current buffer near the
drop point instead of making a new buffer for the file.
In GNU Emacs 23.1.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.29)
of 2010-04-03 on black.local
Windowing system distributor `Apple', version 10.3.1038
configured using `configure '--host=x86_64-apple-darwin'
'--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin'
'host_alias=x86_64-apple-darwin' 'CC=gcc''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
value of $XMODIFIERS: nil
locale-coding-system: nil
default enable-multibyte-characters: t
Major mode: Text
Minor modes in effect:
delete-selection-mode: t
pc-selection-mode: t
diff-auto-refine-mode: t
global-auto-revert-mode: t
cua-mode: t
show-paren-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <f6>
<ns-drag-file> M-x r e p o r t - e m a c s - b u g
<return>
Recent messages:
Loading psvn...done
Loading projects...
Loading desktop...done
Loading projects...done
Loading /Users/robind/elisp/my.emacs.el (source)...done
Loading isearch...done
Loading pc-select...done
Toggling font-lock-mode off; better pass an explicit argument.
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
Load-path shadows:
/Users/robind/elisp/whitespace hides
/Applications/MyApps/Editors/Emacs.app/Contents/Resources/lisp/whitespace
/Users/robind/elisp/table hides
/Applications/MyApps/Editors/Emacs.app/Contents/Resources/lisp/textmodes/table
/Users/robind/elisp/zone hides
/Applications/MyApps/Editors/Emacs.app/Contents/Resources/lisp/play/zone
Features:
(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util
hashcash mail-utils emacsbug delsel pc-select cus-start cus-load desktop
psvn wid-edit log-edit ring pcvs-util add-log diff-mode easy-mmode
vc-svn cl cl-19 whitespace autorevert cua-base speedbar sb-image ezimage
dframe assoc table paren disp-table misc tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process ns multi-tty
emacs)
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#5855: 23.1.95; OS X file drag-and-drop inserts into current buffer
2010-04-07 18:46 bug#5855: 23.1.95; OS X file drag-and-drop inserts into current buffer Robin Dunn
@ 2012-02-22 8:06 ` Glenn Morris
2012-02-22 11:01 ` Jan Djärv
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-02-22 8:06 UTC (permalink / raw)
To: Robin Dunn; +Cc: 5855
Robin Dunn wrote:
> When dragging a text file from Finder and dropping in an Emacs window
> the contents of the file are inserted into the current buffer near the
> drop point instead of making a new buffer for the file.
Sorry for the very slow reply. I happened to just now read in the Mac OS
section of the Emacs manual:
The default behavior when a user drags files from another application
into an Emacs frame is to insert the contents of all the dragged files
into the current buffer. To remap the `ns-drag-file' event to open the
dragged files in the current frame use the following line:
(define-key global-map [ns-drag-file] 'ns-find-file)
I don't know if it works, or if it should be the default.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#5855: 23.1.95; OS X file drag-and-drop inserts into current buffer
2012-02-22 8:06 ` Glenn Morris
@ 2012-02-22 11:01 ` Jan Djärv
0 siblings, 0 replies; 3+ messages in thread
From: Jan Djärv @ 2012-02-22 11:01 UTC (permalink / raw)
To: Glenn Morris; +Cc: 5855@debbugs.gnu.org, Robin Dunn
Hello.
I think the default should match other platforms. If nobody objects, I plan to change this in 24.2.
Jan D.
22 feb 2012 kl. 09:06 skrev Glenn Morris <rgm@gnu.org>:
> Robin Dunn wrote:
>
>> When dragging a text file from Finder and dropping in an Emacs window
>> the contents of the file are inserted into the current buffer near the
>> drop point instead of making a new buffer for the file.
>
> Sorry for the very slow reply. I happened to just now read in the Mac OS
> section of the Emacs manual:
>
> The default behavior when a user drags files from another application
> into an Emacs frame is to insert the contents of all the dragged files
> into the current buffer. To remap the `ns-drag-file' event to open the
> dragged files in the current frame use the following line:
>
> (define-key global-map [ns-drag-file] 'ns-find-file)
>
> I don't know if it works, or if it should be the default.
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-22 11:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-07 18:46 bug#5855: 23.1.95; OS X file drag-and-drop inserts into current buffer Robin Dunn
2012-02-22 8:06 ` Glenn Morris
2012-02-22 11:01 ` Jan Djärv
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).