]> code.delx.au - gnu-emacs/log
gnu-emacs
12 years agoAdd 2012 to FSF copyright years for Emacs files (do not merge to trunk)
Glenn Morris [Wed, 11 Jan 2012 07:52:35 +0000 (23:52 -0800)]
Add 2012 to FSF copyright years for Emacs files (do not merge to trunk)

12 years agoUpdate short copyright year to 2012 (do not merge to trunk)
Glenn Morris [Tue, 10 Jan 2012 08:32:46 +0000 (00:32 -0800)]
Update short copyright year to 2012 (do not merge to trunk)

* etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex:
* etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
* etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex:
* etc/refcards/fr-dired-ref.tex, etc/refcards/fr-refcard.tex:
* etc/refcards/fr-survival.tex, etc/refcards/orgcard.tex:
* etc/refcards/pl-refcard.tex, etc/refcards/pt-br-refcard.tex:
* etc/refcards/refcard.tex, etc/refcards/ru-refcard.tex:
* etc/refcards/sk-dired-ref.tex, etc/refcards/sk-refcard.tex:
* etc/refcards/sk-survival.tex, etc/refcards/survival.tex:
* etc/refcards/vipcard.tex, etc/refcards/viperCard.tex:
* lib-src/ebrowse.c (version) <emacs_copyright>:
* lib-src/etags.c (print_version) <emacs_copyright>:
* lib-src/rcs2log (Copyright):
* lisp/version.el (emacs-copyright):
* nextstep/Cocoa/Emacs.base/Contents/Info.plist:
* nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:
* nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:
Update short copyright year to 2012.

12 years agoFix uninitialized variable in note_mouse_highlight (backport from trunk).
Eli Zaretskii [Mon, 9 Jan 2012 09:49:08 +0000 (17:49 +0800)]
Fix uninitialized variable in note_mouse_highlight (backport from trunk).

* xdisp.c (note_mouse_highlight): Initialize `area'.  (Bug#9947)

12 years agoAvoid crash on composition (backport from trunk).
Johan Bockgård [Mon, 9 Jan 2012 09:44:18 +0000 (17:44 +0800)]
Avoid crash on composition (backport from trunk).

* xdisp.c (fill_composite_glyph_string): Always set s->face, to
avoid a crash (bug#9496).

12 years agoFix last commit.
Chong Yidong [Mon, 9 Jan 2012 09:40:11 +0000 (17:40 +0800)]
Fix last commit.

12 years agoFix use of uninitialized var (backport from trunk).
Chong Yidong [Mon, 9 Jan 2012 09:35:21 +0000 (17:35 +0800)]
Fix use of uninitialized var (backport from trunk).

* xdisp.c (note_mouse_highlight): Fix use of uninitialized var.

12 years agoFix use of uninitialized variable (backport from trunk).
Eli Zaretskii [Mon, 9 Jan 2012 09:27:02 +0000 (17:27 +0800)]
Fix use of uninitialized variable (backport from trunk).

* xdisp.c (note_mouse_highlight): Initialize `part', to avoid a
possible random value that matches one of those tested as
condition to clear the mouse face.

12 years agoFix glitch in scrolling_window (backport from trunk).
YAMAMOTO Mitsuharu [Mon, 9 Jan 2012 09:23:36 +0000 (17:23 +0800)]
Fix glitch in scrolling_window (backport from trunk).

* dispnew.c (scrolling_window): Truncate overlaps in copy
destination of scroll runs so as to avoid assigning disabled bogus
rows and unnecessary graphics copy operations.

12 years agoBackport Bug#9990 fix from trunk
Eli Zaretskii [Mon, 9 Jan 2012 09:13:27 +0000 (17:13 +0800)]
Backport Bug#9990 fix from trunk

* src/dispnew.c (scrolling_window): Fix incorrect indices in accessing
current_matrix and desired_matrix.  (Bug#9990)

12 years agoFix EDE security flaw involving loading arbitrary Lisp from Project.ede.
Eric M. Ludlam [Mon, 9 Jan 2012 06:12:11 +0000 (14:12 +0800)]
Fix EDE security flaw involving loading arbitrary Lisp from Project.ede.

* lisp/ede.el (ede-project-directories): New option.
(ede-directory-safe-p): Check it.
(ede-initialize-state-current-buffer, ede, ede-new)
(ede-check-project-directory, ede-rescan-toplevel)
(ede-load-project-file, ede-parent-project, ede-current-project):
(ede-target-parent): Avoid loading in a project unless it is safe,
since it may involve malicious code.  This security flaw was
pointed out by Hiroshi Oota.

* lisp/ede/auto.el (ede-project-autoload): Add safe-p slot.
(ede-project-class-files): Projects using Project.ede are unsafe.
(ede-auto-load-project): New method.

* lisp/ede/simple.el (ede-project-class-files): Mark as unsafe.

12 years agoAdd CEDET grammar files to emacs-23 branch.
Chong Yidong [Mon, 9 Jan 2012 05:42:57 +0000 (13:42 +0800)]
Add CEDET grammar files to emacs-23 branch.

12 years ago* variables.texi (Creating Buffer-Local): Warn against misuses of
Stefan Monnier [Tue, 27 Dec 2011 23:48:53 +0000 (18:48 -0500)]
* variables.texi (Creating Buffer-Local): Warn against misuses of
make-variable-buffer-local.

Fixes: debbugs:10258
12 years agoFix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).
YAMAMOTO Mitsuharu [Mon, 31 Oct 2011 03:08:54 +0000 (12:08 +0900)]
Fix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).

* xmenu.c (cleanup_widget_value_tree): New function.
(xmenu_show, xdialog_show): Use it in record_unwind_protect instead of
calling free_menubar_widget_value_tree directly (Bug#9830).

12 years ago* src/keymap.c (Fsingle_key_description): Use make_specified_string
Andreas Schwab [Mon, 19 Sep 2011 21:15:47 +0000 (23:15 +0200)]
* src/keymap.c (Fsingle_key_description): Use make_specified_string
instead of build_string to build string from push_key_description.
(Bug#5193)

12 years ago* xdisp.c (expose_window): Save original value of phys_cursor_on_p and turn window...
YAMAMOTO Mitsuharu [Sat, 10 Sep 2011 06:54:04 +0000 (15:54 +0900)]
* xdisp.c (expose_window): Save original value of phys_cursor_on_p and turn window cursor on if cleared (Bug#9415).

12 years ago* src/search.c (boyer_moore): Take unibyte characters from pattern
Andreas Schwab [Wed, 7 Sep 2011 16:48:37 +0000 (18:48 +0200)]
* src/search.c (boyer_moore): Take unibyte characters from pattern
literally.  (Bug#9458)

12 years agoFix syntax scanning bug causing fontification crashes.
Chong Yidong [Tue, 30 Aug 2011 22:38:07 +0000 (18:38 -0400)]
Fix syntax scanning bug causing fontification crashes.

* src/syntax.c (find_defun_start): Update all cache variables if
exiting early.

Fixes: debbugs:9401
12 years ago* dic/lispref/lists.texi (Building Lists): Fix typo.
Dani Moncayo [Sun, 28 Aug 2011 19:08:45 +0000 (15:08 -0400)]
* dic/lispref/lists.texi (Building Lists): Fix typo.

12 years agoBackport 2011-06-04T11:02:37Z!deniz@dogan.se (Bug#8799) from trunk
Chong Yidong [Sun, 21 Aug 2011 03:12:09 +0000 (23:12 -0400)]
Backport 2011-06-04T11:02:37Z!deniz@dogan.se (Bug#8799) from trunk

12 years agoBackport license fix from trunk (remove duplicate, incorrect license).
Glenn Morris [Sat, 20 Aug 2011 22:14:27 +0000 (15:14 -0700)]
Backport license fix from trunk (remove duplicate, incorrect license).

12 years agoFix implicit declaration of kbd_on_hold_p
Andreas Schwab [Fri, 19 Aug 2011 15:58:27 +0000 (17:58 +0200)]
Fix implicit declaration of kbd_on_hold_p

* keyboard.c: Include "process.h"

12 years ago* hi-lock.el (hi-lock-unface-buffer): Fix interactive spec (Bug#7554).
Chong Yidong [Tue, 9 Aug 2011 21:55:34 +0000 (17:55 -0400)]
* hi-lock.el (hi-lock-unface-buffer): Fix interactive spec (Bug#7554).

12 years agoFixes: debbugs:6594
Andreas Schwab [Thu, 28 Jul 2011 18:40:28 +0000 (20:40 +0200)]
Fixes: debbugs:6594
* lisp/xt-mouse.el (xterm-mouse-event-read): Try to recover the raw
character.

12 years agoBackport 2010-07-03T14:42:02Z!eliz@gnu.org from trunk
Chong Yidong [Thu, 28 Jul 2011 15:45:07 +0000 (11:45 -0400)]
Backport 2010-07-03T14:42:02Z!eliz@gnu.org from trunk

12 years ago* fontset.c (fontset_get_font_group): Add proper type checks.
Andreas Schwab [Tue, 26 Jul 2011 11:00:23 +0000 (13:00 +0200)]
* fontset.c (fontset_get_font_group): Add proper type checks.
(Bug#9172)

12 years agoSupport LC_FUNCTION_STARTS load command on Darwin.
YAMAMOTO Mitsuharu [Sat, 23 Jul 2011 04:04:58 +0000 (13:04 +0900)]
Support LC_FUNCTION_STARTS load command on Darwin.

12 years agoMerge fix for Bug#4238 from trunk
Chong Yidong [Fri, 22 Jul 2011 15:23:10 +0000 (11:23 -0400)]
Merge fix for Bug#4238 from trunk

12 years agoChangeLog fix.
Glenn Morris [Sat, 16 Jul 2011 20:06:21 +0000 (13:06 -0700)]
ChangeLog fix.

12 years ago* window.el (split-window-horizontally): Doc fix (Bug#9060).
Chong Yidong [Tue, 12 Jul 2011 16:01:34 +0000 (12:01 -0400)]
* window.el (split-window-horizontally): Doc fix (Bug#9060).

12 years agoSuppress address randomization on Darwin. Do not merge into trunk.
YAMAMOTO Mitsuharu [Mon, 11 Jul 2011 23:07:49 +0000 (08:07 +0900)]
Suppress address randomization on Darwin.  Do not merge into trunk.

12 years agoIgnore a static composition that starts before the current checking position in redis...
Kenichi Handa [Thu, 7 Jul 2011 07:11:54 +0000 (16:11 +0900)]
Ignore a static composition that starts before the current checking position in redisplay.

12 years agoChangeLog fix.
Glenn Morris [Wed, 6 Jul 2011 02:34:08 +0000 (19:34 -0700)]
ChangeLog fix.

12 years ago* customize.texi (Composite Types): Move alist/plist from Simple Types (Bug#7545).
Chong Yidong [Sun, 3 Jul 2011 00:45:24 +0000 (20:45 -0400)]
* customize.texi (Composite Types): Move alist/plist from Simple Types (Bug#7545).

* elisp.texi (Top): Update menu description.

12 years ago* display.texi (Face Attributes): Document negative line widths (Bug#6113).
Chong Yidong [Sun, 3 Jul 2011 00:24:00 +0000 (20:24 -0400)]
* display.texi (Face Attributes): Document negative line widths (Bug#6113).

12 years agoMark tiny change.
Glenn Morris [Tue, 28 Jun 2011 01:09:47 +0000 (18:09 -0700)]
Mark tiny change.

12 years ago* lisp/progmodes/gud.el (gud-pdb-marker-regexp): Accept \r char (Bug#5653).
Chong Yidong [Mon, 27 Jun 2011 21:38:14 +0000 (17:38 -0400)]
* lisp/progmodes/gud.el (gud-pdb-marker-regexp): Accept \r char (Bug#5653).

12 years agoMerge fix for Bug#8870 from trunk
Chong Yidong [Mon, 27 Jun 2011 21:16:28 +0000 (17:16 -0400)]
Merge fix for Bug#8870 from trunk

12 years ago* frame.el (special-display-popup-frame): Doc fix (Bug#8853).
Chong Yidong [Sun, 19 Jun 2011 19:05:15 +0000 (15:05 -0400)]
* frame.el (special-display-popup-frame): Doc fix (Bug#8853).

12 years ago* info.el (Info-apropos-toc-nodes): Minor doc fix (Bug#8833).
Chong Yidong [Sun, 19 Jun 2011 18:42:23 +0000 (14:42 -0400)]
* info.el (Info-apropos-toc-nodes): Minor doc fix (Bug#8833).

12 years agoMerge fix for Bug#8879 from trunk
Chong Yidong [Sat, 18 Jun 2011 19:23:43 +0000 (15:23 -0400)]
Merge fix for Bug#8879 from trunk

12 years ago* dispnew.c (scrolling_window): Before scrolling, turn off a mouse-highlight in the...
YAMAMOTO Mitsuharu [Sat, 18 Jun 2011 00:37:38 +0000 (09:37 +0900)]
* dispnew.c (scrolling_window): Before scrolling, turn off a mouse-highlight in the window being scrolled.

12 years agoFix ChangeLog entry (no need to merge to trunk)
Glenn Morris [Fri, 17 Jun 2011 06:54:08 +0000 (23:54 -0700)]
Fix ChangeLog entry (no need to merge to trunk)

12 years agoMerge: nsmenu.m: Replace all uses of XVECTOR with ASIZE and AREF.
Paul Eggert [Thu, 16 Jun 2011 15:31:16 +0000 (11:31 -0400)]
Merge: nsmenu.m: Replace all uses of XVECTOR with ASIZE and AREF.

12 years agoFix errors in 2011-05-29 change to Lisp manual.
Chong Yidong [Tue, 14 Jun 2011 15:13:26 +0000 (11:13 -0400)]
Fix errors in 2011-05-29 change to Lisp manual.

* doc/lispref/keymaps.texi (Searching Keymaps):
* doc/lispref/display.texi (Overlay Properties): Fix errors in 2011-05-29
change.  Suggested by Johan Bockgård.

12 years agoFix bug #8780 with decoding files after using ange-ftp.
Eli Zaretskii [Thu, 9 Jun 2011 09:40:51 +0000 (12:40 +0300)]
Fix bug #8780 with decoding files after using ange-ftp.

 lisp/net/ange-ftp.el (ange-ftp-insert-file-contents): Let-bind
 buffer-file-type before setting its value, to avoid disastrous
 global effects on decoding files for DOS/Windows systems.

12 years agoFixes bug#8730, bug#8781. Do not merge into trunk.
Juanma Barranquero [Sun, 5 Jun 2011 00:32:23 +0000 (02:32 +0200)]
Fixes bug#8730, bug#8781.  Do not merge into trunk.

lisp/progmodes/python.el (python-after-info-look): Add autoload cookie.
(python-unload-function): New function.

12 years ago* flymake.el (flymake-compilation-prevents-syntax-check): Doc fix (Bug#8713).
Reuben Thomas [Sat, 4 Jun 2011 23:06:53 +0000 (19:06 -0400)]
* flymake.el (flymake-compilation-prevents-syntax-check): Doc fix (Bug#8713).

12 years ago* lisp/repeat.el (repeat-on-final-keystroke): Fix type (Bug#8696).
Chong Yidong [Sat, 4 Jun 2011 23:00:29 +0000 (19:00 -0400)]
* lisp/repeat.el (repeat-on-final-keystroke): Fix type (Bug#8696).

12 years agolisp/loadhist.el (unload-feature-special-hooks): Add comint-output-filter-functions.
Juanma Barranquero [Sat, 4 Jun 2011 21:30:14 +0000 (23:30 +0200)]
lisp/loadhist.el (unload-feature-special-hooks): Add comint-output-filter-functions.

13 years ago* src/emacs.c (main): Warn when starting a GTK emacs in daemon mode.
Dan Nicolaescu [Thu, 2 Jun 2011 16:56:04 +0000 (09:56 -0700)]
* src/emacs.c (main): Warn when starting a GTK emacs in daemon mode.

13 years ago* fringe.c (update_window_fringes): Don't update overlay arrow bitmap in the current...
YAMAMOTO Mitsuharu [Wed, 1 Jun 2011 01:36:38 +0000 (10:36 +0900)]
* fringe.c (update_window_fringes): Don't update overlay arrow bitmap in the current matrix if keep_current_p is non-zero.

13 years agoTweaks to lisp manual to remove over/underflows in printed version.
Chong Yidong [Sun, 29 May 2011 17:18:46 +0000 (13:18 -0400)]
Tweaks to lisp manual to remove over/underflows in printed version.

* help.texi (Accessing Documentation):
* display.texi (Pixel Specification):
* processes.texi (Serial Ports, Serial Ports):
* nonascii.texi (Character Properties, Default Coding Systems):
* text.texi (Changing Properties, Special Properties):
* windows.texi (Window Start and End):
* modes.texi (SMIE Indentation Example, SMIE Tricks):
* keymaps.texi (Searching Keymaps, Tool Bar):
* minibuf.texi (Basic Completion):
* compile.texi (Eval During Compile):
* strings.texi (Formatting Strings): Tweaks to avoid overflowing
7x9 paper in printed manual.

* lists.texi (Sets And Lists): Fix misplaced text.

13 years agomail/sendmail.el (mail-encode-header): Avoid double encoding by let-binding rfc2047...
Kenichi Handa [Fri, 27 May 2011 04:54:39 +0000 (13:54 +0900)]
mail/sendmail.el (mail-encode-header): Avoid double encoding by let-binding rfc2047-encode-encoded-words to nil.

13 years agoTake account of periodic fringe bitmap's dependency on y-position in redrawing.
YAMAMOTO Mitsuharu [Wed, 25 May 2011 03:06:05 +0000 (12:06 +0900)]
Take account of periodic fringe bitmap's dependency on y-position in redrawing.

* dispextern.h (struct glyph_row): New member fringe_bitmap_periodic_p.

* dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
for fringe update if it has periodic bitmap.
(row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
and fringe_bitmap_periodic_p.

* fringe.c (get_fringe_bitmap_data): New function.
(draw_fringe_bitmap_1, update_window_fringes): Use it.
(update_window_fringes): Record periodicity of fringe bitmap in glyph
row.  Mark glyph row for fringe update if periodicity changed.

* xdisp.c (try_window_reusing_current_matrix): Don't mark scrolled row
for fringe update unless it has periodic bitmap.

13 years agomerge emacs-23
Kenichi Handa [Wed, 25 May 2011 02:45:30 +0000 (11:45 +0900)]
merge emacs-23

13 years agoxdisp.c (get_next_display_element): Set correct it->face_id for a static composition.
Kenichi Handa [Wed, 25 May 2011 01:26:35 +0000 (10:26 +0900)]
xdisp.c (get_next_display_element): Set correct it->face_id for a static composition.

13 years agoRFC2047-encode header of outgoing mails.
Kenichi Handa [Mon, 23 May 2011 04:44:29 +0000 (13:44 +0900)]
RFC2047-encode header of outgoing mails.

13 years agoMark last change as tiny.
Chong Yidong [Sun, 22 May 2011 18:47:51 +0000 (14:47 -0400)]
Mark last change as tiny.

13 years agoFix for sc-nested-citation-p in supercite.el.
Sean Neakums [Sun, 22 May 2011 18:46:49 +0000 (14:46 -0400)]
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.

13 years ago* dispnew.c (scrolling_window): Don't exclude the case that the
YAMAMOTO Mitsuharu [Sat, 21 May 2011 01:56:45 +0000 (10:56 +0900)]
* dispnew.c (scrolling_window): Don't exclude the case that the
last enabled row in the desired matrix touches the bottom boundary.

13 years agoFix last change
Andreas Schwab [Mon, 16 May 2011 12:29:35 +0000 (14:29 +0200)]
Fix last change

13 years agoBackport fix for Bug#8672 from trunk
Chong Yidong [Sun, 15 May 2011 14:22:31 +0000 (10:22 -0400)]
Backport fix for Bug#8672 from trunk

13 years agoText-fitting fixes for printed Emacs manual on 7x9 paper.
Chong Yidong [Sun, 15 May 2011 14:21:31 +0000 (10:21 -0400)]
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.

13 years agoBackport fix for Bug#8672 from trunk
Chong Yidong [Sun, 15 May 2011 14:12:51 +0000 (10:12 -0400)]
Backport fix for Bug#8672 from trunk

13 years agolisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639).
Juanma Barranquero [Fri, 13 May 2011 12:44:48 +0000 (14:44 +0200)]
lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639).

13 years agosrc/textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).
Drew Adams [Wed, 11 May 2011 16:38:18 +0000 (18:38 +0200)]
src/textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).

13 years agoTake account of fringe background extension in scroll_run_hook.
YAMAMOTO Mitsuharu [Wed, 11 May 2011 03:13:58 +0000 (12:13 +0900)]
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.

13 years agoTypo fix in doc/lispref/files.texi.
Eli Zaretskii [Mon, 9 May 2011 20:38:50 +0000 (23:38 +0300)]
Typo fix in doc/lispref/files.texi.

13 years agoMinor portability fix in smerge-mode.el.
Eli Zaretskii [Mon, 9 May 2011 15:21:54 +0000 (18:21 +0300)]
Minor portability fix in smerge-mode.el.

 lisp/smerge-mode.el (smerge-resolve): Use null-device rather than a
 literal "/dev/null".

13 years ago* lisp/emacs-lisp/lisp.el (lisp-complete-symbol, lisp-completion-at-point):
Stefan Monnier [Mon, 9 May 2011 15:17:05 +0000 (12:17 -0300)]
* lisp/emacs-lisp/lisp.el (lisp-complete-symbol, lisp-completion-at-point):
Fix typo.

13 years ago* xmenu.c (set_frame_menubar): Fix submenu loops.
Andreas Schwab [Mon, 9 May 2011 11:13:02 +0000 (13:13 +0200)]
* xmenu.c (set_frame_menubar): Fix submenu loops.

13 years agoBackport revisions 2011-04-24T05:30:24Z!eggert@cs.ucla.edu..2011-04-25T19:40:22Z...
Eli Zaretskii [Mon, 9 May 2011 09:59:23 +0000 (05:59 -0400)]
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.

13 years agoHandle missing add-log-current-defun-function in Which Func mode (Bug#8260)
Ralph Schleicher [Sun, 8 May 2011 18:29:35 +0000 (14:29 -0400)]
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.

13 years ago* lispref/modes.texi (Region to Refontify): Rename from "Region to Fontify".
Stefan Monnier [Fri, 6 May 2011 14:32:26 +0000 (11:32 -0300)]
* 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.

13 years agodoc/lispref/modes.texi (Region to Fontify): Fix typo.
Drew Adams [Thu, 5 May 2011 23:04:47 +0000 (01:04 +0200)]
doc/lispref/modes.texi (Region to Fontify): Fix typo.

13 years agoetc/NEWS: Separate post-23.3 entries.
Eli Zaretskii [Fri, 29 Apr 2011 14:27:57 +0000 (17:27 +0300)]
etc/NEWS: Separate post-23.3 entries.

13 years agoAllow the Windows build to use upto 2GB of heap.
Eli Zaretskii [Fri, 29 Apr 2011 14:23:44 +0000 (17:23 +0300)]
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.

13 years agoFix bug #8563 with TeX input method.
Eli Zaretskii [Thu, 28 Apr 2011 17:20:43 +0000 (20:20 +0300)]
Fix bug #8563 with TeX input method.

 leim/quail/latin-ltx.el <\beth, \gimel, \daleth>: Produce
 corresponding symbols rather than Hebrew letters.

13 years agoFix bug #8563 with \aleph in TeX input method.
Eli Zaretskii [Wed, 27 Apr 2011 20:34:56 +0000 (23:34 +0300)]
Fix bug #8563 with \aleph in TeX input method.

 leim/quail/latin-ltx.el <\aleph>: Produce ALEF SYMBOL instead of
 HEBREW LETTER ALEF.

13 years ago* src/nsfns.m (Fns_read_file_name): Doc fix (Bug#8534).
Chong Yidong [Tue, 26 Apr 2011 18:31:04 +0000 (14:31 -0400)]
* src/nsfns.m (Fns_read_file_name): Doc fix (Bug#8534).

13 years ago* net/tramp.el (tramp-process-actions): Add POS argument. Delete
Michael Albinus [Mon, 25 Apr 2011 17:58:27 +0000 (19:58 +0200)]
* 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.

13 years agoUse correct match group (bug#8438).
Daniel Colascione [Mon, 25 Apr 2011 00:20:47 +0000 (17:20 -0700)]
Use correct match group (bug#8438).

13 years agolisp/buff-menu.el (Buffer-menu--buffers): Fix typo in docstring.
Juanma Barranquero [Fri, 22 Apr 2011 18:49:58 +0000 (20:49 +0200)]
lisp/buff-menu.el (Buffer-menu--buffers): Fix typo in docstring.

Fixes: debbugs:8535
13 years agolisp/play/mpuz.el: Small fixes.
Juanma Barranquero [Thu, 21 Apr 2011 12:06:01 +0000 (14:06 +0200)]
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.

13 years agolisp/play/doctor.el: Fix typos in docstrings.
Juanma Barranquero [Thu, 21 Apr 2011 02:45:31 +0000 (04:45 +0200)]
lisp/play/doctor.el: Fix typos in docstrings.

13 years agoChangeLog whitespace fix (no need to merge to trunk).
Glenn Morris [Wed, 20 Apr 2011 02:11:41 +0000 (19:11 -0700)]
ChangeLog whitespace fix (no need to merge to trunk).

13 years agoFix a bug in time functions when timezone is changed on Windows.
Eli Zaretskii [Mon, 18 Apr 2011 08:33:58 +0000 (11:33 +0300)]
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.

13 years agolisp/mouse-drag.el (mouse-drag-throw): Fix typo in docstring.
Juanma Barranquero [Fri, 15 Apr 2011 02:56:50 +0000 (04:56 +0200)]
lisp/mouse-drag.el (mouse-drag-throw): Fix typo in docstring.

13 years ago* xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).
Chong Yidong [Wed, 13 Apr 2011 18:19:23 +0000 (14:19 -0400)]
* xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).

13 years agoFix typos.
Juanma Barranquero [Wed, 13 Apr 2011 11:50:12 +0000 (13:50 +0200)]
Fix typos.

13 years agoFix wait_for_termination on GNU Hurd (Bug#8467)
Samuel Thibault [Sun, 10 Apr 2011 22:05:04 +0000 (18:05 -0400)]
Fix wait_for_termination on GNU Hurd (Bug#8467)

* sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on zombies.

13 years agoFix completion-auto-help/icomplete-mode bad interaction (Bug#5849).
Chong Yidong [Sun, 10 Apr 2011 21:07:40 +0000 (17:07 -0400)]
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.

13 years ago* src/buffer.c (syms_of_buffer): Doc fix (Bug#6902).
Chong Yidong [Sun, 10 Apr 2011 20:55:52 +0000 (16:55 -0400)]
* src/buffer.c (syms_of_buffer): Doc fix (Bug#6902).

13 years agoFix for what-page (Bug#6825).
Chong Yidong [Sun, 10 Apr 2011 20:52:31 +0000 (16:52 -0400)]
Fix for what-page (Bug#6825).

* textmodes/page.el (what-page): Use line-number-at-pos to
calculate line number.

13 years agoDoc fix for left-fringe and right-fringe parameters (Bug#6930)
Chong Yidong [Sun, 10 Apr 2011 20:43:35 +0000 (16:43 -0400)]
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.

13 years agoHandle deferred `event-kind' property when using unread-command-events.
Chong Yidong [Sun, 10 Apr 2011 02:10:52 +0000 (22:10 -0400)]
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.

13 years agoFix last change.
Chong Yidong [Sat, 9 Apr 2011 20:29:22 +0000 (16:29 -0400)]
Fix last change.

13 years agoImage mode doc fixes (Bug#8098).
Chong Yidong [Sat, 9 Apr 2011 19:57:47 +0000 (15:57 -0400)]
Image mode doc fixes (Bug#8098).

* lisp/image-mode.el (image-type, image-mode-map, image-minor-mode-map)
(image-toggle-display): Doc fixes.

13 years agoMark tiny change.
Glenn Morris [Sat, 9 Apr 2011 17:37:33 +0000 (10:37 -0700)]
Mark tiny change.

13 years agoFix ChangeLog attribution.
Glenn Morris [Sat, 9 Apr 2011 17:31:13 +0000 (10:31 -0700)]
Fix ChangeLog attribution.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8450
and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610576