diff options
| author | Stefan Monnier | 2012-07-19 07:39:38 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-07-19 07:39:38 -0400 |
| commit | 5db81e33629049da22e7d0ff6c28a5cae31edac9 (patch) | |
| tree | a30274d3c351832f8ed0baacd2d178bd0e0fe93c /src | |
| parent | 5b835e1d6e0c6fafc7f27174889358bfde5f2449 (diff) | |
| download | emacs-5db81e33629049da22e7d0ff6c28a5cae31edac9.tar.gz emacs-5db81e33629049da22e7d0ff6c28a5cae31edac9.zip | |
* lisp/emacs-lisp/chart.el: Use lexical-binding.
(chart-emacs-storage): Don't hardcode the list of entries.
* src/alloc.c (Fgarbage_collect): Tweak docstring.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/alloc.c | 19 | ||||
| -rw-r--r-- | src/xmenu.c | 14 |
3 files changed, 18 insertions, 19 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 517d61c4e40..8a60e0bdabe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-07-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * alloc.c (Fgarbage_collect): Tweak docstring. | ||
| 4 | |||
| 1 | 2012-07-19 Dmitry Antipov <dmantipov@yandex.ru> | 5 | 2012-07-19 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 6 | ||
| 3 | Tweak the value returned from Fgarbage_collect again. | 7 | Tweak the value returned from Fgarbage_collect again. |
diff --git a/src/alloc.c b/src/alloc.c index c52b0475352..d24787576e9 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5378,17 +5378,14 @@ DEFUN ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "", | |||
| 5378 | doc: /* Reclaim storage for Lisp objects no longer needed. | 5378 | doc: /* Reclaim storage for Lisp objects no longer needed. |
| 5379 | Garbage collection happens automatically if you cons more than | 5379 | Garbage collection happens automatically if you cons more than |
| 5380 | `gc-cons-threshold' bytes of Lisp data since previous garbage collection. | 5380 | `gc-cons-threshold' bytes of Lisp data since previous garbage collection. |
| 5381 | `garbage-collect' normally returns a list with info on amount of space in use: | 5381 | `garbage-collect' normally returns a list with info on amount of space in use, |
| 5382 | ((CONS INTERNAL-SIZE USED-CONSES FREE-CONSES) | 5382 | where each entry has the form (NAME SIZE USED FREE), where: |
| 5383 | (SYMBOL INTERNAL-SIZE USED-SYMBOLS FREE-SYMBOLS) | 5383 | - NAME is a symbol describing the kind of objects this entry represents, |
| 5384 | (MISC INTERNAL-SIZE USED-MISCS FREE-MISCS) | 5384 | - SIZE is the number of bytes used by each one, |
| 5385 | (STRING INTERNAL-SIZE USED-STRINGS FREE-STRING) | 5385 | - USED is the number of those objects that were found live in the heap, |
| 5386 | (STRING-BYTES 1 USED-STRING-BYTES) | 5386 | - FREE is the number of those objects that are not live but that Emacs |
| 5387 | (VECTOR INTERNAL-SIZE USED-VECTORS) | 5387 | keeps around for future allocations (maybe because it does not know how |
| 5388 | (VECTOR-SLOTS INTERNAL-SIZE USED-VECTOR-SLOTS FREE-VECTOR-SLOTS) | 5388 | to return them to the OS). |
| 5389 | (FLOAT INTERNAL-SIZE USED-FLOATS FREE-FLOATS) | ||
| 5390 | (INTERVAL INTERNAL-SIZE USED-INTERVALS FREE-INTERVALS) | ||
| 5391 | (BUFFER INTERNAL-SIZE USED-BUFFERS)) | ||
| 5392 | However, if there was overflow in pure space, `garbage-collect' | 5389 | However, if there was overflow in pure space, `garbage-collect' |
| 5393 | returns nil, because real GC can't be done. | 5390 | returns nil, because real GC can't be done. |
| 5394 | See Info node `(elisp)Garbage Collection'. */) | 5391 | See Info node `(elisp)Garbage Collection'. */) |
diff --git a/src/xmenu.c b/src/xmenu.c index 61e3e3632b0..c7ec3dc3171 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -679,19 +679,17 @@ popup_activate_callback (Widget widget, LWLIB_ID id, XtPointer client_data) | |||
| 679 | /* This callback is invoked when a dialog or menu is finished being | 679 | /* This callback is invoked when a dialog or menu is finished being |
| 680 | used and has been unposted. */ | 680 | used and has been unposted. */ |
| 681 | 681 | ||
| 682 | #ifdef USE_GTK | ||
| 683 | static void | 682 | static void |
| 684 | popup_deactivate_callback (GtkWidget *widget, gpointer client_data) | 683 | popup_deactivate_callback ( |
| 685 | { | 684 | #ifdef USE_GTK |
| 686 | popup_activated_flag = 0; | 685 | GtkWidget *widget, gpointer client_data |
| 687 | } | ||
| 688 | #else | 686 | #else |
| 689 | static void | 687 | Widget widget, LWLIB_ID id, XtPointer client_data |
| 690 | popup_deactivate_callback (Widget widget, LWLIB_ID id, XtPointer client_data) | 688 | #endif |
| 689 | ) | ||
| 691 | { | 690 | { |
| 692 | popup_activated_flag = 0; | 691 | popup_activated_flag = 0; |
| 693 | } | 692 | } |
| 694 | #endif | ||
| 695 | 693 | ||
| 696 | 694 | ||
| 697 | /* Function that finds the frame for WIDGET and shows the HELP text | 695 | /* Function that finds the frame for WIDGET and shows the HELP text |