Mercurial > emacs
annotate lwlib/lwlib-Xm.h @ 67171:35b9e081ceed
Remove useless leading * in defcustom docstrings.
(save-completions-file-name): Use ~/.emacs.d if available.
(completion-standard-syntax-table): Rename from
cmpl-standard-syntax-table and fold initialization into declaration,
thus removing cmpl-make-standard-completion-syntax-table.
(completion-lisp-syntax-table, completion-c-syntax-table)
(completion-fortran-syntax-table, completion-c-def-syntax-table): Idem.
(cmpl-saved-syntax, cmpl-saved-point): Remove.
(symbol-under-point, symbol-before-point)
(symbol-under-or-before-point, symbol-before-point-for-complete)
(add-completions-from-c-buffer): Use with-syntax-table.
(make-completion): Don't return a list of completion entries.
Update callers.
(cmpl-prefix-entry-head, cmpl-prefix-entry-tail): Use defalias.
(completion-initialize): Rename from initialize-completions.
(completion-find-file-hook): Rename from cmpl-find-file-hook.
(kill-emacs-save-completions): Collect stats here.
(save-completions-to-file, load-completions-from-file):
Use with-current-buffer.
(completion-def-wrapper): Rename from def-completion-wrapper. Make it
into a function. Move all calls to toplevel.
(completion-lisp-mode-hook): New fun.
(completion-c-mode-hook, completion-setup-fortran-mode):
Set the syntax-table here. Use local-set-key.
(completion-saved-bindings): New var.
(dynamic-completion-mode): Make it into a proper minor mode.
(load-completions-from-file): Remove unused var `num-uses'.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 28 Nov 2005 01:43:28 +0000 |
parents | 6358e3c6075c |
children | e8a3fb527b77 2d92f5c9d6ae |
rev | line source |
---|---|
60666
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
1 /* The lwlib interface to Motif widgets. |
64769
6358e3c6075c
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64083
diff
changeset
|
2 Copyright (C) 1994, 2000, 2002, 2003, 2004, |
6358e3c6075c
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64083
diff
changeset
|
3 2005 Free Software Foundation, Inc. |
60666
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
4 Copyright (C) 1992 Lucid, Inc. |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
5 |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
6 This file is part of the Lucid Widget Library. |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
7 |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
8 The Lucid Widget Library is free software; you can redistribute it and/or |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
9 modify it under the terms of the GNU General Public License as published by |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
10 the Free Software Foundation; either version 2, or (at your option) |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
11 any later version. |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
12 |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
13 The Lucid Widget Library is distributed in the hope that it will be useful, |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
16 GNU General Public License for more details. |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
17 |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
18 You should have received a copy of the GNU General Public License |
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
19 along with GNU Emacs; see the file COPYING. If not, write to |
64083 | 20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 Boston, MA 02110-1301, USA. */ | |
60666
5b0e15f7d88d
Add missing copyright and license notice.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
22 |
5626 | 23 #ifndef LWLIB_XM_H |
24 #define LWLIB_XM_H | |
25 | |
5627
7ff2d6076466
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
5626
diff
changeset
|
26 #include "lwlib-int.h" |
5626 | 27 |
28 extern widget_creation_entry xm_creation_table []; | |
29 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
29466
diff
changeset
|
30 Widget |
29466 | 31 xm_create_dialog __P ((widget_instance* instance)); |
5626 | 32 |
33 Boolean | |
29466 | 34 lw_motif_widget_p __P ((Widget widget)); |
5626 | 35 |
36 void | |
29466 | 37 xm_update_one_widget __P ((widget_instance* instance, Widget widget, |
38 widget_value* val, Boolean deep_p)); | |
5626 | 39 |
40 void | |
29466 | 41 xm_update_one_value __P ((widget_instance* instance, Widget widget, |
42 widget_value* val)); | |
5626 | 43 |
44 void | |
29466 | 45 xm_destroy_instance __P ((widget_instance* instance)); |
5626 | 46 |
47 void | |
29466 | 48 xm_set_keyboard_focus __P ((Widget parent, Widget w)); |
5626 | 49 |
50 void | |
29466 | 51 xm_popup_menu __P ((Widget widget, XEvent *event)); |
5626 | 52 |
53 void | |
29466 | 54 xm_pop_instance __P ((widget_instance* instance, Boolean up)); |
5626 | 55 |
9091 | 56 void |
29466 | 57 xm_set_main_areas __P ((Widget parent, Widget menubar, Widget work_area)); |
9091 | 58 |
9225
9e28a8ef9cad
Declare xm_set_main_areas() and xm_manage_resizing().
Paul Reilly <pmr@pajato.com>
parents:
9091
diff
changeset
|
59 void |
29466 | 60 xm_manage_resizing __P ((Widget w, Boolean flag)); |
9225
9e28a8ef9cad
Declare xm_set_main_areas() and xm_manage_resizing().
Paul Reilly <pmr@pajato.com>
parents:
9091
diff
changeset
|
61 |
5626 | 62 #endif /* LWLIB_XM_H */ |
52401 | 63 |
64 /* arch-tag: 61561304-c146-437b-8ed3-dc33818703c6 | |
65 (do not change this comment) */ |