aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Robert2009-01-23 10:31:54 +0000
committerAdrian Robert2009-01-23 10:31:54 +0000
commitd900b2af456101183c1d25f94853b5df34548235 (patch)
tree2290d516dee96186a0619f753e39ae0717c2a4a4 /src
parent3436b70cbe074ecfdf378c53d3dbe3566afbd791 (diff)
downloademacs-d900b2af456101183c1d25f94853b5df34548235.tar.gz
emacs-d900b2af456101183c1d25f94853b5df34548235.zip
* nsterm.m (EmacsView-readSelectionFromPasteboard:) (writeSelectionToPasteboard:types:): New stubbed-out methods for NSServicesRequests protocol. (Bug#1435)
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/nsterm.m23
2 files changed, 32 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 953e1241c98..0b334b8b1de 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,15 @@
12009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com> 12009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2 2
3 * emacs.c (main): Do fork+exec under --daemon in Cocoa. 3 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
4 (ns_no_defaults): New declaration.
5 (main): Use it.
6 * nsterm.h (ns_no_defaults): New declaration.
7 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
8 * nsterm.m (ns_no_defaults): New variable.
9 (ns_initialize): Don't read defaults when ns_no_defaults.
10 (EmacsView-readSelectionFromPasteboard:)
11 (writeSelectionToPasteboard:types:): New stubbed-out methods for
12 NSServicesRequests protocol. (Bug#1435)
4 13
52009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change) 142009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6 15
diff --git a/src/nsterm.m b/src/nsterm.m
index 2f8eccbe7e9..535b7b0dc5c 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5575,6 +5575,29 @@ extern void update_window_cursor (struct window *w, int on);
5575} 5575}
5576 5576
5577 5577
5578/* The next two methods are part of NSServicesRequests informal protocol,
5579 supposedly called when a services menu item is chosen from this app.
5580 But this should not happen because we override the services menu with our
5581 own entries which call ns-perform-service.
5582 Nonetheless, it appeared to happen here (under strange circumstances):
5583 http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1435
5584 So let's at least stub them out until further investigation can be done. */
5585
5586- (BOOL) readSelectionFromPasteboard: (NSPasteboard *)pb
5587{
5588 /* we could call ns_string_from_pasteboard(pboard) here but then it should
5589 be written into the buffer in place of the existing selection..
5590 ordinary service calls go through functions defined in ns-win.el */
5591 return NO;
5592}
5593
5594- (BOOL) writeSelectionToPasteboard: (NSPasteboard *)pb types: (NSArray *)types
5595{
5596 /* supposed to write for as many of types as we are able */
5597 return NO;
5598}
5599
5600
5578/* setMini =YES means set from internal (gives a finder icon), NO means set nil 5601/* setMini =YES means set from internal (gives a finder icon), NO means set nil
5579 (gives a miniaturized version of the window); currently we use the latter for 5602 (gives a miniaturized version of the window); currently we use the latter for
5580 frames whose active buffer doesn't correspond to any file 5603 frames whose active buffer doesn't correspond to any file