bpt/emacs.git
12 years agoBump version to 24.0.95.
Chong Yidong [Mon, 2 Apr 2012 04:38:31 +0000 (12:38 +0800)]
Bump version to 24.0.95.
Regenerate AUTHORS and ldefs-boot.el.

12 years ago* doc/emacs/custom.texi (Changing a Variable): Fix example.
Dani Moncayo [Mon, 2 Apr 2012 04:18:06 +0000 (12:18 +0800)]
* doc/emacs/custom.texi (Changing a Variable): Fix example.

12 years agoSpelling fixes.
Paul Eggert [Mon, 2 Apr 2012 00:43:32 +0000 (17:43 -0700)]
Spelling fixes.

12 years agoMore tweaks about emacsclient on MS-Windows.
Eli Zaretskii [Sun, 1 Apr 2012 20:47:58 +0000 (23:47 +0300)]
More tweaks about emacsclient on MS-Windows.

Fixes: debbugs:11091

12 years agoFix copyright and authors lines in Org
Bastien Guerry [Sun, 1 Apr 2012 20:27:06 +0000 (22:27 +0200)]
Fix copyright and authors lines in Org

12 years agoFix copyright declaration in ob-fortran.el
Bastien Guerry [Sun, 1 Apr 2012 19:55:11 +0000 (21:55 +0200)]
Fix copyright declaration in ob-fortran.el

12 years agoNEWS fix.
Glenn Morris [Sun, 1 Apr 2012 19:32:29 +0000 (12:32 -0700)]
NEWS fix.

12 years agoFix bug in org-todo.
Bastien Guerry [Sun, 1 Apr 2012 18:37:50 +0000 (20:37 +0200)]
Fix bug in org-todo.

12 years agoImprove documentation of emacsclient -c and -t on MS-Windows.
Eli Zaretskii [Sun, 1 Apr 2012 17:44:17 +0000 (20:44 +0300)]
Improve documentation of emacsclient -c and -t on MS-Windows.

 doc/emacs/misc.texi (emacsclient Options): More clarifications about -t
 and -c on MS-Windows.

Fixes: debbugs:11091

12 years agoFix unsafe use of alloca reported in bug #11138.
Eli Zaretskii [Sun, 1 Apr 2012 16:55:30 +0000 (19:55 +0300)]
Fix unsafe use of alloca reported in bug #11138.

 src/w32menu.c (simple_dialog_show, add_menu_item): Use SAFE_ALLOCA
 instead of alloca.

12 years agoFixes: debbugs:11141
Andreas Schwab [Sun, 1 Apr 2012 16:42:57 +0000 (18:42 +0200)]
Fixes: debbugs:11141

* w32menu.c (is_simple_dialog): Properly check lisp types.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 1 Apr 2012 10:22:13 +0000 (06:22 -0400)]
Auto-commit of loaddefs files.

12 years agoUpdate to Org version 7.8.07 (commit da0e6f in Org's repo)
Bastien Guerry [Sun, 1 Apr 2012 09:49:25 +0000 (11:49 +0200)]
Update to Org version 7.8.07 (commit da0e6f in Org's repo)

12 years agoRename file-subdir-of-p to file-in-directory-p.
Chong Yidong [Sun, 1 Apr 2012 02:44:24 +0000 (10:44 +0800)]
Rename file-subdir-of-p to file-in-directory-p.

* lisp/files.el (file-in-directory-p): Rename from file-subdir-of-p.
Handle root directory properly.
(copy-directory): Caller changed.

* lisp/dired-aux.el (dired-copy-file-recursive, dired-create-files):
* lisp/net/tramp.el (tramp-file-name-for-operation): Callers changed.

* doc/lispref/files.texi (Kinds of Files): file-subdir-of-p renamed to
file-in-directory-p.

12 years agoDoc fix for xterm-extra-capabilities
Glenn Morris [Sat, 31 Mar 2012 20:22:04 +0000 (13:22 -0700)]
Doc fix for xterm-extra-capabilities

* lisp/term/xterm.el (xterm-extra-capabilities): Doc fix.

* etc/PROBLEMS: Mention xterm-extra-capabilities issue.

12 years ago* lisp/language/indian.el ("Devanagari"): Fix typo.
Glenn Morris [Sat, 31 Mar 2012 20:05:46 +0000 (13:05 -0700)]
* lisp/language/indian.el ("Devanagari"): Fix typo.

Fixes: debbugs:11103

12 years agoRevert 2012-03-28 calendar change
Glenn Morris [Sat, 31 Mar 2012 20:03:59 +0000 (13:03 -0700)]
Revert 2012-03-28 calendar change

* lisp/calendar/calendar.el (calendar-window-list)
(calendar-hide-window): Restore.
(calendar-exit): Use calendar-window-list, calendar-hide-window again.

Fixes: debbugs:11140

12 years agoEdebug doc fixes
Glenn Morris [Sat, 31 Mar 2012 19:58:05 +0000 (12:58 -0700)]
Edebug doc fixes

* doc/lispref/edebug.texi (Instrumenting Macro Calls):
Mention defining macros at instrumentation time.
(Edebug Options): Mention edebug-unwrap-results.

* lisp/emacs-lisp/edebug.el (edebug-unwrap-results): Doc fix.
Comments.

* admin/FOR-RELEASE: Markup.

12 years agoFix bug #11063 with move_it_by_lines when there's a before-string at bol.
Eli Zaretskii [Sat, 31 Mar 2012 19:30:53 +0000 (22:30 +0300)]
Fix bug #11063 with move_it_by_lines when there's a before-string at bol.

 src/xdisp.c (move_it_by_lines): When DVPOS is positive, and the
 position we get to after a call to move_it_to fails the
 IS_POS_VALID_AFTER_MOVE_P test, move to the next buffer position
 only if we wind up in a string from display property.

12 years agoFix bug #7464 with mouse highlight after "C-x 1".
Eli Zaretskii [Sat, 31 Mar 2012 18:10:34 +0000 (21:10 +0300)]
Fix bug #7464 with mouse highlight after "C-x 1".

 src/window.c (Fdelete_other_windows_internal): Invalidate the row
 and column information about mouse highlight, so that redisplay
 restores it after reallocating the glyph matrices.

12 years agoRemove an incorrect assertion on move_it_by_lines.
Eli Zaretskii [Sat, 31 Mar 2012 17:08:38 +0000 (20:08 +0300)]
Remove an incorrect assertion on move_it_by_lines.

 src/xdisp.c (move_it_by_lines): Remove the assertion that
 "it->current_x == 0 && it->hpos == 0" which can be legitimately
 violated when there's a before-string at the beginning of a line.
 (Bug#11063)

12 years agoImprove documentation of 'cursor' text property.
Eli Zaretskii [Sat, 31 Mar 2012 10:27:04 +0000 (13:27 +0300)]
Improve documentation of 'cursor' text property.

 doc/lispref/text.texi (Special Properties): Clarify the description of the
 effect of integer values of the 'cursor' property on cursor
 position.  See the discussions in bug#11068 for more details and
 context.

12 years agoFix bug #11091 with inaccurate docs of emacsclient on MS-Windows.
Eli Zaretskii [Sat, 31 Mar 2012 09:52:20 +0000 (12:52 +0300)]
Fix bug #11091 with inaccurate docs of emacsclient on MS-Windows.

 doc/emacs/misc.texi (emacsclient Options): Document peculiarities of new
 frame creation on MS-Windows under -c or -t options.

12 years agoFix cursor positioning in rows completely covered by display strings.
Eli Zaretskii [Sat, 31 Mar 2012 07:45:33 +0000 (10:45 +0300)]
Fix cursor positioning in rows completely covered by display strings.

 src/xdisp.c (set_cursor_from_row): If `cursor' property on a display
 string comes from a `display' text property, use the buffer
 position of that property as if we actually saw that position in
 the row's glyphs.

12 years agolispref/edebug.texi copyedits
Glenn Morris [Sat, 31 Mar 2012 01:09:30 +0000 (21:09 -0400)]
lispref/edebug.texi copyedits

* doc/lispref/edebug.texi (Edebug Eval, Specification List, Edebug Options):
Copyedits.

12 years agoRemove debug code.
Chong Yidong [Fri, 30 Mar 2012 16:52:52 +0000 (00:52 +0800)]
Remove debug code.

12 years agoFix copying of symlinks.
Thierry Volpiatto [Fri, 30 Mar 2012 16:49:29 +0000 (00:49 +0800)]
Fix copying of symlinks.

* dired-aux.el (dired-copy-file-recursive, dired-create-files):
Check if file is a symlink (Bug#10489).

* files.el (copy-directory): Likewise.

12 years agoUpdates for Display chapter of Lisp manual.
Chong Yidong [Fri, 30 Mar 2012 16:31:24 +0000 (00:31 +0800)]
Updates for Display chapter of Lisp manual.

* doc/lispref/display.texi (Image Formats): Add imagemagick type.
(Image Descriptors): Mention how they are used.
(ImageMagick Images): Clarify role of imagemagick-register-types.
(Character Display): Don't mention glyph tables.
(Display Tables): Use make-glyph-code in example.
(Glyphs): Avoid "simple glyph code" terminology.  Note that glyph
tables are semi-obsolete.  De-document create-glyph.
(Glyphless Chars): Note that display tables override this.
(Bidirectional Display): Copyedits.  Introduce "bidirectional
reordering" terminology, and use it.

* doc/emacs/files.texi (File Conveniences): Clarify Imagemagick discussion.

* lisp/image.el (imagemagick-types-inhibit)
(imagemagick-register-types): Doc fix.

12 years agoComment.
Glenn Morris [Fri, 30 Mar 2012 16:21:11 +0000 (09:21 -0700)]
Comment.

12 years ago* doc/lispref/edebug.texi (Jumping): Give name of `i' binding.
Glenn Morris [Fri, 30 Mar 2012 16:12:37 +0000 (09:12 -0700)]
* doc/lispref/edebug.texi (Jumping): Give name of `i' binding.

12 years agoispell.el (ispell-get-extended-character-mode): Make sure extended-character-mode...
Agustín Martín [Fri, 30 Mar 2012 09:45:11 +0000 (11:45 +0200)]
ispell.el (ispell-get-extended-character-mode): Make sure extended-character-mode is nil for hunspell

Work around hunspell not ignoring extended-character-mode
set from pipe mode by making sure extended-character-mode
is nil for hunspell.

12 years agoFix bug #11068 with window display when default face was remapped.
Eli Zaretskii [Fri, 30 Mar 2012 08:45:27 +0000 (11:45 +0300)]
Fix bug #11068 with window display when default face was remapped.

 src/xdisp.c (append_space_for_newline): If the default face was
 remapped, use the remapped face for the appended newline.
 (extend_face_to_end_of_line): Use the remapped default face for
 extending the face to the end of the line.
 (display_line): Call extend_face_to_end_of_line when the default
 face was remapped.

12 years agohelp-with-tutorial buffer-read-only fix
Glenn Morris [Fri, 30 Mar 2012 03:59:52 +0000 (20:59 -0700)]
help-with-tutorial buffer-read-only fix

* lisp/tutorial.el (help-with-tutorial):
Ensure local variables don't happen to make the buffer read-only.

Fixes: debbugs:11127

12 years ago* lisp/progmodes/perl-mode.el (perl-indent-line): Use `noindent' in strings.
Stefan Monnier [Fri, 30 Mar 2012 03:13:04 +0000 (23:13 -0400)]
* lisp/progmodes/perl-mode.el (perl-indent-line): Use `noindent' in strings.
(perl-calculate-indent): Return `noindent' in strings.

12 years agoDiscourage in comments from defining HAVE_GETCWD on MS-Windows.
Eli Zaretskii [Thu, 29 Mar 2012 20:06:39 +0000 (22:06 +0200)]
Discourage in comments from defining HAVE_GETCWD on MS-Windows.

 src/s/ms-w32.h: Discourage from defining HAVE_GETCWD.
 nt/config.nt: Discourage from defining HAVE_GETCWD.

12 years agocalendar/calendar.el (calendar-exit): Use `quit-windows-on' instead of
Sam Steingold [Thu, 29 Mar 2012 14:00:00 +0000 (10:00 -0400)]
calendar/calendar.el (calendar-exit): Use `quit-windows-on' instead of
the broken adhockery which does not prevent calendar buffers from
being displayed at random after exit.
(calendar-window-list, calendar-hide-window): Remove the broken adhockery.

12 years agoDoc and lispref updates related to searching
Glenn Morris [Wed, 28 Mar 2012 19:30:12 +0000 (12:30 -0700)]
Doc and lispref updates related to searching

* doc/lispref/searching.texi (Regexp Functions, Regexp Search):
(Simple Match Data, Saving Match Data, Standard Regexps): Copyedits.
(Regexp Functions): Mention regexp-opt is not guaranteed.
Mention regexp-opt-charset.
(Regexp Search): Recommend against looking-back.
(Search and Replace): Use Texinfo recommended quote convention.
Add more query-replace-map items.  List multi-query-replace-map items.

* lisp/replace.el (query-replace-map): Doc fix.

* admin/FOR-RELEASE: Related markup.

12 years ago* src/keyboard.c (safe_run_hooks_error): Don't unquote strings.
Stefan Monnier [Wed, 28 Mar 2012 15:54:54 +0000 (11:54 -0400)]
* src/keyboard.c (safe_run_hooks_error): Don't unquote strings.

12 years agoFixes: debbugs:11109
Andreas Schwab [Wed, 28 Mar 2012 10:12:02 +0000 (12:12 +0200)]
Fixes: debbugs:11109

* vc/vc-git.el (vc-git-state): Don't try to match all of the diff
contents.

12 years agoComment
Glenn Morris [Wed, 28 Mar 2012 08:02:53 +0000 (01:02 -0700)]
Comment

12 years agolispref/searching.tex small edits
Glenn Morris [Wed, 28 Mar 2012 07:57:42 +0000 (00:57 -0700)]
lispref/searching.tex small edits

* doc/lispref/searching.texi (Regular Expressions, Regexp Special):
(Regexp Backslash, Regexp Example): Copyedits.
(Regexp Special): Mention collation.
Clarify char classes with an example.

12 years agoSpelling fixes.
Paul Eggert [Wed, 28 Mar 2012 07:24:26 +0000 (00:24 -0700)]
Spelling fixes.

12 years ago* lisp/emacs-lisp/avl-tree.el (avl-tree--enter-balance): Fix paren typo.
Stefan Monnier [Tue, 27 Mar 2012 20:43:09 +0000 (16:43 -0400)]
* lisp/emacs-lisp/avl-tree.el (avl-tree--enter-balance): Fix paren typo.
(avl-tree--check, avl-tree--check-node): New funs.

Fixes: debbugs:11077

12 years agoNEWS pedantry
Glenn Morris [Tue, 27 Mar 2012 20:24:48 +0000 (16:24 -0400)]
NEWS pedantry

12 years agoOptionally avoid that switching to previous or next buffer shows that buffer twice.
Martin Rudalics [Tue, 27 Mar 2012 09:22:01 +0000 (11:22 +0200)]
Optionally avoid that switching to previous or next buffer shows that buffer twice.

* window.el (switch-to-visible-buffer): New option.
(switch-to-prev-buffer, switch-to-next-buffer): Observe
switch-to-visible-buffer.  Make sure that checking for a window
showing a buffer already is done on the same frame.

* windows.texi (Window History): Describe new option
switch-to-visible-buffer.

12 years agoSmall doc and elisp manual fixes related to searching
Glenn Morris [Tue, 27 Mar 2012 06:46:42 +0000 (23:46 -0700)]
Small doc and elisp manual fixes related to searching

* doc/lispref/searching.texi (String Search): Add xref to Emacs manual.
Copyedits.  Mention the function word-search-regexp.
(Searching and Case): Add xref to Emacs manual.  Copyedits.

* src/search.c (Fword_search_backward_lax, Fword_search_forward_lax):
Doc fixes.

12 years ago* lisp/startup.el (mail-host-address): Doc fix.
Glenn Morris [Tue, 27 Mar 2012 06:45:12 +0000 (23:45 -0700)]
* lisp/startup.el (mail-host-address): Doc fix.

12 years ago* doc/lispref/processes.texi (Network Servers): Standardize apostrophe usage.
Glenn Morris [Tue, 27 Mar 2012 00:50:49 +0000 (20:50 -0400)]
* doc/lispref/processes.texi (Network Servers): Standardize apostrophe usage.

12 years agoMore lispref/os.texi small edits
Glenn Morris [Tue, 27 Mar 2012 00:49:32 +0000 (20:49 -0400)]
More lispref/os.texi small edits

* doc/lispref/os.texi (System Environment): Copyedits.
Remove some examples that do not seem useful.  Mention setenv third arg.
tty-erase-char does not seem to be nil under a window-system.
(User Identification): Copyedits.
Remove some examples that do not seem useful.

12 years ago* emacs-lisp/bytecomp.el (byte-compile-constants-vector): Allow more
Stefan Monnier [Mon, 26 Mar 2012 19:10:00 +0000 (15:10 -0400)]
* emacs-lisp/bytecomp.el (byte-compile-constants-vector): Allow more
than 197 variables.

12 years agodispextern.h (struct glyph): Fix previous change. Change the bit length of glyphless...
Kenichi Handa [Mon, 26 Mar 2012 05:43:05 +0000 (14:43 +0900)]
dispextern.h (struct glyph): Fix previous change.  Change the bit length of glyphless.ch to 25 (Bug#11082).

12 years agoNew variable selection-inhibit-update-commands, for inhibiting selection updates.
Chong Yidong [Mon, 26 Mar 2012 04:06:31 +0000 (12:06 +0800)]
New variable selection-inhibit-update-commands, for inhibiting selection updates.

* keyboard.c (Vselection_inhibit_update_commands): New variable.
(command_loop_1): Use it; inhibit selection update for
handle-select-window too.

Fixes: debbugs:8996

12 years ago* vc/vc-git.el (vc-git-state): Avoid unnecessarily locking.
Ami Fischman [Mon, 26 Mar 2012 03:08:15 +0000 (11:08 +0800)]
* vc/vc-git.el (vc-git-state): Avoid unnecessarily locking.

12 years agoMore small edits for lispref/os.texi
Glenn Morris [Mon, 26 Mar 2012 01:35:47 +0000 (18:35 -0700)]
More small edits for lispref/os.texi

* doc/lispref/os.texi (Killing Emacs): Copyedits.
(Suspending Emacs): Copyedits.  Mention not very relevant with GUIs.
Shorten the example, use more standard shell prompts.

* lisp/files.el (save-buffers-kill-emacs): Doc fix.

12 years agoSmall edits for lispref/os.texi
Glenn Morris [Mon, 26 Mar 2012 00:37:04 +0000 (17:37 -0700)]
Small edits for lispref/os.texi

* doc/lispref/os.texi (Startup Summary): Copyedits.  Fix startup screen logic.
(Init File): Copyedits.
(Command-Line Arguments): Copyedits.  Do not mention argv alias.

* lisp/startup.el (normal-top-level, command-line, command-line-1):
Give them doc strings.

12 years agoRemove dead MSVC-specific code.
Fabrice Popineau [Sun, 25 Mar 2012 18:30:50 +0000 (20:30 +0200)]
Remove dead MSVC-specific code.

 src/w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific code.

12 years agoFix parallel "make install" on MS-Windows.
Eli Zaretskii [Sun, 25 Mar 2012 18:17:46 +0000 (20:17 +0200)]
Fix parallel "make install" on MS-Windows.

 nt/makefile.w32-in (install-bin): Don't copy addpm.exe here.  Use
 $(DIRNAME)_same-dir.tst instead of same-dir.tst, to avoid stepping
 on other (parallel) Make job's toes.
 (install-other-dirs-nmake, install-other-dirs-gmake): Depend on `all'.
 (install-shortcuts): Depend on $(INSTALL_DIR)/bin.  Copy addpm.exe
 here.
 (maybe-copy-distfiles-CMD, maybe-copy-distfiles-SH, dist): Depend
 on create-tmp-dist-dir.
 nt/nmake.defs (DIRNAME): New variable.
 (IFNOTSAMEDIR): Use $(DIRNAME)_same-dir.tst instead of
 same-dir.tst.
 nt/gmake.defs (DIRNAME): New variable.
 (IFNOTSAMEDIR): Use $(DIRNAME)_same-dir.tst instead of
 same-dir.tst, to avoid conflicts between several (parallel) Make
 jobs.
 lisp/makefile.w32-in (install): Use $(DIRNAME)_same-dir.tst instead
 of same-dir.tst, to avoid stepping on other (parallel) Make job's
 toes.
 leim/makefile.w32-in (install): Use $(DIRNAME)_same-dir.tst instead
 of same-dir.tst, to avoid stepping on other (parallel) Make job's
 toes.

12 years agodispextern.h (struct glyph): Change the bit length of glyphless.ch to 22 to make...
Kenichi Handa [Sun, 25 Mar 2012 15:35:23 +0000 (00:35 +0900)]
dispextern.h (struct glyph): Change the bit length of glyphless.ch to 22 to make the member glyphless fit in 32 bits.

12 years agoFix interaction of load-theme with cust-theme.el.
Chong Yidong [Sun, 25 Mar 2012 14:05:51 +0000 (22:05 +0800)]
Fix interaction of load-theme with cust-theme.el.

* lisp/custom.el (load-theme): Even if NO-ENABLE arg is t, reenable the
theme if it was previously enabled before (Bug#11031).

* lisp/cus-theme.el (customize-create-theme, custom-theme-revert): Doc fixes.

12 years agoFix race condition in url-queue when doing the callback
Lars Magne Ingebrigtsen [Sun, 25 Mar 2012 13:38:22 +0000 (15:38 +0200)]
Fix race condition in url-queue when doing the callback

* url-queue.el (url-queue-kill-job): Check whether the buffer has
been killed asynchronously before selecting it.

12 years agoFix for custom-theme-write-faces.
Chong Yidong [Sun, 25 Mar 2012 12:52:49 +0000 (20:52 +0800)]
Fix for custom-theme-write-faces.

* lisp/cus-theme.el (custom-theme-write-faces): Retrieve current face
spec with custom-face-get-current-spec if its :shown-value is not
determined yet.

Fixes: debbugs:9337

12 years agoUpdates to Display chapter of Lisp manual.
Chong Yidong [Sun, 25 Mar 2012 07:58:59 +0000 (15:58 +0800)]
Updates to Display chapter of Lisp manual.

* doc/lispref/display.texi (Fringes): Note that fringes are shown on graphical
displays only.
(Fringe Size/Pos, Fringe Bitmaps, Making Buttons): Clarifications.
(Replacing Specs): Clarify example.
(Manipulating Buttons): Note that button-at can return a marker.
(Buttons): Minor rewrite.
(Character Display): New node.  Consolidate all character display
related nodes into its subsections.
(Usual Display): Character 127 is also affected by ctl-arrow.
(Display Tables): Improve example.

* lisp/button.el (button-at): Minor addition to docstring.

12 years agoFix bug #9960 with MSVC build on MS-Windows.
Eli Zaretskii [Sat, 24 Mar 2012 13:43:21 +0000 (15:43 +0200)]
Fix bug #9960 with MSVC build on MS-Windows.

 src/s/ms-w32.h (tzname): Include time.h before redirecting to
 _tzname.  Fixes the MSVC build.

12 years ago* vc/vc.el (vc-merge): Fix a prompt.
Simon Leinen [Sat, 24 Mar 2012 13:23:23 +0000 (21:23 +0800)]
* vc/vc.el (vc-merge): Fix a prompt.

12 years ago* mwheel.el (mwheel-scroll): Call deactivate-mark at the right point.
Chong Yidong [Sat, 24 Mar 2012 11:05:39 +0000 (19:05 +0800)]
* mwheel.el (mwheel-scroll): Call deactivate-mark at the right point.

Fixes: debbugs:9623

12 years ago* xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6
Andreas Schwab [Sat, 24 Mar 2012 09:29:00 +0000 (10:29 +0100)]
* xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6
characters.

12 years agoFixes: debbugs:11080
Andreas Schwab [Sat, 24 Mar 2012 08:32:50 +0000 (09:32 +0100)]
Fixes: debbugs:11080

* xterm.c (XTread_socket): Only modify handling_signal if
!SYNC_INPUT.

12 years agoFix bug #11073 with bidi-related crashes displaying some byte sequences.
Eli Zaretskii [Fri, 23 Mar 2012 12:32:23 +0000 (14:32 +0200)]
Fix bug #11073 with bidi-related crashes displaying some byte sequences.

 src/bidi.c (bidi_fetch_char): Use STRING_CHAR_AND_LENGTH instead of
 FETCH_MULTIBYTE_CHAR followed by CHAR_BYTES.  Prevents crashes
 when fetching a multibyte character consumes more bytes than
 CHAR_BYTES returns, due to unification of CJK characters in
 string_char.

12 years ago* src/process.c (wait_reading_process_output): Handle pty disconnect
Troels Nielsen [Fri, 23 Mar 2012 12:23:14 +0000 (08:23 -0400)]
* src/process.c (wait_reading_process_output): Handle pty disconnect
by refraining from sending oneself a SIGCHLD.

Fixes: debbugs:10933

12 years agoMerge changes made in No Gnus
Gnus developers [Fri, 23 Mar 2012 11:22:21 +0000 (11:22 +0000)]
Merge changes made in No Gnus

2012-03-22  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 * auth-source.el (auth-source-netrc-create): Quote tokens that contain
 "#" to avoid having them interpreted as comments.
2012-03-22  Peder O. Klingenberg  <peder@klingenberg.no>  (tiny change)
 * gnus.texi (Archived Messages): Update `gnus-message-archive-group' to
 reflect the new default.

12 years ago* lisp/newcomment.el (comment-choose-indent): No space after BOL.
Stefan Monnier [Fri, 23 Mar 2012 02:46:31 +0000 (22:46 -0400)]
* lisp/newcomment.el (comment-choose-indent): No space after BOL.

12 years ago* lisp/window.el (switch-to-prev-buffer): Revert last patch because the
Sam Steingold [Thu, 22 Mar 2012 20:49:04 +0000 (16:49 -0400)]
* lisp/window.el (switch-to-prev-buffer): Revert last patch because the
bug turned out to be an advertised feature (Elisp manual 28.14).

12 years agoTweak previous vz-bzr change yet again
Glenn Morris [Thu, 22 Mar 2012 19:57:43 +0000 (15:57 -0400)]
Tweak previous vz-bzr change yet again

12 years agoTweak previous vc-bzr change
Glenn Morris [Thu, 22 Mar 2012 19:17:43 +0000 (15:17 -0400)]
Tweak previous vc-bzr change

12 years agoUse bzr status --no-classify when supported (bug#6724)
Glenn Morris [Thu, 22 Mar 2012 19:06:03 +0000 (15:06 -0400)]
Use bzr status --no-classify when supported (bug#6724)

* lisp/vc/vc-bzr.el (vc-bzr-status-switches): New option.
(vc-bzr-command): If running "status", pass vc-bzr-status-switches.

12 years agoFix starttls-related error message under Windows
Lars Magne Ingebrigtsen [Thu, 22 Mar 2012 18:42:12 +0000 (19:42 +0100)]
Fix starttls-related error message under Windows

* net/network-stream.el (network-stream-open-starttls): Make error
message under Windows be less misleading.

12 years ago* lisp/progmodes/etags.el (etags-list-tags): Only use tags which goto-func
Liang Wang [Thu, 22 Mar 2012 14:46:05 +0000 (10:46 -0400)]
* lisp/progmodes/etags.el (etags-list-tags): Only use tags which goto-func
understands.

Fixes: debbugs:9942

12 years agoFix corner case in end-of-visible-line.
Chong Yidong [Thu, 22 Mar 2012 07:38:05 +0000 (15:38 +0800)]
Fix corner case in end-of-visible-line.

* lisp/simple.el (end-of-visible-line): Handle return value of
next-single-property-change properly.

Fixes: debbugs:9371

12 years agoFor line prefixes, use default face; don't inherit from previous line.
Chong Yidong [Thu, 22 Mar 2012 07:08:17 +0000 (15:08 +0800)]
For line prefixes, use default face; don't inherit from previous line.

* src/dispextern.h (struct it): New member string_from_prefix_prop_p.

* src/xdisp.c (push_prefix_prop): Renamed from push_display_prop.
Mark string as coming from a prefix property.
(handle_face_prop): Use default face for prefix strings.
(pop_it, reseat_1): Save and restore string_from_prefix_prop_p.

Fixes: debbugs:4281

12 years ago* emacs/dired.texi (Operating on Files): Fix dired-recursive-copies default.
Glenn Morris [Thu, 22 Mar 2012 06:47:01 +0000 (23:47 -0700)]
* emacs/dired.texi (Operating on Files): Fix dired-recursive-copies default.

12 years agoDocument string-prefix-p
Glenn Morris [Thu, 22 Mar 2012 06:21:28 +0000 (23:21 -0700)]
Document string-prefix-p

* doc/lispref/strings.texi (Text Comparison): Mention string-prefix-p.
* etc/NEWS: Belated entry.

12 years agomerge trunk
Kenichi Handa [Thu, 22 Mar 2012 04:23:16 +0000 (13:23 +0900)]
merge trunk

12 years agointernational/quail.el (quail-insert-kbd-layout): Fix previous change. To avoid...
Kenichi Handa [Thu, 22 Mar 2012 04:20:07 +0000 (13:20 +0900)]
international/quail.el (quail-insert-kbd-layout): Fix previous change.  To avoid unwanted bidi reordering, use bidi-string-mark-left-to-right instead of inserting LRO and PDF.

12 years ago* lisp/progmodes/ruby-mode.el: Don't confuse "end:" for "end".
Dmitry Gutov [Wed, 21 Mar 2012 18:33:07 +0000 (14:33 -0400)]
* lisp/progmodes/ruby-mode.el: Don't confuse "end:" for "end".
(ruby-block-end-re, ruby-delimiter, ruby-parse-partial)
(ruby-beginning-of-indent): Be more careful with the difference
between word-boundary and symbol boundary.
(ruby-mode-syntax-table): Make : a symbol constituent.

Fixes: debbugs:10786

12 years agoFix last ChangeLog + Andreas Politz has signed paperwork.
Stefan Monnier [Wed, 21 Mar 2012 18:27:05 +0000 (14:27 -0400)]
Fix last ChangeLog + Andreas Politz has signed paperwork.

12 years ago* lisp/outline.el (outline-flag-region): Evaporate overlays.
Stefan Monnier [Wed, 21 Mar 2012 18:21:24 +0000 (14:21 -0400)]
* lisp/outline.el (outline-flag-region): Evaporate overlays.

Fixes: debbugs:10789

12 years ago* progmodes/etags.el (tags-completion-at-point-function): Improve last fix.
Stefan Monnier [Wed, 21 Mar 2012 17:50:28 +0000 (13:50 -0400)]
* progmodes/etags.el (tags-completion-at-point-function): Improve last fix.

12 years ago* lisp/files.el (move-file-to-trash): Files aren't regexps.
Stefan Monnier [Wed, 21 Mar 2012 17:44:55 +0000 (13:44 -0400)]
* lisp/files.el (move-file-to-trash): Files aren't regexps.

Fixes: debbugs:11055

12 years ago* lisp/progmodes/etags.el (tags-completion-at-point-function):
Sam Steingold [Wed, 21 Mar 2012 17:17:23 +0000 (13:17 -0400)]
* lisp/progmodes/etags.el (tags-completion-at-point-function):
Avoid the error when point is inside the pattern.

12 years ago(dired-listing-switches): apparently, "ls -b" is actually supposed to work
Sam Steingold [Wed, 21 Mar 2012 17:15:39 +0000 (13:15 -0400)]
(dired-listing-switches): apparently, "ls -b" is actually supposed to work

12 years ago* progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first line.
John Yates [Wed, 21 Mar 2012 17:02:09 +0000 (01:02 +0800)]
* progmodes/hideshow.el (hs-inside-comment-p): Fix hiding of first line.

Fixes: debbugs:10855

12 years ago* info.el (Info-menu): Handle string value of FORK arg.
Chong Yidong [Wed, 21 Mar 2012 16:56:55 +0000 (00:56 +0800)]
* info.el (Info-menu): Handle string value of FORK arg.

Fixes: debbugs:10858

12 years agoHandle nil value of ido-completion-buffer.
Anmol Khirbat [Wed, 21 Mar 2012 16:41:01 +0000 (00:41 +0800)]
Handle nil value of ido-completion-buffer.

* lisp/ido.el (ido-set-current-directory, ido-read-internal)
(ido-choose-completion-string, ido-completion-help): Handle nil
value of ido-completion-buffer.

Fixes: debbugs:11008

12 years ago(dired-listing-switches): "ls -b" breaks dired - document this
Sam Steingold [Wed, 21 Mar 2012 16:07:04 +0000 (12:07 -0400)]
(dired-listing-switches): "ls -b" breaks dired - document this

12 years ago* lisp/window.el (switch-to-prev-buffer): Do not switch to a visible
Sam Steingold [Wed, 21 Mar 2012 16:01:18 +0000 (12:01 -0400)]
* lisp/window.el (switch-to-prev-buffer): Do not switch to a visible
window previous buffer, just like with the frame previous buffers.

12 years agomerge trunk
Kenichi Handa [Wed, 21 Mar 2012 07:43:58 +0000 (16:43 +0900)]
merge trunk

12 years agoquail/indian.el ("devanagari-itrans"): Add a few more useful keys (Bug#10935).
Kenichi Handa [Wed, 21 Mar 2012 07:41:52 +0000 (16:41 +0900)]
quail/indian.el ("devanagari-itrans"): Add a few more useful keys (Bug#10935).

12 years agoUpdates to Display chapter of Lisp manual.
Chong Yidong [Wed, 21 Mar 2012 07:02:13 +0000 (15:02 +0800)]
Updates to Display chapter of Lisp manual.

* doc/lispref/display.texi (The Echo Area): Add xref to Output Streams.
(Displaying Messages): Improve doc of message.
(Echo Area Customization, Invisible Text): Copyedits.
(Invisible Text): Mention that spec comparison is done with eq.
(Width): Improve doc of char-width.
(Faces): Recommend using symbol instead of string for face name.
Minor clarifications.
(Defining Faces): Copyedits.  Update face example.
(Attribute Functions): Mark set-face-foreground etc as commands.
(Face Remapping): Mention text-scale-adjust.  Clarify
face-remapping-alist and related docs.
(Face Functions): Don't document make-face or copy-face.

* lisp/faces.el (make-face, make-empty-face, copy-face):
* lisp/face-remap.el (face-remap-add-relative, face-remap-set-base):
Doc fixes.

* src/xfaces.c (Vface_remapping_alist): Doc fix.

12 years ago* lisp/wid-edit.el (widget-complete-field): Remove.
Stefan Monnier [Wed, 21 Mar 2012 02:13:52 +0000 (22:13 -0400)]
* lisp/wid-edit.el (widget-complete-field): Remove.
(widget-complete): Remove broken use of it.

Fixes: debbugs:11051

12 years agoDoc fixes in w32-specific primitives related to console codepage.
Eli Zaretskii [Tue, 20 Mar 2012 18:49:18 +0000 (20:49 +0200)]
Doc fixes in w32-specific primitives related to console codepage.

 src/w32proc.c (Fw32_set_console_codepage)
 (Fw32_set_console_output_codepage, Fw32_get_codepage_charset): Doc fixes.