bpt/emacs.git
12 years agoUse xfree, not free, to avoid crash with --enable-checking=xmallocoverrun.
Dmitry Antipov [Thu, 13 Oct 2011 14:55:46 +0000 (07:55 -0700)]
Use xfree, not free, to avoid crash with --enable-checking=xmallocoverrun.

12 years agoFix ChangeLog entry of last commit.
Eli Zaretskii [Thu, 13 Oct 2011 12:01:59 +0000 (14:01 +0200)]
Fix ChangeLog entry of last commit.

12 years agoFix the "C-x =" display of the character info for LRE, LRO, RLE, and RLO.
Eli Zaretskii [Thu, 13 Oct 2011 11:58:54 +0000 (13:58 +0200)]
Fix the "C-x =" display of the character info for LRE, LRO, RLE, and RLO.

 lisp/simple.el (what-cursor-position): Fix the display of the
 character info for LRE, LRO, RLE, and RLO characters, by appending a
 PDF to them.

12 years agoFix the change with paragraph_dir initialization.
Eli Zaretskii [Thu, 13 Oct 2011 11:17:32 +0000 (13:17 +0200)]
Fix the change with paragraph_dir initialization.

 src/bidi.c (bidi_init_it): Don't initialize paragraph_dir here, as
 some callers set that themselves.
 src/xdisp.c (Fcurrent_bidi_paragraph_direction): Initialize
 itb.paragraph_dir to NEUTRAL_DIR.  Fixes an occasional incorrect
 cursor motion with <left> and <right> arrow keys.

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 13 Oct 2011 10:18:32 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years agoetc/NEWS: Fix a typo.
Eli Zaretskii [Thu, 13 Oct 2011 08:57:42 +0000 (10:57 +0200)]
etc/NEWS: Fix a typo.

12 years ago* lisp/emacs-lisp/timer.el (with-timeout): Make sure we cancel the timer
Stefan Monnier [Thu, 13 Oct 2011 05:18:12 +0000 (01:18 -0400)]
* lisp/emacs-lisp/timer.el (with-timeout): Make sure we cancel the timer
even in case of error; add debug spec; simplify data flow.
(with-timeout-handler): Remove.

12 years ago* calc.texi (Basic Operations on Units): Discuss temperature
Jay Belanger [Thu, 13 Oct 2011 02:50:58 +0000 (21:50 -0500)]
* calc.texi (Basic Operations on Units): Discuss temperature
  conversion (`u t') alongside with other unit conversions ('u c').

12 years ago* configure.in: Also look for tputs in libcurses. (Bug#9736)
Glenn Morris [Thu, 13 Oct 2011 02:16:59 +0000 (22:16 -0400)]
* configure.in: Also look for tputs in libcurses.  (Bug#9736)

12 years agoFix bugs #9738 & 9739 with a display string that ends in 2 newlines.
Eli Zaretskii [Wed, 12 Oct 2011 20:07:59 +0000 (22:07 +0200)]
Fix bugs #9738 & 9739 with a display string that ends in 2 newlines.

 src/xdisp.c (find_row_edges): Handle the case where ROW comes from a
 display string and the previous row comes from the same string and
 is empty.

12 years ago* doc.c (get_doc_string): Encode file name.
Stefan Monnier [Wed, 12 Oct 2011 19:08:04 +0000 (15:08 -0400)]
* doc.c (get_doc_string): Encode file name.

Fixes: debbugs:9735

12 years agoFix Bug#6019, Bug#9315.
Michael Albinus [Wed, 12 Oct 2011 18:32:35 +0000 (20:32 +0200)]
Fix Bug#6019, Bug#9315.

* files.el (set-auto-mode): Call `file-name-sans-versions' for the
complete `buffer-file-name', the local file name part could look
remotely (for example on VMS).

* net/ange-ftp.el (ange-ftp-run-real-handler): Make it an alias of
`tramp-run-real-handler'.
(ange-ftp-fix-name-for-vms): Handle the case, where `name' is
already quoted by '"'.

* net/tramp.el (tramp-rfn-eshadow-update-overlay): Ignore errors.
Let `file-name-handler-alist' be nil, the local file name part
could look remotely (for example on VMS).

12 years agoUpdates to Mark chapter in Emacs manual.
Chong Yidong [Wed, 12 Oct 2011 17:38:34 +0000 (13:38 -0400)]
Updates to Mark chapter in Emacs manual.

* mark.texi (Mark): Clarify description of disabled Transient Mark
mode.
(Setting Mark): Document prefix arg for C-x C-x.  Document primary
selection changes.  Mention that commands like C-y set the mark.
(Marking Objects): Add xref to Words node.  Note that mark-word
and mark-sexp also have the "extend region" behavior.
(Using Region): Mention M-$ in the table.  Document
mark-even-if-inactive here instead of in Mark Ring.
(Mark Ring): Move mark-even-if-inactive to Using Region.  Take
note of the "Mark Set" behavior.
(Disabled Transient Mark): Rename from "Persistent Mark"
(Bug#9688).  Callers changed.

* programs.texi (Expressions):
* text.texi (Words): Defer to Marking Objects for mark-word doc.

Fixes: debbugs:9689

12 years agoRemove incorrect comments about U+2028 LS character.
Eli Zaretskii [Wed, 12 Oct 2011 15:12:52 +0000 (17:12 +0200)]
Remove incorrect comments about U+2028 LS character.

See http://www.unicode.org/mail-arch/unicode-ml/y2011-m10/0048.html
for more details.

 src/bidi.c (bidi_level_of_next_char):
 src/xdisp.c (get_visually_first_element): Remove old incorrect
 comments regarding the Unicode Line Separator character.

12 years agosrc/bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR.
Eli Zaretskii [Wed, 12 Oct 2011 11:32:41 +0000 (13:32 +0200)]
src/bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 12 Oct 2011 10:18:25 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* configure.in: Remove check for -lintl (Bug#9713).
Paul Eggert [Wed, 12 Oct 2011 06:56:23 +0000 (23:56 -0700)]
* configure.in: Remove check for -lintl (Bug#9713).

The check breaks 'configure' in some CentOS 5.7 x86 configurations.
The check was helpful but not essential in Solaris 2.6 (1997),
and is no longer needed in Solaris 8 (2000).  Solaris 2.6 is
obsolete -- Sun dropped support for it in 2006 -- and without
access to that Silurian platform we can't maintain the code anyway.

12 years ago* alloc.c (Fgc_status): Do not access beyond zombies array
Dmitry Antipov [Wed, 12 Oct 2011 06:09:40 +0000 (23:09 -0700)]
* alloc.c (Fgc_status): Do not access beyond zombies array

boundary if nzombies > MAX_ZOMBIES.
* alloc.c (dump_zombies): Add missing format specifier.

12 years ago* xdisp.c (set_cursor_from_row): Simplify conditionals,
Paul Eggert [Wed, 12 Oct 2011 05:50:15 +0000 (22:50 -0700)]
* xdisp.c (set_cursor_from_row): Simplify conditionals,

to pacify GCC 4.6.1 x86-64 with -O2 -Wstrict-overflow.

12 years ago* lread.c (read_escape): Allow hex escapes as large as ?\xfffffff.
Paul Eggert [Wed, 12 Oct 2011 04:58:43 +0000 (21:58 -0700)]
* lread.c (read_escape): Allow hex escapes as large as ?\xfffffff.

Some packages use them to denote characters with modifiers.

12 years ago* doc/misc/ert.texi: Whitespace trivia to make main menu items line up better.
Glenn Morris [Wed, 12 Oct 2011 04:37:25 +0000 (21:37 -0700)]
* doc/misc/ert.texi: Whitespace trivia to make main menu items line up better.

12 years ago* lisp/textmodes/flyspell.el (flyspell-word): Move with-local-quit from here...
Stefan Monnier [Wed, 12 Oct 2011 02:48:40 +0000 (22:48 -0400)]
* lisp/textmodes/flyspell.el (flyspell-word): Move with-local-quit from here...
(flyspell-post-command-hook): ...to here.

12 years agoMake sendmail-query-once offer 3-way choice; avoid repeated queries.
Stefan Monnier [Tue, 11 Oct 2011 21:31:22 +0000 (17:31 -0400)]
Make sendmail-query-once offer 3-way choice; avoid repeated queries.
* mail/sendmail.el (send-mail-function): Don't use sendmail-query-once
if not needed.
(sendmail-query-once): Remove OS dependencies.  Make it a 3-way choice
using completion.  Protect against "slow" callers.
Remove the "message hack".

12 years ago* lisp/gnus/html2text.el (html2text-clean-anchor): Check for quotes around
Andreas Schwab [Tue, 11 Oct 2011 20:20:08 +0000 (22:20 +0200)]
* lisp/gnus/html2text.el (html2text-clean-anchor): Check for quotes around
`href' value.

12 years ago* src/lisp.h (GCPRO1_VAR, GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR)
Andreas Schwab [Tue, 11 Oct 2011 17:35:16 +0000 (19:35 +0200)]
* src/lisp.h (GCPRO1_VAR, GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR)
(GCPRO5_VAR, GCPRO6_VAR, UNGCPRO_VAR): Add whitespace to avoid
matching a pp-number.  Rename parameter var to var1.

12 years ago* minibuf.c (Finternal_complete_buffer): Fix last change.
Stefan Monnier [Tue, 11 Oct 2011 17:32:38 +0000 (13:32 -0400)]
* minibuf.c (Finternal_complete_buffer): Fix last change.

Fixes: debbugs:9709

12 years ago* lisp/isearch.el (isearch-lazy-highlight-word): New variable.
Juri Linkov [Tue, 11 Oct 2011 15:00:42 +0000 (18:00 +0300)]
* lisp/isearch.el (isearch-lazy-highlight-word): New variable.
(isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
Use it.

Fixes: debbugs:9727

12 years agospam.el (spam-check-BBDB): Simplify and support BBDB 3.x when searching. Drop `bbdb...
Teodor Zlatanov [Tue, 11 Oct 2011 14:24:55 +0000 (14:24 +0000)]
spam.el (spam-check-BBDB): Simplify and support BBDB 3.x when searching.  Drop `bbdb-cache'.

12 years agoAdd NEWS entry wrt which window gets selected after deletion
Martin Rudalics [Tue, 11 Oct 2011 09:30:34 +0000 (11:30 +0200)]
Add NEWS entry wrt which window gets selected after deletion

12 years agoMention which window gets selected when deleting the selected window.
Martin Rudalics [Tue, 11 Oct 2011 09:27:08 +0000 (11:27 +0200)]
Mention which window gets selected when deleting the selected window.

* windows.texi (Deleting Windows): Mention which window gets selected
when deleting the selected window.

12 years agoChangeLog fix.
Glenn Morris [Tue, 11 Oct 2011 07:28:27 +0000 (00:28 -0700)]
ChangeLog fix.

12 years agoSmall fix for f90-next-statement.
Glenn Morris [Tue, 11 Oct 2011 07:27:46 +0000 (00:27 -0700)]
Small fix for f90-next-statement.

* lisp/progmodes/f90.el (f90-next-statement):
Ignore preprocessor lines, like f90-previous-statement does.

12 years agoBugfix: message.el (message-signed-or-encrypted-p): Exclude header when checking...
Katsumi Yamaoka [Tue, 11 Oct 2011 05:51:09 +0000 (05:51 +0000)]
Bugfix: message.el (message-signed-or-encrypted-p): Exclude header when checking if there is signed or encrypted body in text/plain message.

12 years ago* lisp/eshell/eshell.el (eshell-command): History have to be saved only in interactiv...
thierry volpiatto [Tue, 11 Oct 2011 05:41:39 +0000 (07:41 +0200)]
* lisp/eshell/eshell.el (eshell-command): History have to be saved only in interactive use to avoid error.

12 years ago* lisp/minibuffer.el (completion-file-name-table): Fix last change,
Stefan Monnier [Tue, 11 Oct 2011 05:17:04 +0000 (01:17 -0400)]
* lisp/minibuffer.el (completion-file-name-table): Fix last change,
i.e. ignore normal errors but not the other ones.

12 years agoFix ChangeLog typo
Martin Rudalics [Mon, 10 Oct 2011 18:47:15 +0000 (20:47 +0200)]
Fix ChangeLog typo

12 years agoIn vc actions use quit-windows-on instead of delete-windows-on.
Martin Rudalics [Mon, 10 Oct 2011 17:52:03 +0000 (19:52 +0200)]
In vc actions use quit-windows-on instead of delete-windows-on.

* window.el (quit-windows-on): New function.
* vc/vc.el (vc-revert, vc-rollback):
* vc/vc-dispatcher.el (vc-finish-logentry): Call quit-windows-on
instead of deleting windows.  (Bug#4557) (Bug#5310) (Bug#5556)
(Bug#6183) (Bug#7074)((Bug#7447)

12 years agoFix doc-strings of special-display-... variables.
Martin Rudalics [Mon, 10 Oct 2011 06:31:07 +0000 (08:31 +0200)]
Fix doc-strings of special-display-... variables.

* window.el (special-display-buffer-names)
(special-display-regexps): Remove some remnants of earlier
changes from doc-strings.

12 years agoCorrections and tweaks to Help chapter in Emacs manual.
Chong Yidong [Sun, 9 Oct 2011 21:00:42 +0000 (17:00 -0400)]
Corrections and tweaks to Help chapter in Emacs manual.

* doc/emacs/help.texi (Help, Help Summary): Eliminate the unnecessary "help
option" terminology.
(Key Help): Add command names.  Define "documentation string".
(Name Help): Remove an over-long joke.
(Apropos): Document prefix args.  Remove duplicated descriptions.
(Help Mode): Add C-c C-b to table.  Update TAB binding.
(Package Keywords): Rename from "Library by Keyword".  Describe
new package menu interface.
(Help Files, Help Echo): Tweak description.

* doc/emacs/mini.texi: Various copyedits.

12 years ago* lisp/gnus/html2text.el (html2text-get-attr): Correctly handle attribute values
Andreas Schwab [Sun, 9 Oct 2011 16:51:38 +0000 (18:51 +0200)]
* lisp/gnus/html2text.el (html2text-get-attr): Correctly handle attribute values
containing "=".

12 years agoAdd version tag for frame-auto-hide-function (Bug#9699).
Martin Rudalics [Sun, 9 Oct 2011 12:33:56 +0000 (14:33 +0200)]
Add version tag for frame-auto-hide-function (Bug#9699).

12 years agoDescribe frame-auto-hide-function and related issues.
Martin Rudalics [Sun, 9 Oct 2011 12:26:29 +0000 (14:26 +0200)]
Describe frame-auto-hide-function and related issues.

* buffers.texi (The Buffer List): Describe how bury-buffer deals
with the selected window.
* windows.texi (Buffers and Windows): Reformulate text on how
replace-buffer-in-windows deals with a window.
(Quitting Windows): Describe how quit-window deals with a
standalone frame.  Describe new option frame-auto-hide-function.

12 years ago* net/tramp.el (tramp-file-name-handler): Add 'debug to the error
Michael Albinus [Sun, 9 Oct 2011 09:38:25 +0000 (11:38 +0200)]
* net/tramp.el (tramp-file-name-handler): Add 'debug to the error
condition.

12 years agoAdd a missing space in smtpmail-send-data
Leo Liu [Sun, 9 Oct 2011 01:44:43 +0000 (09:44 +0800)]
Add a missing space in smtpmail-send-data

http://debbugs.gnu.org/9701

12 years agof90 indentation fix.
Glenn Morris [Sat, 8 Oct 2011 21:52:08 +0000 (14:52 -0700)]
f90 indentation fix.

* lisp/progmodes/f90.el (f90-calculate-indent):
Give preprocessor lines before the first code statement zero indent.

Fixes: debbugs:9690

12 years agoSmall callint.c fix.
Glenn Morris [Sat, 8 Oct 2011 21:07:23 +0000 (14:07 -0700)]
Small callint.c fix.

* src/callint.c (Fcall_interactively): Give a more explicit error for the
'c' case with a non-character input.

Fixes: debbugs:8479

12 years ago* doc/misc/Makefile.in: Fix ert rules.
Glenn Morris [Sat, 8 Oct 2011 21:00:41 +0000 (14:00 -0700)]
* doc/misc/Makefile.in: Fix ert rules.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00224.html

12 years ago* doc/lispref/symbols.texi (Other Plists): Markup fix. (Bug#9702)
Glenn Morris [Sat, 8 Oct 2011 20:53:06 +0000 (13:53 -0700)]
* doc/lispref/symbols.texi (Other Plists): Markup fix.  (Bug#9702)

12 years ago* doc/lispref/positions.texi (Excursions): Update warning message.
Glenn Morris [Sat, 8 Oct 2011 20:52:03 +0000 (13:52 -0700)]
* doc/lispref/positions.texi (Excursions): Update warning message.

12 years ago* doc/emacs/mini.texi (Completion Options): Document completion-cycle-threshold.
Chong Yidong [Sat, 8 Oct 2011 19:17:34 +0000 (15:17 -0400)]
* doc/emacs/mini.texi (Completion Options): Document completion-cycle-threshold.

12 years agodoc/emacs/mule.texi (Bidirectional Editing): Correct some inaccuracies.
Eli Zaretskii [Sat, 8 Oct 2011 17:29:45 +0000 (19:29 +0200)]
doc/emacs/mule.texi (Bidirectional Editing): Correct some inaccuracies.

12 years agoRework count-words-region. New command count-words.
Chong Yidong [Sat, 8 Oct 2011 16:37:46 +0000 (12:37 -0400)]
Rework count-words-region.  New command count-words.

See discussion at http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00193.html

* lisp/simple.el (count-words-region): Always count in the region.
Report the number of lines and characters too.
(count-words): New command, which counts in the buffer if the
region is inactive, as count-words-region used to.
(count-words--message): New function.  Handle plurals.
(count-lines-region): Make it an alias for count-words-region.

* lisp/bindings.el (esc-map): Replace count-lines-region with
count-words-region.

* doc/emacs/basic.texi (Position Info): Omit page commands.  Document
count-words-region and count-words.

* doc/emacs/text.texi (Pages): Move what-page documentation here.

12 years agoDocument completion styles in Emacs manual; copyedits.
Chong Yidong [Sat, 8 Oct 2011 15:08:50 +0000 (11:08 -0400)]
Document completion styles in Emacs manual; copyedits.

* doc/emacs/mini.texi (Minibuffer File): Minor copyedits.  Use xref to
Remote Files node instead of linking directly to the Tramp manual.
(Minibuffer Edit): Add xref to Blank Lines.
(Completion): Add xref to Symbol Completion.  Remove redundant
example, which is repeated in the next node.
(Completion Commands): Minor clarifications.
(Completion Styles): New node, split from Completion Commands.
Document substring and initials styles.
(Strict Completion): Remove information duplicated in other nodes.
(Completion Options): Consolidate case difference discussion here.

* doc/emacs/files.texi (File Names): Add index entries.

* doc/emacs/help.texi (Help Mode): Fix kindex entries.

12 years agoFix doc-string typo in switch-to-buffer.
Martin Rudalics [Sat, 8 Oct 2011 14:01:55 +0000 (16:01 +0200)]
Fix doc-string typo in switch-to-buffer.

12 years agoDelete dedicated frame when killing its buffer. (Bug#9699)
Martin Rudalics [Sat, 8 Oct 2011 13:52:16 +0000 (15:52 +0200)]
Delete dedicated frame when killing its buffer.  (Bug#9699)

* window.el (window--delete): Delete dedicated frame unconditionally
when argument KILL is non-nil.  (Bug#9699)

12 years agoFix cursor positioning in hscrolled lines with R2L characters.
Eli Zaretskii [Sat, 8 Oct 2011 13:03:43 +0000 (15:03 +0200)]
Fix cursor positioning in hscrolled lines with R2L characters.

 src/xdisp.c (set_cursor_from_row): Fix cursor positioning in mixed L2R+R2L
 lines that are hscrolled on the left.

12 years agosrc/xdisp.c (hscroll_window_tree): Support hscroll in right-to-left lines.
Eli Zaretskii [Sat, 8 Oct 2011 12:15:08 +0000 (14:15 +0200)]
src/xdisp.c (hscroll_window_tree): Support hscroll in right-to-left lines.

12 years agoFix bug #4426 with buffer_posn_from_coords when header line is present.
Eli Zaretskii [Sat, 8 Oct 2011 10:58:50 +0000 (12:58 +0200)]
Fix bug #4426 with buffer_posn_from_coords when header line is present.

 dispnew.c (buffer_posn_from_coords): Account it.vpos for a possible
 presence of header-line.

12 years agoAuto-commit of generated files.
Glenn Morris [Sat, 8 Oct 2011 10:18:34 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* lisp/eshell/eshell.el (eshell-command): Avoid using hooks.
thierry volpiatto [Sat, 8 Oct 2011 06:08:00 +0000 (08:08 +0200)]
* lisp/eshell/eshell.el (eshell-command): Avoid using hooks.

12 years agoMerge from gnulib, fixing some 'configure' typos (Bug#9696).
Paul Eggert [Fri, 7 Oct 2011 21:15:00 +0000 (14:15 -0700)]
Merge from gnulib, fixing some 'configure' typos (Bug#9696).

* lib/signal.in.h, lib/sigprocmask.c, m4/gl-comp.m4:
* m4/gnulib-common.m4: Merge from gnulib.
Without this, 'configure' would say "func_gl_gnulib_m4code_pathmax:
command not found" on powerpc-apple-darwin9.8.0.

12 years ago* alloc.c: Add comment.
Paul Eggert [Fri, 7 Oct 2011 16:42:32 +0000 (09:42 -0700)]
* alloc.c: Add comment.

12 years agoCopyedits and updates for Emacs manual's first few chapters.
Chong Yidong [Fri, 7 Oct 2011 16:22:04 +0000 (12:22 -0400)]
Copyedits and updates for Emacs manual's first few chapters.

* doc/emacs/basic.texi (Inserting Text): Add xref to Completion.  Add
ucs-insert example, and document prefix argument.
(Moving Point): Fix introduction; C-f/C-b are no longer equivalent
to left/right.  Tweak left-char and right-char descriptions.
M-left and M-right are now bound to left-word/right-word.
(Erasing): Document delete-forward-char.

* doc/emacs/commands.texi (User Input): Define "input event" more clearly.
(Keys): Add xref to Echo Area.
(Commands): Clarify relation between commands and functions.

* doc/emacs/entering.texi (Entering Emacs): Define "startup screen".
Document window-splitting behavior with command-line inputs.
(Exiting): Remove obsolete paragraph about shells without suspend
functionality.

* doc/emacs/frames.texi (Non-Window Terminals): Index just "text-only
terminal", which is used throughout the manual now.

* doc/emacs/screen.texi (Screen, Menu Bar): Copyedits.
(Point): Remove duplicate paragraph on cursors, also in Screen.
(Mode Line): Trailing dashes no longer shown on X displays.

12 years ago* bindings.el ([M-left],[M-right]): Bind to left-word and right-word respectively.
Chong Yidong [Fri, 7 Oct 2011 16:05:10 +0000 (12:05 -0400)]
* bindings.el ([M-left],[M-right]): Bind to left-word and right-word respectively.

12 years ago* src/buffer.c (syms_of_buffer) <enable-multibyte-characters>: Don't
Stefan Monnier [Fri, 7 Oct 2011 13:08:47 +0000 (09:08 -0400)]
* src/buffer.c (syms_of_buffer) <enable-multibyte-characters>: Don't
advertise functionality which we discourage or doesn't work.

12 years agoAuto-commit of generated files.
Glenn Morris [Fri, 7 Oct 2011 10:19:41 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years agoFix alignment-related core dump during GC.
Paul Eggert [Fri, 7 Oct 2011 07:23:44 +0000 (00:23 -0700)]
Fix alignment-related core dump during GC.

* configure.in (GC_LISP_OBJECT_ALIGNMENT): Remove.
This is now done by src/alloc.c.
* src/alloc.c (GC_LISP_OBJECT_ALIGNMENT): Use offsetof, not __alignof__
or sizeof.  __alignof__ gives the wrong answer on Fedora x86-64
with GCC 4.6.1 when configured with CC='gcc -m32' --with-wide-int;
this makes Emacs dump core during garbage collection on rare
occasions.  sizeof is obviously inferior to offsetof here, so
stick with offsetof.
(GC_POINTER_ALIGNMENT): New macro.
(mark_memory): Omit 3rd (offset) arg; caller changed.
Don't assume EMACS_INT alignment is the same as pointer alignment.

12 years ago* lisp/cus-start.el (debug-on-quit): Fix custom type.
Glenn Morris [Fri, 7 Oct 2011 02:17:29 +0000 (22:17 -0400)]
* lisp/cus-start.el (debug-on-quit): Fix custom type.

12 years agoMerge changes made in Gnus trunk.
Gnus developers [Thu, 6 Oct 2011 22:11:15 +0000 (22:11 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Gnus Utility Functions): Add more references and explanations (bug#9683).
ecomplete.el (ecomplete-display-matches): Use a local keymap to handle bindings.
gnus-win.el (gnus-configure-windows): Protect against reading ephemeral groups outside of Gnus.

12 years ago(define-key-after): Clarify that the function is not useful for non-menu keymaps.
Lars Magne Ingebrigtsen [Thu, 6 Oct 2011 19:15:19 +0000 (21:15 +0200)]
(define-key-after): Clarify that the function is not useful for non-menu keymaps.

12 years ago* progmodes/gdb-mi.el (gdb): Fix typo in doc string.
Lars Magne Ingebrigtsen [Thu, 6 Oct 2011 16:11:38 +0000 (18:11 +0200)]
* progmodes/gdb-mi.el (gdb): Fix typo in doc string.

12 years agoUpdate Changelog
thierry volpiatto [Thu, 6 Oct 2011 16:06:01 +0000 (18:06 +0200)]
Update Changelog

12 years ago* lisp/eshell/eshell.el (eshell-command): Enable `eshell-mode' only in current minibu...
thierry volpiatto [Thu, 6 Oct 2011 15:56:15 +0000 (17:56 +0200)]
* lisp/eshell/eshell.el (eshell-command): Enable `eshell-mode' only in current minibuffer (Fix bug with recursive minibuffers).

12 years ago* lisp/eshell/eshell.el (eshell-command): Enable `eshell-mode' only in current minibu...
thierry volpiatto [Thu, 6 Oct 2011 15:18:48 +0000 (17:18 +0200)]
* lisp/eshell/eshell.el (eshell-command): Enable `eshell-mode' only in current minibuffer (Fix bug with recursive minibuffers).

12 years agoDocument exactly how emacsclient's -a "" starts the daemon.
Chong Yidong [Thu, 6 Oct 2011 15:13:45 +0000 (11:13 -0400)]
Document exactly how emacsclient's -a "" starts the daemon.

* doc/emacs/misc.texi (emacsclient Options): Document how emacsclient
  runs the Emacs daemon.

* doc/man/emacsclient.1: Document how -a "" starts the daemon.

Fixes: debbugs:9674

12 years ago* lisp/progmodes/gdb-mi.el (gdb): Doc fix.
Chong Yidong [Thu, 6 Oct 2011 14:55:10 +0000 (10:55 -0400)]
* lisp/progmodes/gdb-mi.el (gdb): Doc fix.

See http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00229.html

12 years agoshr.el (shr-tag-img): Don't get images displayed in tables.
Katsumi Yamaoka [Thu, 6 Oct 2011 09:25:26 +0000 (09:25 +0000)]
shr.el (shr-tag-img): Don't get images displayed in tables.

12 years ago* display.texi (Low-Level Font, Face Attributes, Font Lookup): Fix xref.
Chong Yidong [Wed, 5 Oct 2011 21:39:54 +0000 (17:39 -0400)]
* display.texi (Low-Level Font, Face Attributes, Font Lookup): Fix xref.

Fixes: debbugs:9675

12 years agoNew functions window-point-1 and set-window-point-1.
Martin Rudalics [Wed, 5 Oct 2011 08:59:13 +0000 (10:59 +0200)]
New functions window-point-1 and set-window-point-1.

* window.el (window-point-1, set-window-point-1): New functions.
(window-in-direction, record-window-buffer, window-state-get-1)
(display-buffer-record-window): Use window-point-1 instead of
window-point.
(set-window-buffer-start-and-point): Use set-window-point-1.

12 years agoNew option frame-auto-hide-function replacing frame-auto-delete.
Martin Rudalics [Wed, 5 Oct 2011 06:49:53 +0000 (08:49 +0200)]
New option frame-auto-hide-function replacing frame-auto-delete.

* window.el (frame-auto-hide-function): New option replacing
frame-auto-delete.  Suggested by Stefan Monnier.
(window--delete): Call frame-auto-hide-function instead of
investigating frame-auto-delete.

12 years ago* lisp/emacs-lisp/edebug.el: Heed checkdoc recommendations.
Stefan Monnier [Wed, 5 Oct 2011 05:30:03 +0000 (01:30 -0400)]
* lisp/emacs-lisp/edebug.el: Heed checkdoc recommendations.

12 years agoSmall perl-mode fixes.
Glenn Morris [Wed, 5 Oct 2011 05:28:55 +0000 (22:28 -0700)]
Small perl-mode fixes.

* lisp/progmodes/perl-mode.el (perl-electric-terminator): Doc fix.
(perl-calculate-indent): Suppress scan errors.  (Bug#2205)

12 years agoFix argument to buffer-live-p in read-char-choice
Leo Liu [Wed, 5 Oct 2011 03:37:21 +0000 (11:37 +0800)]
Fix argument to buffer-live-p in read-char-choice

12 years ago* lisp/mpc.el (mpc-tool-bar-map): Add labels.
Stefan Monnier [Wed, 5 Oct 2011 00:56:26 +0000 (20:56 -0400)]
* lisp/mpc.el (mpc-tool-bar-map): Add labels.

12 years ago* lisp/calendar/holidays.el (calendar-check-holidays): Doc fix.
Glenn Morris [Tue, 4 Oct 2011 17:26:55 +0000 (13:26 -0400)]
* lisp/calendar/holidays.el (calendar-check-holidays): Doc fix.

12 years agoMake frame iconification/deletion optional when burying buffers.
Martin Rudalics [Tue, 4 Oct 2011 15:28:25 +0000 (17:28 +0200)]
Make frame iconification/deletion optional when burying buffers.

* window.el (window--delete): New function.
(frame-auto-delete): Resuscitate option.
(bury-buffer, replace-buffer-in-windows)
(quit-window): Rewrite using window--delete.
(display-buffer-pop-up-frame, display-buffer-pop-up-window):
Pass display-buffer-mark-dedicated to window--display-buffer-2
(Bug#9639).

12 years agoTweak debbugs entry in gnus-bug-group-download-format-alist again.
Glenn Morris [Mon, 3 Oct 2011 23:27:29 +0000 (19:27 -0400)]
Tweak debbugs entry in gnus-bug-group-download-format-alist again.

* lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist):
Once again get the "maintainer" version of debbugs.gnu.org reports.

12 years ago* src/keyboard.c (read_key_sequence_remapped): New var.
Stefan Monnier [Mon, 3 Oct 2011 20:50:54 +0000 (16:50 -0400)]
* src/keyboard.c (read_key_sequence_remapped): New var.
(read_key_sequence): Compute remapping in the right buffer.
(command_loop_1): Use read_key_sequence's remapping directly.

12 years ago* lisp/pcmpl-unix.el (pcomplete/scp): Don't assume pcomplete-all-entries
Stefan Monnier [Mon, 3 Oct 2011 16:49:56 +0000 (12:49 -0400)]
* lisp/pcmpl-unix.el (pcomplete/scp): Don't assume pcomplete-all-entries
returns a list.  Add remote file name completion.
* lisp/comint.el (comint--table-subvert): Curry and get quote&unquote
functions as arguments.
(comint--complete-file-name-data): Adjust call accordingly.
* lisp/pcomplete.el (pcomplete--table-subvert): Remove.
(pcomplete-completions-at-point): Use comint--table-subvert instead.

Fixes: debbugs:9554

12 years ago* lisp/minibuffer.el (completion-table-case-fold): Use currying.
Stefan Monnier [Mon, 3 Oct 2011 15:03:00 +0000 (11:03 -0400)]
* lisp/minibuffer.el (completion-table-case-fold): Use currying.
(completion--styles-type, completion--cycling-threshold-type): New constants.
(completion-styles, completion-category-overrides)
(completion-cycle-threshold): Use them.
* lisp/pcomplete.el (pcomplete-completions-at-point): Adjust call to
completion-table-case-fold.

12 years ago* lisp/minibuffer.el (completion-category-overrides): Fix type of styles
Stephen Berman [Mon, 3 Oct 2011 14:47:40 +0000 (10:47 -0400)]
* lisp/minibuffer.el (completion-category-overrides): Fix type of styles
and add more user friendly tags.

Fixes: debbugs:9660

12 years ago* lisp/international/mule-cmds.el: Fix abuses of apply-partially.
Stefan Monnier [Mon, 3 Oct 2011 14:18:42 +0000 (10:18 -0400)]
* lisp/international/mule-cmds.el: Fix abuses of apply-partially.
(mule-input-method-string): New widget.
(default-input-method, language-info-custom-alist): Use it.

Fixes: debbugs:9661

12 years agoAuto-commit of generated files.
Glenn Morris [Mon, 3 Oct 2011 10:18:29 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years agoFix some (unrelated) typos in comment and ChangeLog.
Glenn Morris [Sun, 2 Oct 2011 23:53:59 +0000 (16:53 -0700)]
Fix some (unrelated) typos in comment and ChangeLog.

12 years agoRename `linux' to `gnu_linux'.
Richard M. Stallman [Sun, 2 Oct 2011 22:43:52 +0000 (18:43 -0400)]
Rename `linux' to `gnu_linux'.

12 years agoshr.el (shr-tag-img): Add a space at the end of an ALT image text to make asynchronou...
Lars Magne Ingebrigtsen [Sun, 2 Oct 2011 22:03:55 +0000 (22:03 +0000)]
shr.el (shr-tag-img): Add a space at the end of an ALT image text to make asynchronous adjacent image insertion work better.

12 years ago* lisp/pcomplete.el: Require comint.
Stefan Monnier [Sun, 2 Oct 2011 04:08:50 +0000 (00:08 -0400)]
* lisp/pcomplete.el: Require comint.
(pcomplete--common-suffix): Remove.
(pcomplete--common-quoted-suffix): Use comint--common-suffix instead.
(pcomplete--table-subvert): Sync with comint--table-subvert.
(pcomplete--entries): Use comint-completion-file-name-table.
* lisp/comint.el (comint-unquote-filename): Simplify.
(comint-completion-file-name-table): New function.
(comint--complete-file-name-data): Use it.
* src/dired.c (file_name_completion): Don't expand file name.
(Ffile_name_completion, Ffile_name_all_completions): Expand file name
before checking file name handler.

Fixes: debbugs:9616

12 years ago* pcmpl-gnu.el: Use lexical-binding.
Stefan Monnier [Sun, 2 Oct 2011 01:04:01 +0000 (21:04 -0400)]
* pcmpl-gnu.el: Use lexical-binding.
(pcmpl-gnu-with-file-buffer): Fix last change.

12 years ago* lisp/pcmpl-gnu.el (pcmpl-gnu-with-file-buffer): New macro.
Stefan Monnier [Sun, 2 Oct 2011 01:00:17 +0000 (21:00 -0400)]
* lisp/pcmpl-gnu.el (pcmpl-gnu-with-file-buffer): New macro.
(pcmpl-gnu-tar-buffer): Remove.
(pcmpl-gnu-with-file-buffer): Use it to avoid leaving the tar's buffer
avoid.  Make sure pcomplete-suffix-list is only changed temporarily.
Don't look inside the tar's file is it's too large.

Fixes: debbugs:9643

12 years ago* src/minibuf.c (Finternal_complete_buffer): Only show internal buffers if
Stefan Monnier [Sun, 2 Oct 2011 00:25:27 +0000 (20:25 -0400)]
* src/minibuf.c (Finternal_complete_buffer): Only show internal buffers if
they've been requested explicitly.

Fixes: debbugs:9591