1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00
Commit Graph

94735 Commits

Author SHA1 Message Date
Kenichi Handa
964b0e76b0 merge emacs-23 2011-05-25 11:45:30 +09:00
Kenichi Handa
f16d983703 xdisp.c (get_next_display_element): Set correct it->face_id for a static composition. 2011-05-25 10:26:35 +09:00
Kenichi Handa
b8d747b9bd RFC2047-encode header of outgoing mails. 2011-05-23 13:44:29 +09:00
Chong Yidong
02bd545076 Mark last change as tiny. 2011-05-22 14:47:51 -04:00
Sean Neakums
7261f6cee1 Fix for sc-nested-citation-p in supercite.el.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=109145

* mail/supercite.el (sc-default-cite-frame): Handle
sc-nested-citation-p when sc-cite-blank-lines-p is non-nil.
2011-05-22 14:46:49 -04:00
YAMAMOTO Mitsuharu
4d8ade8957 * dispnew.c (scrolling_window): Don't exclude the case that the
last enabled row in the desired matrix touches the bottom boundary.
2011-05-21 10:56:45 +09:00
Andreas Schwab
165fd2df8c Fix last change 2011-05-16 14:29:35 +02:00
Chong Yidong
7affc35312 Backport fix for Bug#8672 from trunk 2011-05-15 10:22:31 -04:00
Chong Yidong
ae742cb584 Text-fitting fixes for printed Emacs manual on 7x9 paper.
* building.texi (Flymake, Breakpoints Buffer):
* calendar.texi (Appointments):
* cmdargs.texi (General Variables, Display X):
* custom.texi (Saving Customizations, Face Customization)
(Directory Variables, Minibuffer Maps, Init Rebinding):
* display.texi (Font Lock, Font Lock, Useless Whitespace):
* fixit.texi (Spelling):
* frames.texi (Creating Frames, Fonts):
* help.texi (Help Files):
* mini.texi (Minibuffer File):
* misc.texi (emacsclient Options, Emulation):
* msdog.texi (Windows Startup, Windows HOME, Windows Fonts):
* mule.texi (International Chars, Language Environments)
(Select Input Method, Modifying Fontsets, Charsets):
* programs.texi (Custom C Indent):
* rmail.texi (Rmail Labels):
* text.texi (Table Conversion):
* trouble.texi (Known Problems, Known Problems):
* windows.texi (Change Window):
* xresources.texi (GTK resources): Reflow text and re-indent code
examples to avoid TeX overflows and underflows on 7x9 paper.

* emacs.texi: Fix the (commented out) smallbook command.

* macos.texi (Mac / GNUstep Events):
* xresources.texi (Lucid Resources): Remove extraneous examples.
2011-05-15 10:21:31 -04:00
Chong Yidong
2d11b7b37c Backport fix for Bug#8672 from trunk 2011-05-15 10:12:51 -04:00
Juanma Barranquero
ce1539b46d lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639). 2011-05-13 14:44:48 +02:00
Drew Adams
e531bdfff1 src/textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655). 2011-05-11 18:38:18 +02:00
YAMAMOTO Mitsuharu
7db47798f8 Take account of fringe background extension in scroll_run_hook.
* w32term.c (w32_draw_fringe_bitmap): Rename local vars `left' and
`width' to `bar_area_x' and `bar_area_width', respectively.
(x_scroll_run): Take account of fringe background extension.

* xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: Rename
local vars `left' and `width' to `bar_area_x' and
`bar_area_width', respectively.
(x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe
background extension.
2011-05-11 12:13:58 +09:00
Eli Zaretskii
3ee240faef Typo fix in doc/lispref/files.texi. 2011-05-09 23:38:50 +03:00
Eli Zaretskii
0e39ec2188 Minor portability fix in smerge-mode.el.
lisp/smerge-mode.el (smerge-resolve): Use null-device rather than a
 literal "/dev/null".
2011-05-09 18:21:54 +03:00
Stefan Monnier
3f254caa51 * lisp/emacs-lisp/lisp.el (lisp-complete-symbol, lisp-completion-at-point):
Fix typo.
2011-05-09 12:17:05 -03:00
Andreas Schwab
25fb3d747b * xmenu.c (set_frame_menubar): Fix submenu loops. 2011-05-09 13:13:02 +02:00
Eli Zaretskii
14fe7b530d Backport revisions 2011-04-24T05:30:24Z!eggert@cs.ucla.edu..2011-04-25T19:40:22Z!eggert@cs.ucla.edu (inclusive) from trunk (bug#8623)
The next log entry shows the actual changes by Paul Eggert.

 Fix a problem with aliasing and vector headers.
 GCC 4.6.0 optimizes based on type-based alias analysis.  For
 example, if b is of type struct buffer * and v of type struct
 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size
 != &v->size, and therefore "v->size = 1; b->size = 2; return
 v->size;" must therefore return 1.  This assumption is incorrect
 for Emacs, since it type-puns struct Lisp_Vector * with many other
 types.  To fix this problem, this patch adds a new type struct
 vector_header that documents the constraints on layout of vectors
 and pseudovectors, and helps optimizing compilers not get fooled
 by Emacs's type punning.  It also adds the macros XSETTYPED_PVECTYPE
 XSETTYPED_PSEUDOVECTOR, TYPED_PSEUDOVECTORP, for similar reasons.
 src/lisp.h (XVECTOR_SIZE): New convenience macro.  All previous uses of
 XVECTOR (foo)->size replaced to use this macro, to avoid the hassle
 of writing XVECTOR (foo)->header.size.
 src/lisp.h: Say "vectorlike header" rather than "vector header.
 (struct vectorlike_header): Rename from struct vector_header.
 (XVECTORLIKE_HEADER_SIZE): Renamed from XVECTOR_HEADER_SIZE.
 All uses changed.
 (XVECTOR_HEADER_SIZE): New macro, for use in XSETPSEUDOVECTOR.
 (XSETTYPED_PVECTYPE): New macro, specifying the name of the size
 member.
 (XSETPVECTYPE): Rewrite in terms of new macro.
 (XSETPVECTYPESIZE): New macro, specifying both type and size.
 This is a bit clearer, and further avoids the possibility of
 undesirable aliasing.
 (XSETTYPED_PSEUDOVECTOR): New macro, specifying the size.
 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR
 and XVECTOR_HEADER_SIZE.
 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE,
 since Lisp_Subr is a special case (no "next" field).
 (ASIZE): Rewrite in terms of XVECTOR_SIZE.
 (struct vector_header): New type.
 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the
 object, to help avoid aliasing.
 (PSEUDOVECTORP): Rewrite in terms of TYPED_PSEUDOVECTORP.
 (SUBRP): Likewise, since Lisp_Subr is a special case.
 src/lisp.h (struct Lisp_Vector, struct Lisp_Char_Table):
 (struct Lisp_Sub_Char_Table, struct Lisp_Bool_Vector):
 (struct Lisp_Hash_Table): Combine first two members into a single
 struct vector_header member.  All uses of "size" and "next" members
 changed to be "header.size" and "header.next".
 src/buffer.h (struct buffer): Likewise.
 src/font.h (struct font_spec, struct font_entity, struct font): Likewise.
 src/frame.h (struct frame): Likewise.
 src/process.h (struct Lisp_Process): Likewise.
 src/termhooks.h (struct terminal): Likewise.
 src/window.c (struct save_window_data, struct saved_window): Likewise.
 src/window.h (struct window): Likewise.
 src/alloc.c (allocate_buffer, Fmake_bool_vector, allocate_pseudovector):
 Use XSETPVECTYPESIZE, not XSETPVECTYPE, to avoid aliasing problems.
 src/buffer.c (init_buffer_once): Likewise.
 src/lread.c (defsubr): Use XSETTYPED_PVECTYPE, since Lisp_Subr is a
 special case.
 src/process.c (Fformat_network_address): Use local var for size,
 for brevity.
 src/fns.c (vector): Remove; this old hack is no longer needed.
 src/bytecode.c (exec_byte_code): Don't use XVECTOR before CHECK_VECTOR.
2011-05-09 05:59:23 -04:00
Ralph Schleicher
6eea50c73b Handle missing add-log-current-defun-function in Which Func mode (Bug#8260)
* lisp/progmodes/which-func.el (which-function): Use
add-log-current-defun instead of add-log-current-defun-function,
which might not be defined.
2011-05-08 14:29:35 -04:00
Stefan Monnier
bc3bea9cf0 * lispref/modes.texi (Region to Refontify): Rename from "Region to Fontify".
(Multiline Font Lock):
* lispref/vol2.texi (Top):
* lispref/vol1.texi (Top):
* lispref/elisp.texi (Top): Update menu accordingly.
2011-05-06 11:32:26 -03:00
Drew Adams
e6dc6206e9 doc/lispref/modes.texi (Region to Fontify): Fix typo. 2011-05-06 01:04:47 +02:00
Eli Zaretskii
9bb095f46e etc/NEWS: Separate post-23.3 entries. 2011-04-29 17:27:57 +03:00
Eli Zaretskii
fab624aa3a Allow the Windows build to use upto 2GB of heap.
src/w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]:
 New version that can reserve upto 2GB of heap space.
 etc/NEWS: Mention the new feature.
2011-04-29 17:23:44 +03:00
Eli Zaretskii
b1c07b7b76 Fix bug #8563 with TeX input method.
leim/quail/latin-ltx.el <\beth, \gimel, \daleth>: Produce
 corresponding symbols rather than Hebrew letters.
2011-04-28 20:20:43 +03:00
Eli Zaretskii
6b4e1d0d3d Fix bug #8563 with \aleph in TeX input method.
leim/quail/latin-ltx.el <\aleph>: Produce ALEF SYMBOL instead of
 HEBREW LETTER ALEF.
2011-04-27 23:34:56 +03:00
Chong Yidong
45cb8994a3 * src/nsfns.m (Fns_read_file_name): Doc fix (Bug#8534). 2011-04-26 14:31:04 -04:00
Michael Albinus
46155cd37f * net/tramp.el (tramp-process-actions): Add POS argument. Delete
region between POS and (pos).
(tramp-do-copy-or-rename-file-out-of-band): Use `nil' position in
`tramp-process-actions' call.
(tramp-maybe-open-connection): Call `tramp-process-actions' with pos.

* net/tramp-smb.el (tramp-smb-maybe-open-connection): Use `nil'
position in `tramp-process-actions' call.
2011-04-25 19:58:27 +02:00
Daniel Colascione
320f861c69 Use correct match group (bug#8438). 2011-04-24 17:20:47 -07:00
Juanma Barranquero
be71f8100a lisp/buff-menu.el (Buffer-menu--buffers): Fix typo in docstring.
Fixes: debbugs:8535
2011-04-22 20:49:58 +02:00
Juanma Barranquero
c6c3212525 lisp/play/mpuz.el: Small fixes.
* play/mpuz (mpuz-silent): Doc fix.
  (mpuz-mode-map): Move initialization into declaration.
  (mpuz-put-number-on-board): Rename parameter L to COLUMNS.
  (mpuz-letter-to-digit, mpuz-check-all-solved, mpuz-create-buffer):
  Fix typos in docstrings.
2011-04-21 14:06:01 +02:00
Juanma Barranquero
58d468b44d lisp/play/doctor.el: Fix typos in docstrings. 2011-04-21 04:45:31 +02:00
Glenn Morris
40c9205d58 ChangeLog whitespace fix (no need to merge to trunk). 2011-04-19 19:11:41 -07:00
Eli Zaretskii
97a9309556 Fix a bug in time functions when timezone is changed on Windows.
src/s/ms-w32.h (localtime): Redirect to sys_localtime.
 src/w32.c: Include <time.h>.
 (sys_localtime): New function.
2011-04-18 11:33:58 +03:00
Juanma Barranquero
6470c3c6a9 lisp/mouse-drag.el (mouse-drag-throw): Fix typo in docstring. 2011-04-15 04:56:50 +02:00
Chong Yidong
c17819f4cd * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451). 2011-04-13 14:19:23 -04:00
Juanma Barranquero
7ee6a1d372 Fix typos. 2011-04-13 13:50:12 +02:00
Samuel Thibault
300f9fca55 Fix wait_for_termination on GNU Hurd (Bug#8467)
* sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on zombies.
2011-04-10 18:05:04 -04:00
Chong Yidong
6f21a3198d Fix completion-auto-help/icomplete-mode bad interaction (Bug#5849).
* minibuffer.el (completion--do-completion): Avoid the "Next char
not unique" prompt if icomplete-mode is enabled.
2011-04-10 17:07:40 -04:00
Chong Yidong
fde4eb868f * src/buffer.c (syms_of_buffer): Doc fix (Bug#6902). 2011-04-10 16:55:52 -04:00
Chong Yidong
7e735aaf4d Fix for what-page (Bug#6825).
* textmodes/page.el (what-page): Use line-number-at-pos to
calculate line number.
2011-04-10 16:52:31 -04:00
Chong Yidong
4095436808 Doc fix for left-fringe and right-fringe parameters (Bug#6930)
* doc/lispref/frames.texi (Layout Parameters): Note the difference
between querying and setting parameters for left-fringe and
right-fringe.
2011-04-10 16:43:35 -04:00
Chong Yidong
3ad8bad038 Handle deferred `event-kind' property when using unread-command-events.
* src/mouse.el (mouse-drag-mode-line-1): Make sure that if we push
mouse-2 into unread-command-events, it is interpreted correctly.
2011-04-09 22:10:52 -04:00
Chong Yidong
6395aab903 Fix last change. 2011-04-09 16:29:22 -04:00
Chong Yidong
71d73c9c28 Image mode doc fixes (Bug#8098).
* lisp/image-mode.el (image-type, image-mode-map, image-minor-mode-map)
(image-toggle-display): Doc fixes.
2011-04-09 15:57:47 -04:00
Glenn Morris
140745c368 Mark tiny change. 2011-04-09 10:37:33 -07:00
Glenn Morris
da2fb5b5f2 Fix ChangeLog attribution.
See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8450
and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610576
2011-04-09 10:31:13 -07:00
Chong Yidong
65969f63df Fix more GCC strict-aliasing warnings.
* src/ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
unsigned char, to match FcChar8 type definition.

* src/xmenu.c (create_and_show_popup_menu):
* src/xselect.c (x_decline_selection_request)
(x_reply_selection_request): Avoid type-punned deref of X events.
2011-04-08 16:41:28 -04:00
Chong Yidong
5324d904a3 * xterm.c (handle_one_xevent): Avoid type-punned derefencing of X events. 2011-04-08 15:18:25 -04:00
Svante Signell
0080dc6bd9 * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450). 2011-04-08 14:44:36 -04:00
Juanma Barranquero
7afdcb4571 Backport 2011-04-04T22:08:01Z!lekktu@gmail.com and 2011-04-04T22:33:12Z!lekktu@gmail.com from trunk.
* help-fns.el (describe-variable): Complete all variables having
  documentation, including keywords.
  http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html
2011-04-06 03:26:46 +02:00