<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/src/nsselect.m, branch scratch/bulk-tracing</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>; Fix typos: prefer American spelling</title>
<updated>2022-07-14T10:13:31+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2022-07-14T09:55:52+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=2a05479c221d4a13b15ed731e4eb1c0de99e97ed'/>
<id>2a05479c221d4a13b15ed731e4eb1c0de99e97ed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement `follow-tooltip' on NS as well</title>
<updated>2022-06-09T08:34:18+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-06-09T08:34:18+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=e7ac2ac4e07d3fd6fee4a74a9cfc5bac9310fc18'/>
<id>e7ac2ac4e07d3fd6fee4a74a9cfc5bac9310fc18</id>
<content type='text'>
* lisp/term/ns-win.el (x-begin-drag): Pass `follow-tooltip'.
* src/nsfns.m (Fx_show_tip): Record last dx and dy.
(syms_of_nsfns): New staticpros.
* src/nsmenu.m ([EmacsTooltip moveTo:]): New method.

* src/nsselect.m (Fns_begin_drag): New parameter
`follow-tooltip'.

* src/nsterm.h (@interface EmacsWindow):
(EmacsTooltip): Update prototypes.
* src/nsterm.m ([EmacsWindow draggedImage:movedTo:]): Move any
tooltip to the right location.
([EmacsWindow beginDrag:forPasteboard...]): New parameter
`followTooltip'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/term/ns-win.el (x-begin-drag): Pass `follow-tooltip'.
* src/nsfns.m (Fx_show_tip): Record last dx and dy.
(syms_of_nsfns): New staticpros.
* src/nsmenu.m ([EmacsTooltip moveTo:]): New method.

* src/nsselect.m (Fns_begin_drag): New parameter
`follow-tooltip'.

* src/nsterm.h (@interface EmacsWindow):
(EmacsTooltip): Update prototypes.
* src/nsterm.m ([EmacsWindow draggedImage:movedTo:]): Move any
tooltip to the right location.
([EmacsWindow beginDrag:forPasteboard...]): New parameter
`followTooltip'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix file drag-and-drop on GNUstep</title>
<updated>2022-06-04T08:19:01+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-06-04T08:19:01+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=effbd2aeef3d6ec3d09d40ff095e072b2d9834d4'/>
<id>effbd2aeef3d6ec3d09d40ff095e072b2d9834d4</id>
<content type='text'>
* src/nsselect.m (ns_decode_data_to_pasteboard): Convert URL to
path names when we're using NSFilenamesPboardType.
* src/nsterm.m: ([EmacsView performDragOperation:]): Handle
cases where plist is a string.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/nsselect.m (ns_decode_data_to_pasteboard): Convert URL to
path names when we're using NSFilenamesPboardType.
* src/nsterm.m: ([EmacsView performDragOperation:]): Handle
cases where plist is a string.
</pre>
</div>
</content>
</entry>
<entry>
<title>Support dragging multiple files on NS</title>
<updated>2022-06-04T07:45:41+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-06-04T07:45:41+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=2ce686c049a7a35cdc3eb87626d8a94539388a35'/>
<id>2ce686c049a7a35cdc3eb87626d8a94539388a35</id>
<content type='text'>
This has to use a deprecated pasteboard type, since Emacs uses
the "old" (but not deprecated) dragImage: method for
drag-and-drop, which can't drop file URLs.

* lisp/term/ns-win.el (x-begin-drag): Update accordingly.
* src/nsselect.m (ns_decode_data_to_pasteboard):
(Fns_begin_drag): Allow files to be a list of filenames as well.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This has to use a deprecated pasteboard type, since Emacs uses
the "old" (but not deprecated) dragImage: method for
drag-and-drop, which can't drop file URLs.

* lisp/term/ns-win.el (x-begin-drag): Update accordingly.
* src/nsselect.m (ns_decode_data_to_pasteboard):
(Fns_begin_drag): Allow files to be a list of filenames as well.
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement `allow-same-frame' for NS drag-and-drop</title>
<updated>2022-06-01T05:50:40+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-06-01T05:50:40+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=76850b26b92ab0f23d56180d000063d4ad6e08ca'/>
<id>76850b26b92ab0f23d56180d000063d4ad6e08ca</id>
<content type='text'>
* lisp/term/ns-win.el (x-begin-drag): Implement
`allow-same-frame'.
* src/nsselect.m (Fns_begin_drag): New parameter
`allow-same-frame'.
* src/nsterm.h (@interface EmacsWindow): Update prototypes.
* src/nsterm.m ([EmacsView draggingEntered:]):
([EmacsView prepareForDragOperation:]):
([EmacsView performDragOperation:]): Respect new parameter.
([EmacsWindow beginDrag:forPasteboard:withMode:returnFrameTo:]):
Likewise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/term/ns-win.el (x-begin-drag): Implement
`allow-same-frame'.
* src/nsselect.m (Fns_begin_drag): New parameter
`allow-same-frame'.
* src/nsterm.h (@interface EmacsWindow): Update prototypes.
* src/nsterm.m ([EmacsView draggingEntered:]):
([EmacsView prepareForDragOperation:]):
([EmacsView performDragOperation:]): Respect new parameter.
([EmacsWindow beginDrag:forPasteboard:withMode:returnFrameTo:]):
Likewise.
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement `return-frame' for DND on NS</title>
<updated>2022-05-31T10:05:41+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-05-31T10:05:41+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=20218353262dc38d82adb945a6a38d6e629c1417'/>
<id>20218353262dc38d82adb945a6a38d6e629c1417</id>
<content type='text'>
* src/nsselect.m (Fns_begin_drag): New argument `return-frame'.
(syms_of_nsselect): New defsym.
* src/nsterm.h (EmacsWindow): New fields.
* src/nsterm.m (ns_read_socket): Split parts off to
ns_read_socket_1.
(ns_read_socket_1): New function.
(ns_flush_display): Use that function instead.

([EmacsWindow beginDrag:forPasteboard:]): Update for
return-frame.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/nsselect.m (Fns_begin_drag): New argument `return-frame'.
(syms_of_nsselect): New defsym.
* src/nsterm.h (EmacsWindow): New fields.
* src/nsterm.m (ns_read_socket): Split parts off to
ns_read_socket_1.
(ns_read_socket_1): New function.
(ns_flush_display): Use that function instead.

([EmacsWindow beginDrag:forPasteboard:]): Update for
return-frame.
</pre>
</div>
</content>
</entry>
<entry>
<title>; * src/nsselect.m (ns_decode_data_to_pasteboard): Fix GNUstep build.</title>
<updated>2022-05-28T01:21:40+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-05-28T01:21:40+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=b2c8e8a299dadce7dc1bae2adf73ee9303856bb6'/>
<id>b2c8e8a299dadce7dc1bae2adf73ee9303856bb6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix build on earlier versions of Mac OS X</title>
<updated>2022-05-28T01:19:33+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-05-28T01:19:33+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6d6d1adbe7aa507fc15b1c6830f2eac5e7592ebc'/>
<id>6d6d1adbe7aa507fc15b1c6830f2eac5e7592ebc</id>
<content type='text'>
* src/nsselect.m (ns_decode_data_to_pasteboard): Respect
NS_USE_NSPasteboardTypeFileUrl.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/nsselect.m (ns_decode_data_to_pasteboard): Respect
NS_USE_NSPasteboardTypeFileUrl.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add file dragging support to NS port</title>
<updated>2022-05-28T01:18:09+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-05-28T01:18:09+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=ffab237cbfda5121fe9d6a1a479dbb5a4c3e5f2f'/>
<id>ffab237cbfda5121fe9d6a1a479dbb5a4c3e5f2f</id>
<content type='text'>
* lisp/dired.el (dired-mouse-drag-files): Document that
`dired-mouse-drag-files' now works on NS.

* lisp/term/ns-win.el (x-begin-drag): Handle FILE_NAME.
* src/nsselect.m (ns_decode_data_to_pasteboard): Handle file URL
type.
(ns_lisp_to_pasteboard, Fns_begin_drag): Handle new type `file'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/dired.el (dired-mouse-drag-files): Document that
`dired-mouse-drag-files' now works on NS.

* lisp/term/ns-win.el (x-begin-drag): Handle FILE_NAME.
* src/nsselect.m (ns_decode_data_to_pasteboard): Handle file URL
type.
(ns_lisp_to_pasteboard, Fns_begin_drag): Handle new type `file'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix NS drag and drop on macOS</title>
<updated>2022-05-27T09:11:07+00:00</updated>
<author>
<name>Po Lu</name>
</author>
<published>2022-05-27T09:11:07+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=5d2523dcd035b2ac058abc9962405422e9717ea1'/>
<id>5d2523dcd035b2ac058abc9962405422e9717ea1</id>
<content type='text'>
* lisp/term/ns-win.el (gui-backend-set-selection):
* src/nsselect.m (Fns_begin_drag): Fix deprecation warnings and
selection/value mixup.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/term/ns-win.el (gui-backend-set-selection):
* src/nsselect.m (Fns_begin_drag): Fix deprecation warnings and
selection/value mixup.
</pre>
</div>
</content>
</entry>
</feed>
