bpt/emacs.git
11 years ago* nsterm.m (openFiles): Fix previous checkin.
Jan Djärv [Tue, 31 Jul 2012 05:56:36 +0000 (07:56 +0200)]
* nsterm.m (openFiles): Fix previous checkin.

11 years ago* indent.c (compute_motion): Remove unused local.
Paul Eggert [Tue, 31 Jul 2012 05:07:03 +0000 (22:07 -0700)]
* indent.c (compute_motion): Remove unused local.

11 years ago* progmodes/python.el (run-python-internal): Disable font lock for
Fabián Ezequiel Gallina [Tue, 31 Jul 2012 03:31:10 +0000 (00:31 -0300)]
* progmodes/python.el (run-python-internal): Disable font lock for
internal shells.

11 years agognus.el (gnus-valid-select-methods): Fix custom type
Katsumi Yamaoka [Tue, 31 Jul 2012 01:39:58 +0000 (01:39 +0000)]
gnus.el (gnus-valid-select-methods): Fix custom type

11 years agoRemove src/s/darwin.h
Glenn Morris [Tue, 31 Jul 2012 01:38:04 +0000 (21:38 -0400)]
Remove src/s/darwin.h

* configure.ac (opsysfile): Set to empty on darwin.

* src/conf_post.h [DARWIN_OS]: Move remaining contents of src/s/darwin.h here.

* src/s/darwin.h: Remove file.

11 years agoRemove src/s/hpux10-20.h
Glenn Morris [Tue, 31 Jul 2012 01:32:19 +0000 (21:32 -0400)]
Remove src/s/hpux10-20.h

* configure.ac (opsysfile): Set to empty on hpux*.

* src/conf_post.h [HPUX]: Move random, srandom here from s/hpux10-20.h.

* src/s/hpux10-20.h: Remove file, which is now empty.

11 years agoUse an include file in configure.ac's AH_BOTTOM
Glenn Morris [Mon, 30 Jul 2012 21:20:43 +0000 (17:20 -0400)]
Use an include file in configure.ac's AH_BOTTOM

* configure.ac (AH_BOTTOM): Use an include file, so that the
contents do not get processed by autoheader.  Eg this prevents undefs
being commented out, and is the recommended technique from the
autoconf manual.

* src/conf_post.h: New, split from configure.ac's AH_BOTTOM.

* src/Makefile.in (config_h): Add conf_post.h.
* src/makefile.w32-in (CONFIG_H): Add conf_post.h.

11 years agoDo not overwrite config.status while executing it.
Paul Eggert [Mon, 30 Jul 2012 20:34:58 +0000 (13:34 -0700)]
Do not overwrite config.status while executing it.

* Makefile.in (MAKEFILE_NAME): New macro.
($(MAKEFILE_NAME)): Rename rule from Makefile.
* configure.ac (epaths): Set MAKEFILE_NAME to a bogus value,
so that GNU 'make' isn't tempted to make the Makefile and then
regenerate config.status while config.status is running.

Fixes: debbugs:11214

11 years agoDon't open files from Cocoa-parsed command line.
Jan Djärv [Mon, 30 Jul 2012 20:10:31 +0000 (22:10 +0200)]
Don't open files from Cocoa-parsed command line.

--eval '(whatever)' will open '(whatever)' if --eval is the last option.

* src/nsterm.m (ns_do_open_file): New variable.
(ns_term_init): Set ns_do_open_file to NO after run returns.
(openFile, openTempFile, openFileWithoutUI, openFiles): Open
files only if ns_do_open_file.

11 years agoSilence `checkdoc-ispell'.
Stefan Merten [Mon, 30 Jul 2012 19:54:07 +0000 (21:54 +0200)]
Silence `checkdoc-ispell'.
(rst-cvs-header, rst-svn-rev, rst-svn-timestamp)
(rst-official-version, rst-official-cvs-rev)
(rst-package-emacs-version-alist): Update to upstream V1.3.1.
(rst-mode-map): New key binding.

11 years ago* lisp.h (SWITCH_ENUM_CAST): Remove. All uses removed.
Paul Eggert [Mon, 30 Jul 2012 18:56:42 +0000 (11:56 -0700)]
* lisp.h (SWITCH_ENUM_CAST): Remove.  All uses removed.

This no-op macro hasn't been needed for many years.
* src/regex.c (SWITCH_ENUM_CAST) [!emacs]: Likewise.

11 years agoExport DIRECTORY_SEP, TYPEMASK, VALMASK to GDB.
Paul Eggert [Mon, 30 Jul 2012 18:44:51 +0000 (11:44 -0700)]
Export DIRECTORY_SEP, TYPEMASK, VALMASK to GDB.

* alloc.c (gdb_make_enums_visible) [USE_LSB_TAG]: Add lsb_bits.
* lisp.h (enum lsb_bits) [USE_LSB_TAG]: New enum, for
gdb_make_enums_visible.
(TYPEMASK, VALMASK) [USE_LSB_TAGS]: Now enum constants, not macros.
(DIRECTORY_SEP): Now a constant, not a macro.

11 years agoFix bug #12082 with input of Meta-non-ASCII-characters on MS-Windows.
Eli Zaretskii [Mon, 30 Jul 2012 17:07:33 +0000 (20:07 +0300)]
Fix bug #12082 with input of Meta-non-ASCII-characters on MS-Windows.

 src/w32fns.c (w32_wnd_proc): Pass w32_keyboard_codepage to
 w32_kbd_patch_key as the 2nd arg.
 src/w32term.c <w32_keyboard_codepage>: Renamed from
 keyboard_codepage and now external.  All users changed.
 src/w32term.h: Add declaration of w32_keyboard_codepage.
 src/w32inevt.c (w32_kbd_patch_key): Accept an additional argument --
 the codepage to translate keys to Unicode.  If this argument is
 -1, use the value returned by GetConsoleCP.  All callers changed.

11 years agoUpdate .PHONY listings in makefiles.
Paul Eggert [Mon, 30 Jul 2012 16:20:35 +0000 (09:20 -0700)]
Update .PHONY listings in makefiles.

11 years ago* lisp.h (STRING_BYTES_BOUND): Cast entire result to ptrdiff_t.
Paul Eggert [Mon, 30 Jul 2012 15:30:40 +0000 (08:30 -0700)]
* lisp.h (STRING_BYTES_BOUND): Cast entire result to ptrdiff_t.

This is a bit clearer.  Fix some commentary typos.

11 years agoMove TIOCSIGSEND from src/s to configure
Glenn Morris [Mon, 30 Jul 2012 14:52:08 +0000 (07:52 -0700)]
Move TIOCSIGSEND from src/s to configure

* configure.ac (TIOCSIGSEND): Move here from src/s.

* src/s/usg5-4-common.h (TIOCSIGSEND): Let configure set it.
* src/s/irix6-5.h (TIOCSIGSEND): No more need to undefine.

11 years agoEmpty src/s/netbsd.h and remove the file
Glenn Morris [Mon, 30 Jul 2012 14:46:48 +0000 (07:46 -0700)]
Empty src/s/netbsd.h and remove the file

* configure.ac (SIGNAL_H_AHB): New hack macro.
(opsysfile): Set to empty on netbsd, openbsd.
(AH_BOTTOM): Include signal.h if SIGNAL_H_AHB is defined.

* src/s/netbsd.h: Let configure include signal.h if needed.
Remove file, which is now empty.

11 years agoMove _longjmp, _setjmp from src/s to configure
Glenn Morris [Mon, 30 Jul 2012 14:30:20 +0000 (07:30 -0700)]
Move _longjmp, _setjmp from src/s to configure

* configure.ac (_longjmp, _setjmp): Move here from src/s.

* src/s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them.
* src/s/irix6-5.h (_longjmp, _setjmp): No more need to undefine.

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 30 Jul 2012 10:17:41 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agolisp/gnus/ChangeLog (2012-07-27): Fix author's address e-mail
Julien Danjou [Mon, 30 Jul 2012 10:13:52 +0000 (10:13 +0000)]
lisp/gnus/ChangeLog (2012-07-27): Fix author's address e-mail

11 years ago* Makefile.in (install-arch-indep): Remove sh -x.
Jan Djärv [Mon, 30 Jul 2012 07:51:29 +0000 (09:51 +0200)]
* Makefile.in (install-arch-indep): Remove sh -x.

11 years agoFixes: debbugs:12090
Andreas Schwab [Mon, 30 Jul 2012 07:45:58 +0000 (09:45 +0200)]
Fixes: debbugs:12090

* keymap.c (Fkey_description): Don't remove 0x80 bit from
non-single-byte char when adding meta modifier.

11 years agoConvert safe_call to use variable number of arguments.
Dmitry Antipov [Mon, 30 Jul 2012 06:43:46 +0000 (10:43 +0400)]
Convert safe_call to use variable number of arguments.
* xdisp.c (safe_call): Convert to use varargs.  Adjust users.
(safe_call2): Fix comment.
* lisp.h (safe_call): Adjust prototype.
* coding.c (encode_coding_object): Change to use safe_call2.
* xfaces.c (merge_face_heights): Change to use safe_call1.

11 years agoRemove s/aix4-2.h
Glenn Morris [Mon, 30 Jul 2012 06:34:22 +0000 (23:34 -0700)]
Remove s/aix4-2.h

* configure.ac (opsysfile): Set to empty on aix4-2.

* src/s/aix4-2.h: Remove empty file.

11 years ago* s/aix4-2.h (sigmask): No need to undefine it.
Glenn Morris [Mon, 30 Jul 2012 06:32:04 +0000 (23:32 -0700)]
* s/aix4-2.h (sigmask): No need to undefine it.
(syssignal.h does that unconditionally)

11 years ago* configure.ac (opsysfile): Tweak message for null case.
Glenn Morris [Mon, 30 Jul 2012 06:24:20 +0000 (23:24 -0700)]
* configure.ac (opsysfile): Tweak message for null case.
(The autoconf manual says this is portable.)

11 years agoRemove some empty src/s files.
Glenn Morris [Mon, 30 Jul 2012 06:18:28 +0000 (23:18 -0700)]
Remove some empty src/s files.

* configure.ac (opsysfile): Set to empty on freebsd, gnu-linux,
gnu-kfreebsd; and to usg5-4-common.h on sol2*, unixware.

* src/s/freebsd.h, src/s/gnu-linux.h, src/s/sol2-6.h, src/s/unixware.h:
Remove empty files.

11 years agoMerge from gnulib, incorporating:
Paul Eggert [Mon, 30 Jul 2012 06:07:22 +0000 (23:07 -0700)]
Merge from gnulib, incorporating:

* doc/misc/texinfo.tex: Update to 2012-07-29.17 version.

11 years agoExport to GDB most of lisp.h's remaining object-like macros.
Paul Eggert [Mon, 30 Jul 2012 05:41:10 +0000 (22:41 -0700)]
Export to GDB most of lisp.h's remaining object-like macros.

* lisp.h (min, max): Move earlier, because they're used earlier now.
(INTMASK, ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK)
(CHAR_TABLE_STANDARD_SLOTS, CHARTAB_SIZE_BITS_0)
(CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2, CHARTAB_SIZE_BITS_3)
(DEFAULT_HASH_SIZE, COMPILED_ARGLIST, COMPILED_BYTECODE)
(COMPILED_CONSTANTS, COMPILED_STACK_DEPTH, COMPILED_DOC_STRING)
(COMPILED_INTERACTIVE, CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT)
(CHAR_CTL, CHAR_META, CHAR_MODIFIER_MASK, CHARACTERBITS)
(MANY, UNEVALLED, FLOAT_TO_STRING_BUFSIZE, MAX_ALLOCA):
Now constants, for GDB.  They need not be macros.
(MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM, STRING_BYTES_BOUND):
Now constants, for GDB, as well as macros, for static initializers.
(CHAR_TABLE_STANDARD_SLOTS, CHAR_TABLE_EXTRA_SLOTS):
Move to after the definition of struct Lisp_Char_Table,
since the former now needs that type defined.
(enum CHARTAB_SIZE_BITS, enum CHAR_TABLE_STANDARD_SLOTS)
(enum DEFAULT_HASH_SIZE, enum Lisp_Compiled, enum char_bits)
(enum maxargs, enum FLOAT_TO_STRING_BUFSIZE, enum MAX_ALLOCA):
New enums, for gdb_make_enums_visible.
(GLYPH_MODE_LINE_FACE): Remove; unused.
* alloc.c (STRING_BYTES_MAX): Now a constant, now a macro.
(gdb_make_enums_visible): Add enum CHARTAB_SIZE_BITS, enum
CHAR_TABLE_STANDARD_SLOTS, enum char_bits, enum DEFAULT_HASH_SIZE,
enum FLOAT_TO_STRING_BUFSIZE, enum Lisp_Bits, enum Lisp_Compiled,
enum maxargs, enum MAX_ALLOCA.
(ARRAY_MARK_FLAG_VAL, PSEUDOVECTOR_FLAG_VAL, VALMASK_VAL): Remove.
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Remove;
no longer needed, now that they are done in lisp.h.

11 years agoCleanup string bytes checking.
Dmitry Antipov [Mon, 30 Jul 2012 04:02:39 +0000 (08:02 +0400)]
Cleanup string bytes checking.
* alloc.c (GC_STRING_BYTES, CHECK_STRING_BYTES): Remove.  Convert
all users to STRING_BYTES or string_bytes if GC_CHECK_STRING_BYTES.
(check_string_bytes): Define to empty if not GC_CHECK_STRING_BYTES.
(check_sblock, compact_small_strings): Simplify.

11 years agodoc/misc/calc.texi (Getting Started, Tutorial): Change simulated
Jay Belanger [Mon, 30 Jul 2012 03:38:24 +0000 (22:38 -0500)]
doc/misc/calc.texi (Getting Started, Tutorial): Change simulated
Calc output to match actual output.
(Simplifying Formulas): Mention that algebraic simplification is now
the default.

11 years agocalc/calc-mode.el (calc-alg-simplify-mode): Remove function.
Jay Belanger [Mon, 30 Jul 2012 02:32:57 +0000 (21:32 -0500)]
calc/calc-mode.el (calc-alg-simplify-mode): Remove function.
(calc-limited-simplify-mode): Renamed from calc-lim-simplify-mode.
calc/calc-ext.el (calc-init-extensions): Fix bindings for
`calc-limited-simplify-mode'.

11 years agocalc/calc-help (calc-m-prefix-help): Change message.
Jay Belanger [Sun, 29 Jul 2012 23:25:39 +0000 (18:25 -0500)]
calc/calc-help (calc-m-prefix-help): Change message.

11 years agocalc/calc.el (calc-simplify-mode): Make 'alg the default value.
Jay Belanger [Sun, 29 Jul 2012 23:19:09 +0000 (18:19 -0500)]
calc/calc.el (calc-simplify-mode): Make 'alg the default value.
(calc-set-mode-line): Don't display "AlgSimp ".

calc/calc-mode.el (calc-alg-simplify-mode): Remove function.
(calc-lim-simplify-mode): New function.
(calc-set-simplify-mode): Default to 'alg.
(calc-default-simplify-mode): Make algebraic simplifications the default.

calc/calc-ext.el (calc-init-extensions): Remove binding for
`calc-alg-simplify-mode'. Add binding for `calc-lim-simplify-mode'.

calc/README: Mention new default simplification mode.

11 years ago* lisp.h (LISP_INT_TAG, LISP_INT1_TAG, LISP_STRING_TAG): Remove.
Paul Eggert [Sun, 29 Jul 2012 22:42:12 +0000 (15:42 -0700)]
* lisp.h (LISP_INT_TAG, LISP_INT1_TAG, LISP_STRING_TAG): Remove.

These macros are confusing and no longer need to be defined, as
the enum values now suffice.  Each use replaced with definiens.
(Lisp_Int1, Lisp_String): Define directly; this is clearer.

11 years agolisp/gnus/auth-source.el: Fix last change
Ted Zlatanov [Sun, 29 Jul 2012 22:17:54 +0000 (22:17 +0000)]
lisp/gnus/auth-source.el: Fix last change

11 years agolisp/gnus/auth-source.el: Support Mac OS X Keychains
Ted Zlatanov [Sun, 29 Jul 2012 22:07:41 +0000 (22:07 +0000)]
lisp/gnus/auth-source.el: Support Mac OS X Keychains

11 years agoNew tests for XML name expansion.
David Engster [Sun, 29 Jul 2012 19:57:28 +0000 (21:57 +0200)]
New tests for XML name expansion.

* automated/xml-parse-tests.el (xml-parse-tests--qnames): New
variable to hold test data for name expansion.
(xml-parse-tests): Test the two different types of name expansion.

11 years agocalc/calc.el (math-normalize-error): New variable.
Jay Belanger [Sun, 29 Jul 2012 18:51:16 +0000 (13:51 -0500)]
calc/calc.el (math-normalize-error): New variable.
(math-normalize): Set `math-normalize-error' to t when there's an error.

calc/calc-alg.el (math-simplify): Don't simplify when `math-normalize'
returns an error.

11 years agoRemove obsolete comment in mule-cmds.el.
Eli Zaretskii [Sun, 29 Jul 2012 18:33:47 +0000 (21:33 +0300)]
Remove obsolete comment in mule-cmds.el.

11 years agoFix bug #12082 with non-ASCII output in Windows GUI sessions.
Eli Zaretskii [Sun, 29 Jul 2012 18:27:35 +0000 (21:27 +0300)]
Fix bug #12082 with non-ASCII output in Windows GUI sessions.

 lisp/international/mule-cmds.el (set-locale-environment): Revert last
 change, since display-graphic-p returns nil when this function is
 called during startup.  Instead...
 lisp/term/w32console.el (terminal-init-w32console): ...setup the
 keyboard and terminal encoding for TTY sessions here.

11 years ago* lisp/simple.el (goto-line): Don't display default line number in the
Juri Linkov [Sun, 29 Jul 2012 18:11:42 +0000 (21:11 +0300)]
* lisp/simple.el (goto-line): Don't display default line number in the
prompt because it should be displayed by `read-number' (bug#9952).
Add the current line number to the defaults of `goto-line' to
allow its easier modification by users with `M-n' (bug#9201).

* lisp/subr.el (read-number): Support multiple default values like in
other minibuffer reading functions.  Replace `read' with
`string-to-number' for consistency with `number-to-string'.

11 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Sun, 29 Jul 2012 17:20:16 +0000 (19:20 +0200)]
src/makefile.w32-in: Update dependencies.

11 years agoRemove HIDE_LISP_IMPLEMENTATION and cleanup cons free list check.
Dmitry Antipov [Sun, 29 Jul 2012 17:14:51 +0000 (21:14 +0400)]
Remove HIDE_LISP_IMPLEMENTATION and cleanup cons free list check.
* lisp.h (HIDE_LISP_IMPLEMENTATION): Remove as useless for a long
time.  Adjust users.
(CHECK_CONS_LIST): Remove.  Convert all users to check_cons_list.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Sun, 29 Jul 2012 16:56:18 +0000 (18:56 +0200)]
nt/config.nt: Sync with autogen/config.in.
(HAVE_ENVIRON_DECL): New macro.

11 years ago* Makefile.in (install-arch-indep): Handle space in locallisppath.
Jan Djärv [Sun, 29 Jul 2012 16:55:02 +0000 (18:55 +0200)]
* Makefile.in (install-arch-indep): Handle space in locallisppath.

* src/lread.c (init_lread): Remove if-statement in ifdef HAVE_NS before
setting sitelisp.

Fixes: debbugs:12010

11 years ago* international/mule-cmds.el (inactivate-input-method): Mark obsolete.
Paul Eggert [Sun, 29 Jul 2012 16:29:23 +0000 (09:29 -0700)]
* international/mule-cmds.el (inactivate-input-method): Mark obsolete.

11 years agoRename OS_WINDOWS_95 to OS_9X.
Eli Zaretskii [Sun, 29 Jul 2012 16:22:27 +0000 (19:22 +0300)]
Rename OS_WINDOWS_95 to OS_9X.

 src/w32heap.h (OS_9X): Renamed from OS_WINDOWS_95.
 src/w32heap.c (cache_system_info):
 src/w32.c (sys_rename):
 src/w32proc.c (find_child_console, sys_kill): All users changed.

11 years ago* alloc.c (Fgarbage_collect): Indent as per usual Emacs style.
Paul Eggert [Sun, 29 Jul 2012 16:00:35 +0000 (09:00 -0700)]
* alloc.c (Fgarbage_collect): Indent as per usual Emacs style.

11 years agoFix parallel builds on Windows in lib-src.
Eli Zaretskii [Sun, 29 Jul 2012 15:53:31 +0000 (18:53 +0300)]
Fix parallel builds on Windows in lib-src.

 lib-src/makefile.w32-in ($(BLD)/profile.$(O)): Depend on stamp_BLD.

11 years agoMS-Windows followup for 2012-07-28T23:05:32Z!eggert@cs.ucla.edu.
Eli Zaretskii [Sun, 29 Jul 2012 15:43:09 +0000 (18:43 +0300)]
MS-Windows followup for 2012-07-28T23:05:32Z!eggert@cs.ucla.edu.

 nt/inc/stdalign.h (_Alignas, alignas): Define.
 src/makefile.w32-in (LISP_H): Add $(NT_INC)/stdalign.h.

Fixes: debbugs:9772

11 years agoCleanup statistics calculation in Fgarbage_collect.
Dmitry Antipov [Sun, 29 Jul 2012 13:51:45 +0000 (17:51 +0400)]
Cleanup statistics calculation in Fgarbage_collect.
* alloc.c (Fgarbage_collect): Rename t1 to meaningful start.  Fix
zombies percentage calculation.  Simplify elapsed time calculation.

11 years agoGeneralize marker debugging code under MARKER_DEBUG and use eassert.
Dmitry Antipov [Sun, 29 Jul 2012 11:20:43 +0000 (15:20 +0400)]
Generalize marker debugging code under MARKER_DEBUG and use eassert.
* insdel.c (CHECK_MARKERS, check_markers_debug_flag): Remove.
(gap_left, gap_right, adjust_markers_for_delete, insert_1_both)
(insert_from_string_1, insert_from_gap, insert_from_buffer_1)
(replace_range, replace_range_2, del_range_2): Change to eassert.
* marker.c (byte_char_debug_check): Adjust style.

11 years agoAuto-commit of generated files.
Glenn Morris [Sun, 29 Jul 2012 10:19:06 +0000 (06:19 -0400)]
Auto-commit of generated files.

11 years agoinaccessable -> inaccessible spelling fix
Paul Eggert [Sun, 29 Jul 2012 09:57:40 +0000 (02:57 -0700)]
inaccessable -> inaccessible spelling fix

* semantic/wisent/comp.el (wisent-inaccessible-symbols):
Rename from wisent-inaccessable-symbols, fixing a misspelling.
Caller changed.

Fixes: debbugs:10052

11 years agoDon't use the abbreviation "win" to refer to Windows (Bug#10421).
Paul Eggert [Sun, 29 Jul 2012 08:18:29 +0000 (01:18 -0700)]
Don't use the abbreviation "win" to refer to Windows (Bug#10421).

* lisp/org/ob-lilypond.el (ly-w32-ly-path): Rename from ly-win32-ly-path.
(ly-w32-pdf-path): Rename from ly-win32-pdf-path.
(ly-w32-midi-path): Rename from ly-win32-midi-path.
(ly-determine-ly-path, ly-determine-pdf-path, ly-determine-midi-path):
Check for "windows-nt", not "win32", in system-type.
* src/regex.c (MAX_BUF_SIZE): Remove some incorrect and
long-ago-commented-out code that talks about "WIN32".
* src/w32heap.h (OS_WINDOWS_95): Rename from OS_WIN95.
All uses changed.

11 years agodeactive->inactive, inactivate->deactivate spelling fixes (Bug#10150)
Paul Eggert [Sun, 29 Jul 2012 07:16:45 +0000 (00:16 -0700)]
deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150)

* NEWS: Document these changes.
* leim/quail/uni-input.el (ucs-input-deactivate):
Rename from ucs-input-inactivate.
* leim/quail/hangul.el (hangul-input-method-deactivate):
Rename from hangul-input-method-inactivate.
* emulation/viper-init.el (viper-deactivate-input-method-action):
Rename from viper-inactivate-input-method-action.
(viper-deactivate-input-method):
Rename from viper-inactivate-input-method.
* lisp/follow.el (follow-inactive-menu): Rename from follow-deactive-menu.
* lisp/international/mule-cmds.el (deactivate-input-method):
Rename from inactivate-input-method.
Also run input-method-deactivate-hook.
(deactivate-current-input-method-function):
Rename from inactivate-current-input-method-function.
(input-method-deactivate-hook): New hook.
(input-method-inactivate-hook): Mark obsolete.
* lisp/international/quail.el (quail-activate):
Also run quail-deactivate-hook.
(quail-deactivate): Rename from quail-inactivate.
* lisp/international/robin.el (robin-activate):
Also run robin-deactivate-hook.
(robin-deactivate): Rename from robin-inactivate.

11 years agoDeactivate the mark on more copy operations, and indicate the copied region.
Chong Yidong [Sun, 29 Jul 2012 04:45:48 +0000 (12:45 +0800)]
Deactivate the mark on more copy operations, and indicate the copied region.

* lisp/simple.el (indicate-copied-region): New function.
(kill-ring-save): Split off from here.

* lisp/rect.el (copy-rectangle-as-kill): Call indicate-copied-region.
(kill-rectangle): Set deactivate-mark to t on read-only error.

* lisp/register.el (copy-to-register, copy-rectangle-to-register):
Deactivate the mark, and use indicate-copied-region.
(append-to-register, prepend-to-register): Call

Fixes: debbugs:10056

11 years ago* test/automated/occur-tests.el (occur-test-case): Use predefined
Juri Linkov [Sun, 29 Jul 2012 00:12:13 +0000 (03:12 +0300)]
* test/automated/occur-tests.el (occur-test-case): Use predefined
buffer name " *test-occur*" instead of a random buffer name.

11 years ago* lisp/simple.el (async-shell-command-buffer): New defcustom.
Juri Linkov [Sun, 29 Jul 2012 00:03:26 +0000 (03:03 +0300)]
* lisp/simple.el (async-shell-command-buffer): New defcustom.
(shell-command): Use it.

Fixes: debbugs:4719

11 years agoUse Gnulib stdalign and environ modules (Bug#9772, Bug#9960).
Paul Eggert [Sat, 28 Jul 2012 23:05:32 +0000 (16:05 -0700)]
Use Gnulib stdalign and environ modules (Bug#9772, Bug#9960).

* .bzrignore: Add lib/stdalign.h.
* config.bat: Do not set NO_DECL_ALIGN; no longer needed.
Copy lib/stdalign.in.h to lib/stdalign.in-h as needed.
* configure.ac (HAVE_ATTRIBUTE_ALIGNED): Remove the code that
fiddles with this, as gnulib now does this for us.
* admin/merge-gnulib: Add environ, stdalign.
* m4/environ.m4: New file, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/stdalign.in.h, m4/stdalign.m4: New files, from gnulib.
* sed2v2.inp (HAVE_ATTRIBUTE_ALIGNED): Remove edit.
* sedlibmk.inp (STDALIGN_H, @GL_GENERATE_STDALIGN_H_TRUE@)
(GL_GENERATE_STDALIGN_H_FALSE): New edits.
* nt/config.nt (HAVE_ATTRIBUTE_ALIGNED): Remove.
* src/alloc.c (XMALLOC_BASE_ALIGNMENT, GC_POINTER_ALIGNMENT, pure_alloc):
Simplify by using alignof.
(pure_alloc) [! USE_LSB_TAG]: Don't over-align EMACS_INT values.
* src/lisp.h: Include <stdalign.h>.
(GCALIGNMENT): New macro and constant.
(DECL_ALIGN): Remove.  All uses replaced by alignas (GCALIGNMENT).
(USE_LSB_TAG): ifdef on alignas, not on DECL_ALIGN.
(stdalign): New macro, if not already defined.

11 years agoFix non-ASCII input in non-GUI frames on MS-Windows. (Bug#12055)
Eli Zaretskii [Sat, 28 Jul 2012 16:57:57 +0000 (19:57 +0300)]
Fix non-ASCII input in non-GUI frames on MS-Windows.  (Bug#12055)

 src/w32inevt.c: Include w32inevt.h.
 (w32_read_console_input): New inline function, calls either
 ReadConsoleInputA or ReadConsoleInputW, depending on the value of
 w32_console_unicode_input.
 (fill_queue): Call w32_read_console_input instead of ReadConsoleInput.
 (w32_kbd_patch_key, key_event): Use the codepage returned by
 GetConsoleCP, rather than the ANSI codepage returned by GetLocaleInfo.
 (key_event): use uChar.UnicodeChar only if
 w32_console_unicode_input is non-zero.
 src/w32console.c: Include w32heap.h.
 <w32_console_unicode_input>: New global variable.
 (initialize_w32_display): Set w32_console_unicode_input to 1 on NT
 family of Windows, zero otherwise.
 src/w32inevt.h: Declare w32_console_unicode_input.
 lisp/international/mule-cmds.el (set-locale-environment): In a
 console session on MS-Windows, set up keyboard and terminal
 encoding from the OEM codepage, not the ANSI codepage.

11 years agoetc/NEWS: Fix typo.
Juanma Barranquero [Sat, 28 Jul 2012 16:35:52 +0000 (18:35 +0200)]
etc/NEWS: Fix typo.

11 years agoMerge from emacs-24 branch; up to 2012-05-01T18:47:23Z!rgm@gnu.org
Chong Yidong [Sat, 28 Jul 2012 15:12:12 +0000 (23:12 +0800)]
Merge from emacs-24 branch; up to 2012-05-01T18:47:23Z!rgm@gnu.org

11 years agoFix bogus code in gdb-place-breakpoints.
Chong Yidong [Sat, 28 Jul 2012 15:09:36 +0000 (23:09 +0800)]
Fix bogus code in gdb-place-breakpoints.
* progmodes/gdb-mi.el (gdb-place-breakpoints): Fix the call to
gdb-get-location.

11 years agoIn C-x v L and C-x v D, prompt for directory if there is no default backend.
Chong Yidong [Sat, 28 Jul 2012 14:18:51 +0000 (22:18 +0800)]
In C-x v L and C-x v D, prompt for directory if there is no default backend.

* lisp/vc/vc.el (vc-root-diff, vc-print-root-log): Prompt for a
directory if vc-deduce-backend returns nil.

Fixes: debbugs:7350

11 years agomessage.el: defalias mail-dont-reply-to if needed
Julien Danjou [Sat, 28 Jul 2012 11:38:47 +0000 (11:38 +0000)]
message.el: defalias mail-dont-reply-to if needed

11 years agoMore fixes in lisp/ for parallel builds on MS-Windows.
Eli Zaretskii [Sat, 28 Jul 2012 11:21:43 +0000 (14:21 +0300)]
More fixes in lisp/ for parallel builds on MS-Windows.

 lisp/makefile.w32-in (custom-deps, finder-data, updates, compile)
 (compile-always, compile-first)
 ($(lisp)/calendar/cal-loaddefs.el)
 ($(lisp)/calendar/diary-loaddefs.el)
 ($(lisp)/calendar/hol-loaddefs.el, $(lisp)/mh-e/mh-loaddefs.el)
 ($(lisp)/net/tramp-loaddefs.el, bootstrap)
 ($(lisp)/progmodes/cc-mode.elc): Depend on $(lisp)subdirs.el,
 instead of on update-subdirs.
 (bootstrap-clean): Delete $(lisp)/subdirs.el.

11 years agoFix various issues with url-dav package (Bug#11916).
David Engster [Sat, 28 Jul 2012 11:07:17 +0000 (13:07 +0200)]
Fix various issues with url-dav package (Bug#11916).

* url-dav.el (url-dav-supported-p): Added doc-string and remove
check for feature `xml' and function `xml-expand-namespace' which
never existed in Emacs proper.
(url-dav-process-response): Remove all indentation and newlines
from XML before parsing.  Change call to `xml-parse-region' to do
namespace expansion with simple qualified names (Bug#11916).
(url-dav-request): Add autoload.
(url-dav-directory-files): Properly deal with empty directories.
Unhex URL before generating relative URLs.
(url-dav-file-directory-p): Fix check for 'DAV:collection.

11 years ago* simple.el (delete-trailing-lines): New option.
Chong Yidong [Sat, 28 Jul 2012 10:38:55 +0000 (18:38 +0800)]
* simple.el (delete-trailing-lines): New option.
(delete-trailing-whitespace): Obey it.

Fixes: debbugs:11879

11 years agoMaybe return expanded XML qnames as plain symbols (Bug#11916).
David Engster [Sat, 28 Jul 2012 09:19:53 +0000 (11:19 +0200)]
Maybe return expanded XML qnames as plain symbols (Bug#11916).

* xml.el (xml-node-name, xml-parse-file, xml-parse-region):
Explanation of new 'symbol-qnames feature in doc-strings.
(xml-maybe-do-ns): Return expanded names as plain symbols if
'symbol-qnames was provided in XML-NS argument (Bug#11916).
(xml-parse-tag-1): Deal with new definition of PARSE-NS argument.

11 years agoFix --without-x build.
Eli Zaretskii [Sat, 28 Jul 2012 07:59:34 +0000 (10:59 +0300)]
Fix --without-x build.

 src/xdisp.c (init_iterator): Don't reference tip_frame in a build
 --without-x.  (Bug#11742)

11 years agoFix bug #12062 with a typo in Elisp manual.
Eli Zaretskii [Sat, 28 Jul 2012 07:47:58 +0000 (10:47 +0300)]
Fix bug #12062 with a typo in Elisp manual.

 doc/lispref/nonascii.texi (Character Sets): Fix a typo.

11 years agoFix bug #12073 with outdated FAQ entry.
Eli Zaretskii [Sat, 28 Jul 2012 07:38:32 +0000 (10:38 +0300)]
Fix bug #12073 with outdated FAQ entry.

 doc/misc/faq.texi (Right-to-left alphabets): Update for Emacs 24.

11 years agoAdjust GDB to reflect pvec_type changes.
Paul Eggert [Fri, 27 Jul 2012 20:50:02 +0000 (13:50 -0700)]
Adjust GDB to reflect pvec_type changes.

* .gdbinit (xvectype, xpr, xbacktrace): Adjust to reflect the
2012-07-04 changes to pseudovector representation.  Problem
reported by Eli Zaretskii in <http://bugs.gnu.org/1995-05-30T23:07:27Z!kwzh@gnu.org#30>.

11 years agoMinor fix to my previous changes.
Tassilo Horn [Fri, 27 Jul 2012 17:58:58 +0000 (19:58 +0200)]
Minor fix to my previous changes.

11 years agoConsistent completion in inferior python with emacs -nw.
Fabián Ezequiel Gallina [Fri, 27 Jul 2012 16:42:19 +0000 (13:42 -0300)]
Consistent completion in inferior python with emacs -nw.
* progmodes/python.el (inferior-python-mode): replace "<tab>"
binding in inferior-python-mode-map with "\t".
(python-shell-completion-complete-at-point)
(python-completion-complete-at-point): Remove interactive spec.

11 years agocalccomp.el (math-compose-expr): Undo previous change.
Jay Belanger [Fri, 27 Jul 2012 15:05:13 +0000 (10:05 -0500)]
calccomp.el (math-compose-expr): Undo previous change.

11 years ago* lisp/progmodes/python.el (python-mode-map): Added keybinding for
Fabián Ezequiel Gallina [Fri, 27 Jul 2012 12:38:19 +0000 (09:38 -0300)]
* lisp/progmodes/python.el (python-mode-map): Added keybinding for
run-python.
(python-shell-make-comint): Fix pop-to-buffer call.
(run-python): Autoload.  New arg SHOW.
(python-shell-get-or-create-process): Do not pop python process
buffer.

11 years agoFix type comparison error.
Michael Albinus [Fri, 27 Jul 2012 11:36:36 +0000 (13:36 +0200)]
Fix type comparison error.

11 years agoFix name typo.
Michael Albinus [Fri, 27 Jul 2012 11:10:53 +0000 (13:10 +0200)]
Fix name typo.

11 years ago* notifications.el (notifications-on-action-signal)
Michael Albinus [Fri, 27 Jul 2012 10:56:03 +0000 (12:56 +0200)]
* notifications.el (notifications-on-action-signal)
(notifications-on-closed-signal): Use also the bus address for the map.
(notifications-notify, notifications-close-notification)
(notifications-get-capabilities):  Add optional argument BUS.

11 years ago* dbusbind.c (XD_DBUS_VALIDATE_BUS_ADDRESS): Canonicalize session
Michael Albinus [Fri, 27 Jul 2012 10:46:58 +0000 (12:46 +0200)]
* dbusbind.c (XD_DBUS_VALIDATE_BUS_ADDRESS): Canonicalize session
bus address.
(xd_close_bus, Fdbus_init_bus): Handle reference counter properly.

11 years agoFix listn introduced in 2012-07-27T06:04:35Z!dmantipov@yandex.ru.
Eli Zaretskii [Fri, 27 Jul 2012 10:29:26 +0000 (13:29 +0300)]
Fix listn introduced in 2012-07-27T06:04:35Z!dmantipov@yandex.ru.

 src/alloc.c (listn): Fix the order the arguments are consed onto the list.

11 years agoFix failure to compile on Windows due to 2012-07-27T06:04:35Z!dmantipov@yandex.ru.
Eli Zaretskii [Fri, 27 Jul 2012 09:24:34 +0000 (12:24 +0300)]
Fix failure to compile on Windows due to 2012-07-27T06:04:35Z!dmantipov@yandex.ru.

 src/lisp.h (enum constype): Use CONSTYPE_HEAP and CONSTYPE_PURE for
 enumeration constants, as PURE and HEAP are too general, and clash
 with other headers and sources, such as gmalloc.c and the
 MS-Windows system headers.  All users changed.

11 years agomessage.el: Make header fill function work properly
Katsumi Yamaoka [Fri, 27 Jul 2012 08:01:44 +0000 (08:01 +0000)]
message.el: Make header fill function work properly

11 years ago* textmodes/reftex-vars.el (reftex-label-alist-builtin): Add
Tassilo Horn [Fri, 27 Jul 2012 07:59:50 +0000 (09:59 +0200)]
* textmodes/reftex-vars.el (reftex-label-alist-builtin): Add
support for the lstlisting and minted environments, and for the
ctable macro.
* textmodes/reftex.el (reftex-compile-variables): Also recognize
labels written in keyvals syntax.

11 years agoRevert last save_excursion_save and save_excursion_restore changes.
Dmitry Antipov [Fri, 27 Jul 2012 07:51:52 +0000 (11:51 +0400)]
Revert last save_excursion_save and save_excursion_restore changes.
* alloc.c, editfns.c, marker.c, lisp.h: Revert.
Lots of crashes reported by Chong Yidong <cyd@gnu.org>.

11 years agoFix recently-introduced typos in Windows port.
Dmitry Antipov [Fri, 27 Jul 2012 07:36:33 +0000 (11:36 +0400)]
Fix recently-introduced typos in Windows port.
Reported by Martin Rudalics <rudalics@gmx.at>.
* w32.c (init_environment): Replace comma with semicolon.
* w32fns.c (syms_of_w32fns): Likewise.

11 years agoImprove GDB symbol export.
Paul Eggert [Fri, 27 Jul 2012 06:18:36 +0000 (23:18 -0700)]
Improve GDB symbol export.

* .gdbinit (xgetptr, xgetint, xgettype): Set $bugfix in different
arms of an 'if', not using conditional expressions; otherwise GDB
complains about the types in the unevaluated arm when the argument
is an integer literal.
(xgetint): Simplify expression.
* alloc.c (gdb_make_enums_visible): New constant.  This ports to
GCC 3.4.2 the export of symbols to GDB.  Problem reported by Eli
Zaretskii in <http://bugs.gnu.org/1995-05-30T23:07:27Z!kwzh@gnu.org#13>.
* lisp.h (PUBLISH_TO_GDB): Remove.  All uses removed.  No longer
needed now that we have gdb_make_enums_visible.
(enum CHECK_LISP_OBJECT_TYPE, enum Lisp_Bits, enum More_Lisp_Bits)
(enum enum_USE_LSB_TAG):
New enum types, packaging up enums that need to be exported to GDB.

11 years agoUtility function to make a list from specified amount of objects.
Dmitry Antipov [Fri, 27 Jul 2012 06:04:35 +0000 (10:04 +0400)]
Utility function to make a list from specified amount of objects.
* lisp.h (enum constype): New datatype.
(listn): New prototype.
* alloc.c (listn): New function.
(Fmemory_use_count, syms_of_alloc): Use it.
* buffer.c (syms_of_buffer): Likewise.
* callint.c (syms_of_callint): Likewise.
* charset.c (define_charset_internal): Likewise.
* coding.c (syms_of_coding): Likewise.
* keymap.c (syms_of_keymap): Likewise.
* search.c (syms_of_search): Likewise.
* syntax.c (syms_of_syntax): Likewise.
* w32.c (init_environment): Likewise.
* w32fns.c (Fw32_battery_status, syms_of_w32fns): Likewise.
* xdisp.c (syms_of_xdisp): Likewise.
* xfns.c (syms_of_xfns): Likewise.

11 years agocalccomp.el (math-compose-expr): Use parentheses when
Jay Belanger [Fri, 27 Jul 2012 03:48:40 +0000 (22:48 -0500)]
calccomp.el (math-compose-expr): Use parentheses when
there is a product in the denominator of a fraction.

11 years agoFast save_excursion_save and save_excursion_restore.
Dmitry Antipov [Fri, 27 Jul 2012 02:47:07 +0000 (06:47 +0400)]
Fast save_excursion_save and save_excursion_restore.
* lisp.h (struct Lisp_Excursion): New data type.
(PVEC_EXCURSION): New pseudovector type.
(XEXCURSION, XSETEXCURSION, EXCURSIONP): Convenient macros
to deal with it.  Adjust comments.
(init_marker, attach_marker): New prototype.
(unchain_marker): Adjust prototype.
* marker.c (attach_marker): Change to global.
(init_marker): New function.
* alloc.c (Fmake_marker, build_marker): Use it.
(build_marker): More easserts.
(mark_object): Handle struct Lisp_Excursion.
* editfns.c (save_excursion_save, save_excursion_restore):
Reimplement to use struct Lisp_Excursion.  Add comments.

11 years ago* emacs.c: Do not include <verify.h>; no longer needed.
Paul Eggert [Thu, 26 Jul 2012 19:58:48 +0000 (12:58 -0700)]
* emacs.c: Do not include <verify.h>; no longer needed.

Fixes: debbugs:12036

11 years agoFix export of symbols to GDB.
Paul Eggert [Thu, 26 Jul 2012 18:35:50 +0000 (11:35 -0700)]
Fix export of symbols to GDB.

* alloc.c (ARRAY_MARK_FLAG_VAL, PSEUDOVECTOR_FLAG_VAL, VALMASK_VAL)
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Move these here from
emacs.c, as this is a more-suitable home.  Had this been done earlier
the fix for 1995-05-30T23:07:27Z!kwzh@gnu.org would have avoided some of the problems noted in
<http://bugs.gnu.org/1995-05-30T23:07:27Z!kwzh@gnu.org#13> by Eli Zaretskii, as the scope problems
would have been more obvious.
* emacs.c (gdb_CHECK_LISP_OBJECT_TYPE, gdb_DATA_SEG_BITS)
(gdb_GCTYPEBITS, gdb_USE_LSB_TAG)
(CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS, GCTYPEBITS, USE_LSB_TAG):
Remove; now done in lisp.h.
* lisp.h (PUBLISH_TO_GDB): New macro.
(GCTYPEBITS, USE_LSB_TAG, CHECK_LISP_OBJECT_TYPE, enum pvec_type)
(DATA_SEG_BITS): Use it.
(GCTYPEBITS, USE_LSB_TAG): Now also an enum, for GDB.
(CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS): Now just an enum, for GDB.
* mem-limits.h (EXCEEDS_LISP_PTR): Redo so that DATA_SEG_BITS need
not be usable in #if.  This simplifies things.

11 years agoFix parallel bootstrap in lisp/ on MS-Windows.
Eli Zaretskii [Thu, 26 Jul 2012 17:10:21 +0000 (20:10 +0300)]
Fix parallel bootstrap in lisp/ on MS-Windows.

 lisp/makefile.w32-in ($(lisp)/calendar/cal-loaddefs.el)
 ($(lisp)/calendar/diary-loaddefs.el)
 ($(lisp)/calendar/hol-loaddefs.el, $(lisp)/mh-e/mh-loaddefs.el)
 ($(lisp)/net/tramp-loaddefs.el): Depend on update-subdirs.  Fixes
 failures in parallel bootstrap because subdirs.el is being
 rewritten while the autoload files are built at the same time,
 which needs to load subdirs.el.

11 years agosrc/makefile.w32-in ($(BLD)/emacs.$(O)): Update dependencies.
Juanma Barranquero [Thu, 26 Jul 2012 13:59:01 +0000 (15:59 +0200)]
src/makefile.w32-in ($(BLD)/emacs.$(O)): Update dependencies.

11 years agoAdd Bug#1995-05-30T23:07:27Z!kwzh@gnu.org to latest ChangeLog entry.
Paul Eggert [Thu, 26 Jul 2012 09:14:40 +0000 (02:14 -0700)]
Add Bug#1995-05-30T23:07:27Z!kwzh@gnu.org to latest ChangeLog entry.

(I found this bug report after installing the change.)

11 years agoSpelling fix in comment.
Paul Eggert [Thu, 26 Jul 2012 08:51:23 +0000 (01:51 -0700)]
Spelling fix in comment.

11 years agoIn mouse-drag-line don't exit tracking prematurely (Bug#12006).
Martin Rudalics [Thu, 26 Jul 2012 08:32:25 +0000 (10:32 +0200)]
In mouse-drag-line don't exit tracking prematurely (Bug#12006).

* mouse.el (popup-menu): Fix doc-string and re-indent code.
(mouse-drag-line): Don't exit tracking when a switch-frame or
switch-window event occurs (Bug#12006).