Mercurial > emacs
annotate test/cedet/tests/testfriends.cpp @ 107871:d7b161b7a686
Add the `scroll-command' property.
* window.c: Add Qscroll_command.
Remove Vscroll_preserve_screen_position_commands.
(window_scroll_pixel_based, window_scroll_line_based): Check the
`scroll-command' property on the last command instead of searching
the last command in Vscroll_preserve_screen_position_commands.
(syms_of_window): Initialize and staticpro `Qscroll_command'.
Put Qscroll_command property on Qscroll_up and Qscroll_down.
(scroll-preserve-screen-position): Doc fix.
(Vscroll_preserve_screen_position_commands): Remove variable.
* simple.el (scroll-up-command, scroll-down-command)
(scroll-up-line, scroll-down-line): Put `scroll-command'
property on the these symbols. Remove them from
`scroll-preserve-screen-position-commands'.
* mwheel.el (mwheel-scroll): Put `scroll-command' and
`isearch-scroll' properties on the `mwheel-scroll' symbol.
Remove it from `scroll-preserve-screen-position-commands'.
* isearch.el (isearch-allow-scroll): Doc fix.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Fri, 16 Apr 2010 02:51:12 +0300 |
parents | 7f4c7f5c0eba |
children | ef719132ddfa |
rev | line source |
---|---|
104494 | 1 // Test parsing of friends and how they are used in completion. |
2 /* | |
3 >> Thanks Damien Profeta for the nice example. | |
4 > | |
5 > I paste a small example. | |
6 > It would be great if friend can be well parsed and even greater if | |
7 > class B can access to all the members of A. | |
8 */ | |
9 | |
10 class Af // %2% ( ( "testfriends.cpp" ) ( "Af" "B::testB" ) ) | |
11 { | |
12 public: | |
13 int pubVar; | |
14 private: | |
15 int privateVar; | |
16 | |
17 friend class B; | |
18 | |
19 }; | |
20 | |
21 class B | |
22 { | |
23 public: | |
24 int testB(); | |
25 int testAB(); | |
26 | |
27 }; | |
28 | |
29 | |
30 int B::testB() { | |
31 Af classA; | |
32 classA.//-1- | |
33 ; //#1# ( "privateVar" "pubVar" ) | |
34 } | |
35 | |
36 int B::testAB() { // %1% ( ( "testfriends.cpp" ) ( "B" "B::testAB" ) ) | |
37 } | |
105377 | 38 |
39 // arch-tag: 31ea93db-59f8-4301-8e32-06536358618e |