]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 years agoRemove obsolete '#define static' cruft.
Paul Eggert [Thu, 31 May 2012 05:08:37 +0000 (22:08 -0700)]
Remove obsolete '#define static' cruft.

* etc/PROBLEMS: Remove obsolete '#define static' cruft.
* lwlib/xlwmenu.c [emacs]: Include "bitmaps/gray.xbm".
(gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits) [!emacs]:
Remove; all uses replaced with definiens.
* src/s/hpux10-20.h (_FILE_OFFSET_BITS): Don't #undef.
This #undef was "temporary" in 2000; it is no longer needed
now that '#define static' has gone away.
* src/xfns.c, src/xterm.h (gray_bitmap_width, gray_bitmap_height)
(gray_bitmap_bits): Remove; no longer needed.
All uses replaced with definiens.
* src/xterm.c: Include "bitmaps/gray.xbm".

12 years agoAdd `declare' for `defun'. Align `defmacro's with it.
Stefan Monnier [Thu, 31 May 2012 01:41:17 +0000 (21:41 -0400)]
Add `declare' for `defun'.  Align `defmacro's with it.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode)
(define-globalized-minor-mode): Don't autoload the var definitions.
* lisp/emacs-lisp/byte-run.el: Use lexical-binding.
(defun-declarations-alist, macro-declarations-alist): New vars.
(defmacro, defun): Use them.
(make-obsolete, define-obsolete-function-alias)
(make-obsolete-variable, define-obsolete-variable-alias):
Use `declare'.
(macro-declaration-function): Mark obsolete.
* lisp/emacs-lisp/autoload.el: Use lexical-binding.
(make-autoload): Add `expansion' arg.  Rely more on macro expansion.

12 years ago* etc/NEWS: Doc fix.
Juri Linkov [Thu, 31 May 2012 01:09:41 +0000 (04:09 +0300)]
* etc/NEWS: Doc fix.

Fixes: debbugs:11574
12 years agoClean up __executable_start, monstartup when --enable-profiling.
Paul Eggert [Wed, 30 May 2012 19:23:37 +0000 (12:23 -0700)]
Clean up __executable_start, monstartup when --enable-profiling.

The following changes affect the code only when profiling.
* dispnew.c (__executable_start): Rename from safe_bcopy.
Define only on platforms that need it.
* emacs.c: Include <sys/gmon.h> when profiling.
(_mcleanup): Remove decl, since <sys/gmon.h> does it now.
(__executable_start): Remove decl, since lisp.h does it now.
(safe_bcopy): Remove decl; no longer has that name.
(main): Coalesce #if into single bit of code, for simplicity.
Cast pointers to uintptr_t, since standard libraries want integers
and not pointers.
* lisp.h (__executable_start): New decl.

12 years agoispell.el: Define `ispell-with-no-warnings' as a macro. Deal with obsolete `interacti...
Agustín Martín [Wed, 30 May 2012 16:14:37 +0000 (18:14 +0200)]
ispell.el: Define `ispell-with-no-warnings' as a macro. Deal with obsolete `interactive-p'

* Current `ispell-with-no-warnings' definition does not avoid warnings.
  Use a macro definition taken from orgmode.

* Deal with a couple of occurrences of obsolete `interactive-p'.

12 years agoImprove call-process-region error message.
Jim Meyering [Wed, 30 May 2012 14:20:45 +0000 (22:20 +0800)]
Improve call-process-region error message.

* src/callproc.c (Fcall_process_region): Include directory component
in mkstemp error message.

Fixes: debbugs:11586
12 years ago* alloc.c, lisp.h (make_pure_vector): Now static.
Paul Eggert [Wed, 30 May 2012 07:59:44 +0000 (00:59 -0700)]
* alloc.c, lisp.h (make_pure_vector): Now static.

12 years ago* lisp/emacs-lisp/byte-run.el (defmacro, defun): Move from C.
Stefan Monnier [Wed, 30 May 2012 03:59:42 +0000 (23:59 -0400)]
* lisp/emacs-lisp/byte-run.el (defmacro, defun): Move from C.
(macro-declaration-function): Move var from C code.
(macro-declaration-function): Define function with defalias.
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1):
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Don't handle
defun/defmacro any more.
* lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-signature):
Provide fallback for unknown arglist.
(byte-compile-arglist-warn): Change calling convention.
(byte-compile-output-file-form): Move print-vars binding.
(byte-compile-output-docform): Simplify accordingly.
(byte-compile-file-form-defun, byte-compile-file-form-defmacro)
(byte-compile-defmacro-declaration): Remove.
(byte-compile-file-form-defmumble): Generalize to defalias.
(byte-compile-output-as-comment): Return byte-positions.
Simplify callers accordingly.
(byte-compile-lambda): Use `assert'.
(byte-compile-defun, byte-compile-defmacro): Remove.
(byte-compile-file-form-defalias):
Use byte-compile-file-form-defmumble.
(byte-compile-defalias-warn): Remove.
* src/eval.c (Fdefun, Fdefmacro, Vmacro_declaration_function):
Move to byte-run.el.
(Fautoload): Do the hash-doc more carefully.
* src/data.c (Fdefalias): Purify definition, except for keymaps.
(Qdefun): Move from eval.c.
* src/lisp.h (Qdefun): Remove.
* src/lread.c (read1): Tiny simplification.
* lib-src/make-docfile.c: Improve comment style.
(search_lisp_doc_at_eol): New function.
(scan_lisp_file): Use it.

12 years agoFix ChangeLog entry by negating its 1st sentence.
Paul Eggert [Tue, 29 May 2012 21:33:38 +0000 (14:33 -0700)]
Fix ChangeLog entry by negating its 1st sentence.

12 years agoSilence `checkdoc-ispell' errors where possible. Fix authors. Improve
Stefan Merten [Tue, 29 May 2012 20:14:18 +0000 (22:14 +0200)]
Silence `checkdoc-ispell' errors where possible.  Fix authors.  Improve
comments.  Improve loading of `cl'.

(rst-mode-abbrev-table): Merge definition.
(rst-mode): Make sure `font-lock-defaults' is buffer local.
(rst-define-key, rst-deprecated-keys, rst-call-deprecated): Refactor.

12 years agoicalendar-tests: Fix Bug#11525 -- Add icalendar-import-format-uid
Ulf Jasper [Tue, 29 May 2012 19:42:49 +0000 (21:42 +0200)]
icalendar-tests: Fix Bug#11525 -- Add icalendar-import-format-uid

2012-05-29  Ulf Jasper  <ulf.jasper@web.de>

* calendar/icalendar.el
(icalendar-export-region): Export UID properly.

2012-05-29 Leo Liu <sdl.web@gmail.com>
* calendar/icalendar.el (icalendar-import-format): Add
`icalendar-import-format-uid' (Bug#11525).
(icalendar-import-format-uid): New.
(icalendar--parse-summary-and-rest, icalendar--format-ical-event):
Export UID.

12 years agoDo not avoid creating empty evaporating overlays (Bug#9642).
Troels Nielsen [Tue, 29 May 2012 16:13:38 +0000 (09:13 -0700)]
Do not avoid creating empty evaporating overlays (Bug#9642).

* buffer.c (Fmove_overlay): Reinstate the earlier fix for
Bug#9642, but explicitly check that the buffer the overlay would
be moved to is live and rearrange lines to make sure that errors
will not put the overlay in an inconsistent state.
(Fdelete_overlay): Cosmetics.

12 years agoFix minor corner case bugs in byte compilation and pcase.
Stefan Monnier [Tue, 29 May 2012 14:28:02 +0000 (10:28 -0400)]
Fix minor corner case bugs in byte compilation and pcase.
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Don't re-preprocess
functions from byte-compile-function-environment.
* lisp/emacs-lisp/bytecomp.el (byte-compile-constp): Treat #'v as a constant.
(byte-compile-close-variables): Bind byte-compile--outbuffer here...
(byte-compile-from-buffer): ...rather than here.
* lisp/emacs-lisp/pcase.el (pcase--expand): Accept different sets of vars in
different alternative patterns.
(pcase-codegen): Be more careful to preserve identity.
(pcase--u1): Don't forget to mark vars as used.

12 years agoFix active minibuffer case for window-deletable-p.
Troels Nielsen [Tue, 29 May 2012 12:22:49 +0000 (20:22 +0800)]
Fix active minibuffer case for window-deletable-p.

* window.el (window-deletable-p): Avoid deleting the root window
of a frame with an active minibuffer.

12 years ago* lisp/simple.el (choose-completion): Use quit-window.
Martin Rudalics [Tue, 29 May 2012 12:21:45 +0000 (20:21 +0800)]
* lisp/simple.el (choose-completion): Use quit-window.

Fixes: debbugs:11567
12 years ago* whitespace.el (whitespace-cleanup): Fix whitespace-empty-at-bob-regexp usage.
Chong Yidong [Tue, 29 May 2012 11:51:19 +0000 (19:51 +0800)]
* whitespace.el (whitespace-cleanup): Fix whitespace-empty-at-bob-regexp usage.

Fixes: debbugs:11492
12 years ago* vc.el (vc-revert, vc-rollback): Dont kill vc-diff buffer on revert.
Aaron S. Hawley [Tue, 29 May 2012 11:41:45 +0000 (19:41 +0800)]
* vc.el (vc-revert, vc-rollback): Dont kill vc-diff buffer on revert.

Fixes: debbugs:11488
12 years ago* lisp/isearch.el (isearch-mode-map): Bind `M-s _' to `isearch-toggle-symbol'.
Juri Linkov [Tue, 29 May 2012 09:46:06 +0000 (12:46 +0300)]
* lisp/isearch.el (isearch-mode-map): Bind `M-s _' to `isearch-toggle-symbol'.
Bind `M-s c' to `isearch-toggle-case-fold'.
(search-map): Bind `M-s _' to `isearch-forward-symbol'.
(isearch-forward): Add `M-s _' to the docstring.
(isearch-forward-symbol, isearch-toggle-case-fold)
(isearch-symbol-regexp): New functions.

Fixes: debbugs:11381
12 years ago* lisp/isearch.el (isearch-word): Add docstring.
Juri Linkov [Tue, 29 May 2012 09:27:39 +0000 (12:27 +0300)]
* lisp/isearch.el (isearch-word): Add docstring.
(isearch-occur, isearch-search-and-update): If `isearch-word' is
a function, call it to get the regexp.
(isearch-message-prefix): If `isearch-word' holds a symbol, use its
property `isearch-message-prefix' instead of the string "word ".
(isearch-search-fun-default): For the case of `isearch-word',
return a lambda that calls re-search-forward/re-search-backward
with a regexp returned by `word-search-regexp' or by the function
in `isearch-word'.

Fixes: debbugs:11381
12 years ago* lisp/isearch.el (isearch-search-fun-default): New function.
Juri Linkov [Tue, 29 May 2012 09:09:38 +0000 (12:09 +0300)]
* lisp/isearch.el (isearch-search-fun-default): New function.
(isearch-search-fun): Move default part to the new function
`isearch-search-fun-default'.
(isearch-search-fun-function): Set the default value to
`isearch-search-fun-default'.

* lisp/comint.el (comint-history-isearch-end):
Use `isearch-search-fun-default'.
(comint-history-isearch-search): Use `isearch-search-fun-default'
and remove spacial case for `isearch-word'.
(comint-history-isearch-wrap): Remove spacial case for
`isearch-word'.

* lisp/hexl.el (hexl-isearch-search-function):
Use `isearch-search-fun-default'.

* lisp/info.el (Info-isearch-search): Use `isearch-search-fun-default'.
Use `word-search-regexp' for `isearch-word'.

* lisp/misearch.el (multi-isearch-search-fun):
Use `isearch-search-fun-default'.

* lisp/simple.el (minibuffer-history-isearch-search):
Use `isearch-search-fun-default' and remove spacial case for
`isearch-word'.
(minibuffer-history-isearch-wrap): Remove spacial case for
`isearch-word'.

* lisp/textmodes/reftex-global.el (reftex-isearch-wrap-function):
Remove spacial case for `isearch-word'.
(reftex-isearch-isearch-search): Use `isearch-search-fun-default'.

Fixes: debbugs:11381
12 years agoSpelling fixes.
Paul Eggert [Tue, 29 May 2012 06:16:49 +0000 (23:16 -0700)]
Spelling fixes.

12 years agoMakefile.in (echo-info): Don't try to install info files named just ".info"
Katsumi Yamaoka [Tue, 29 May 2012 05:19:41 +0000 (05:19 +0000)]
Makefile.in (echo-info): Don't try to install info files named just ".info"

12 years ago* doc/lispintro/emacs-lisp-intro.texi: Nuke hand-written node pointers.
Glenn Morris [Tue, 29 May 2012 00:53:40 +0000 (17:53 -0700)]
* doc/lispintro/emacs-lisp-intro.texi: Nuke hand-written node pointers.
(dolist, dotimes): Fix sectioning.

12 years ago* emacs/ack.texi, emacs/building.texi, emacs/calendar.texi
Glenn Morris [Mon, 28 May 2012 23:35:09 +0000 (16:35 -0700)]
* emacs/ack.texi, emacs/building.texi, emacs/calendar.texi
* emacs/custom.texi, emacs/maintaining.texi, emacs/text.texi:
* misc/calc.texi, misc/dired-x.texi:
Use @LaTeX rather than La@TeX.

Fixes: debbugs:10910
12 years ago* doc/misc/sc.texi: Nuke hand-written node pointers.
Glenn Morris [Mon, 28 May 2012 23:28:27 +0000 (16:28 -0700)]
* doc/misc/sc.texi: Nuke hand-written node pointers.
Fix top-level menu to match actual node order.

12 years agoFix bug #11513 with raise-frame on MS-Windows.
Eli Zaretskii [Mon, 28 May 2012 17:22:40 +0000 (20:22 +0300)]
Fix bug #11513 with raise-frame on MS-Windows.

 src/w32term.c (my_bring_window_to_top): New function.
 (x_raise_frame): Use handle returned by DeferWindowPos, which
 could be different from the original one.  Call
 my_bring_window_to_top instead of my_set_foreground_window.
 src/w32fns.c (w32_wnd_proc): Accept and process WM_EMACS_BRINGTOTOP
 by calling BringWindowToTop.
 src/w32term.h (WM_EMACS_BRINGTOTOP): New message.
 (WM_EMACS_END): Increase by one.

12 years agoRemove HAVE_SYSINFO from nt/config.nt, followup to 2012-05-28T00:46:33Z!eggert@cs...
Eli Zaretskii [Mon, 28 May 2012 17:00:18 +0000 (20:00 +0300)]
Remove HAVE_SYSINFO from nt/config.nt, followup to 2012-05-28T00:46:33Z!eggert@cs.ucla.edu.

 nt/config.nt (HAVE_SYSINFO): Remove; unused.

12 years agotextmodex/{ispell,flyspell}.el: Decrease XEmacs incompatibilities.
Agustín Martín [Mon, 28 May 2012 16:11:15 +0000 (18:11 +0200)]
textmodex/{ispell,flyspell}.el: Decrease XEmacs incompatibilities.

* flyspell.el:
  (flyspell-check-pre-word-p): Use `string-match'.
  (flyspell-delete-region-overlays): Use alternative definition for XEmacs.
  (flyspell-delete-all-overlays): Use `flyspell-delete-region-overlays'.
  (flyspell-word): Use `process-kill-without-query' if XEmacs.
  (flyspell-mode-on): Use `interactive-p' if XEmacs.
  (flyspell-incorrect-face, flyspell-duplicate-face):
  Do not use `define-obsolete-face-alias' under XEmacs, but old method.

* ispell.el:
  (ispell-with-no-warnings): XEmacs alternative `with-no-warnings'
  definition or Emacs alias.
  (ispell-command-loop, ispell-message): Use `ispell-with-no-warnings'.
  (ispell-word): Do not use `region-p' if XEmacs.

12 years agotextmodes/ispell.el: Fix variable name. Show spellchecker on process start.
Agustín Martín [Mon, 28 May 2012 14:36:27 +0000 (16:36 +0200)]
textmodes/ispell.el: Fix variable name. Show spellchecker on process start.

* (ispell-find-aspell-dictionaries): Check for
  `ispell-dictionary-base-alist' instead of full `ispell-dictionary-alist'.
* (ispell-init-process): Show spellchecker when starting new Ispell process.

12 years agoAuto-commit of generated files.
Glenn Morris [Mon, 28 May 2012 10:17:28 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* bidi.c (bidi_mirror_char): Put eassert before conversion to int.
Paul Eggert [Mon, 28 May 2012 07:13:45 +0000 (00:13 -0700)]
* bidi.c (bidi_mirror_char): Put eassert before conversion to int.

This avoids undefined behavior that might cause the eassert
to not catch an out-of-range value.

12 years ago* lisp/progmodes/vhdl-mode.el: Sync with upstream 3.33.28.
Reto Zimmermann [Mon, 28 May 2012 03:42:18 +0000 (23:42 -0400)]
* lisp/progmodes/vhdl-mode.el: Sync with upstream 3.33.28.
http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html#release-notes-3.33

12 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Mon, 28 May 2012 01:58:42 +0000 (03:58 +0200)]
src/makefile.w32-in: Update dependencies.

12 years agoMake 'configure' a bit smaller and faster.
Paul Eggert [Mon, 28 May 2012 00:46:33 +0000 (17:46 -0700)]
Make 'configure' a bit smaller and faster.

* configure.in (INSTALL_INFO): Set it with one call to
AC_PATH_PROG, not three.
(PKG_CONFIG): Hoist this out of PKG_CHECK_MODULES, since it's
so likely that it'll be needed.
(AC_CHECK_HEADERS_ONCE): Prefer to AC_CHECK_HEADERS where either works.
(AC_PROG_MAKE_SET): Remove; Automake does this.
(sysinfo): Do not check for this function, as it's never used.
(tzset): Check for this function just once.
* admin/CPP-DEFINES: Remove HAVE_SYSINFO.
* m4/manywarnings.m4: Sync from gnulib, incorporating the following:
2012-05-27 manywarnings: remove duplicate -Wmultichar entry

12 years agolips/version.el (*-version-string): Declare.
Juanma Barranquero [Sun, 27 May 2012 17:31:31 +0000 (19:31 +0200)]
lips/version.el (*-version-string): Declare.

12 years agoFix the MSDOS build following gnulib update.
Eli Zaretskii [Sun, 27 May 2012 13:42:13 +0000 (16:42 +0300)]
Fix the MSDOS build following gnulib update.

 config.bat (lib): Create/update lib/stdalign.in-h and
 lib/sys_types.in-h.
 msods/sedlibmk.inp (GNULIB_GL_UNISTD_H_GETOPT, GNULIB_POSIX_OPENPT)
 (GNULIB_ISATTY, GNULIB_PTSNAME_R, GNULIB_RANDOM)
 (GNULIB_SETHOSTNAME, HAVE_POSIX_OPENPT, HAVE_PTSNAME_R)
 (HAVE_RANDOM, HAVE_SETHOSTNAME, NEXT_SYS_TYPES_H)
 (NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H, REPLACE_FTRUNCATE)
 (REPLACE_ISATTY, REPLACE_PTSNAME_R, REPLACE_RANDOM_R)
 (REPLACE_STRTOIMAX, STDALIGN_H, WINDOWS_64_BIT_OFF_T)
 (WINDOWS_64_BIT_ST_SIZE, GL_GENERATE_STDALIGN_H_TRUE)
 (GL_GENERATE_STDALIGN_H_FALSE): Edit as appropriate for DJGPP.
 (cat FOO): Edit into "sed -e '' FOO >>".

12 years agoFix last change in bidi_mirror_char.
Eli Zaretskii [Sun, 27 May 2012 12:27:07 +0000 (15:27 +0300)]
Fix last change in bidi_mirror_char.

12 years ago* unexmacosx.c (copy_data_segment): Truncate after 16 characters
Andreas Schwab [Sun, 27 May 2012 12:18:35 +0000 (14:18 +0200)]
* unexmacosx.c (copy_data_segment): Truncate after 16 characters
when referring to sectname field in printf format.

12 years agoFix the MS-Windows build broken by 1995-02-25T20:57:45Z!rms@gnu.org.
Eli Zaretskii [Sun, 27 May 2012 12:11:23 +0000 (15:11 +0300)]
Fix the MS-Windows build broken by 1995-02-25T20:57:45Z!rms@gnu.org.

 lib/makefile.w32-in ($(BLD)/md5.$(O)):
 ($(BLD)/sha1.$(O)):
 ($(BLD)/sha256.$(O)):
 ($(BLD)/sha512.$(O)): Depend on $(EMACS_ROOT)/nt/inc/stdalign.h.
 Suggested by Christoph Scholtes <cschol2112@googlemail.com>.
 lib/getopt_.h: Regenerate.
 nt/inc/stdalign.h: New file.

Fixes: debbugs:11527
12 years agoAuto-commit of generated files.
Glenn Morris [Sun, 27 May 2012 10:19:11 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years ago* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use `eval-sexp-add-defvars'
Juri Linkov [Sun, 27 May 2012 09:45:54 +0000 (12:45 +0300)]
* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use `eval-sexp-add-defvars'
after the `eval-defun-1' specialcaseing
like in `edebug-eval-defun'.

* lisp/emacs-lisp/edebug.el (edebug-eval-defun): Set `face-documentation'
like in `eval-defun-1'.

Fixes: debbugs:10181
12 years agoAssume gnulib does largefile.
Paul Eggert [Sun, 27 May 2012 09:12:09 +0000 (02:12 -0700)]
Assume gnulib does largefile.

Gnulib does the largefile configuration anyway, so when configure.in
invokes AC_SYS_LARGEFILE, that bloats 'configure' unnecessarily.
* admin/merge-gnulib (GNULIB_MODULES): Add largefile.
* configure.in (AC_SYS_LARGEFILE): Remove.
* lib/gnulib.mk: Autoupdate.

12 years ago* lisp.h [REL_ALLOC]: Omit duplicate prototypes.
Paul Eggert [Sun, 27 May 2012 07:51:09 +0000 (00:51 -0700)]
* lisp.h [REL_ALLOC]: Omit duplicate prototypes.

Only r_alloc_inhibit_buffer_relocation needed to be added;
the others were already declared.

12 years ago* bidi.c (bidi_mirror_char): Don't possibly truncate the integer
Paul Eggert [Sun, 27 May 2012 07:32:46 +0000 (00:32 -0700)]
* bidi.c (bidi_mirror_char): Don't possibly truncate the integer

before checking whether it's out of range.  Put the check inside
eassert.  See
<http://lists.gnu.org/archive/html/emacs-devel/2012-05/msg00485.html>.

12 years ago* doc/misc/cl.texi, doc/misc/dired-x.texi: Nuke hand-written node pointers.
Glenn Morris [Sun, 27 May 2012 02:30:29 +0000 (19:30 -0700)]
* doc/misc/cl.texi, doc/misc/dired-x.texi: Nuke hand-written node pointers.
Some associated fixes, including not messing with chapno in cl.texi.

12 years ago* doc/emacs/emacs.texi: Simplify following removal of node pointers.
Glenn Morris [Sun, 27 May 2012 02:13:54 +0000 (19:13 -0700)]
* doc/emacs/emacs.texi: Simplify following removal of node pointers.

12 years agoNuke hand-written node pointers in doc/lispref
Glenn Morris [Sun, 27 May 2012 01:34:14 +0000 (18:34 -0700)]
Nuke hand-written node pointers in doc/lispref
Let makeinfo figure them out, as is recommended.

12 years agoNuke hand-written node pointers in doc/emacs
Glenn Morris [Sun, 27 May 2012 01:25:06 +0000 (18:25 -0700)]
Nuke hand-written node pointers in doc/emacs
Let makeinfo figure them out, as is recommended.

12 years agoMerge from emacs-24; up to 2012-04-24T08:35:02Z!lekktu@gmail.com
Glenn Morris [Sun, 27 May 2012 01:06:44 +0000 (18:06 -0700)]
Merge from emacs-24; up to 2012-04-24T08:35:02Z!lekktu@gmail.com

12 years agoMerge from gnulib.
Paul Eggert [Sat, 26 May 2012 23:14:36 +0000 (16:14 -0700)]
Merge from gnulib.

Fixes: debbugs:11527
12 years ago* lib-src/Makefile.in (INSTALL_DATA): Remove; unused.
Glenn Morris [Sat, 26 May 2012 22:38:19 +0000 (15:38 -0700)]
* lib-src/Makefile.in (INSTALL_DATA): Remove; unused.

12 years agoFix coding-related core dumps with gcc -ftrapv.
Paul Eggert [Sat, 26 May 2012 22:27:21 +0000 (15:27 -0700)]
Fix coding-related core dumps with gcc -ftrapv.

The code was computing A - B, where A and B are pointers, and B is
random garbage.  This can lead to core dumps on platforms that
have special pointer registers, and it also leads to core dumps on
x86-64 when compiled with gcc -ftrapv.  The fix is to compute
A - B only when B is initialized properly.
* coding.c (coding_set_source, coding_set_destination): Return void.
(coding_change_source, coding_change_destinations): New functions,
with the old behaviors of coding_set_source and coding_set_destination.
All callers that need an offset changed to use these new functions.

12 years agoReplace w32-init-info through the magic of custom-initialize-delay
Glenn Morris [Sat, 26 May 2012 21:58:01 +0000 (14:58 -0700)]
Replace w32-init-info through the magic of custom-initialize-delay

* lisp/w32-fns.el (w32-init-info): Remove.
* lisp/paths.el (Info-default-directory-list): Add w32-init-info equivalent.

12 years agoDon't mess with INFOPATH in ns builds
Glenn Morris [Sat, 26 May 2012 21:23:28 +0000 (14:23 -0700)]
Don't mess with INFOPATH in ns builds

It's not necessary, and would break if INFOPATH was already set (bug#2791).
Ref also
http://lists.gnu.org/archive/html/emacs-devel/2009-05/msg00035.html
http://lists.gnu.org/archive/html/emacs-devel/2005-06/msg00064.html

* lisp/paths.el (Info-default-directory-list):
* lisp/info.el (info-initialize): For self-contained NS builds, put the
included info/ directory at the front.

* src/nsterm.m (ns_init_paths): Don't mess with INFOPATH.

12 years ago* lisp/paths.el (Info-default-directory-list): Make it a defcustom.
Glenn Morris [Sat, 26 May 2012 21:17:06 +0000 (14:17 -0700)]
* lisp/paths.el (Info-default-directory-list): Make it a defcustom.

This is mainly so that we can use custom-initialize-delay,
which means we do not have to worry about "unpruned" directories.

12 years agoComment
Glenn Morris [Sat, 26 May 2012 20:57:31 +0000 (13:57 -0700)]
Comment

12 years ago* lisp/subr.el (buffer-has-markers-at): Mark obsolete.
Stefan Monnier [Sat, 26 May 2012 19:55:07 +0000 (15:55 -0400)]
* lisp/subr.el (buffer-has-markers-at): Mark obsolete.

12 years agoUse `declare' in `lambda' and mis minor changes.
Stefan Monnier [Sat, 26 May 2012 15:52:27 +0000 (11:52 -0400)]
Use `declare' in `lambda' and mis minor changes.
* lisp/subr.el (lambda): Use declare.
* lisp/emacs-lisp/lisp-mode.el (lambda):
* lisp/emacs-lisp/edebug.el (lambda): Move properties to its definition.
* lisp/gnus/legacy-gnus-agent.el (gnus-agent-unhook-expire-days):
* lisp/gnus/gnus-demon.el (gnus-demon-init): Don't bother with type-of.

12 years agoExtend mouse support on W32 text-mode console.
Eli Zaretskii [Sat, 26 May 2012 12:14:56 +0000 (15:14 +0300)]
Extend mouse support on W32 text-mode console.

 src/xdisp.c (draw_row_with_mouse_face): Call
 tty_draw_row_with_mouse_face for WINDOWSNT as well.
 src/w32console.c: Include window.h.
 (w32con_write_glyphs_with_face, tty_draw_row_with_mouse_face): New
 functions.
 (initialize_w32_display): Initialize mouse-highlight data.
 src/w32inevt.c: Include termchar.h and window.h.
 (do_mouse_event): Support mouse-autoselect-window.  When the mouse
 moves, call note_mouse_highlight.  If help_echo changed, call
 gen_help_event to produce help-echo message in the echo area.
 Call clear_mouse_face if mouse_face_hidden is set in the mouse
 highlight info.

 etc/NEWS: Describe the changes.

12 years agoSupport help-echo and tooltip messages on w32 text-mode terminals.
Eli Zaretskii [Sat, 26 May 2012 11:58:19 +0000 (14:58 +0300)]
Support help-echo and tooltip messages on w32 text-mode terminals.

 src/w32inevt.c (do_mouse_event): If help_echo changed, call gen_help_event
 to produce help-echo message in the echo area.

12 years agoSupport mouse-autoselect-window on w32 text-mode terminals.
Eli Zaretskii [Sat, 26 May 2012 11:46:20 +0000 (14:46 +0300)]
Support mouse-autoselect-window on w32 text-mode terminals.

 src/w32inevt.c (do_mouse_event): Support mouse-autoselect-window.

12 years agoRefactor mouse highlight invocation for w32 console.
Eli Zaretskii [Sat, 26 May 2012 09:56:31 +0000 (12:56 +0300)]
Refactor mouse highlight invocation for w32 console.

 src/w32inevt.c: Include termchar.h.
 (mouse_moved_to): Move the call to note_mouse_highlight from here...
 (do_mouse_event): ...to here.
 Call clear_mouse_face if mouse_face_hidden is set in the mouse
 highlight info.

12 years agoSupport mouse highlight on w32 text-mode frames.
Eli Zaretskii [Sat, 26 May 2012 09:31:59 +0000 (12:31 +0300)]
Support mouse highlight on w32 text-mode frames.

 src/xdisp.c (draw_row_with_mouse_face): Call
 tty_draw_row_with_mouse_face for WINDOWSNT as well.
 src/w32inevt.c (mouse_moved_to): When the mouse moves, call
 note_mouse_highlight.
 src/w32console.c: Include window.h.
 (w32con_write_glyphs_with_face, tty_draw_row_with_mouse_face): New
 functions.
 (initialize_w32_display): Initialize mouse-highlight data.

12 years ago* lread.c (read1): Simplify slightly to avoid an overflow warning
Paul Eggert [Sat, 26 May 2012 08:30:49 +0000 (01:30 -0700)]
* lread.c (read1): Simplify slightly to avoid an overflow warning

with GCC 4.7.0 on x86-64.

12 years agoRevert last change in bidi.c.
Eli Zaretskii [Sat, 26 May 2012 07:03:39 +0000 (10:03 +0300)]
Revert last change in bidi.c.

 src/bidi.c (bidi_mirror_char): Revert last change: an int is
 definitely wide enough here.

12 years ago* lisp/thingatpt.el (forward-same-syntax): Handle no ARG case.
Aaron S. Hawley [Sat, 26 May 2012 02:40:47 +0000 (19:40 -0700)]
* lisp/thingatpt.el (forward-same-syntax): Handle no ARG case.

Fixes: debbugs:11560
12 years ago* lisp/progmodes/cc-mode.el (auto-mode-alist): Fix typo.
Glenn Morris [Sat, 26 May 2012 02:34:16 +0000 (19:34 -0700)]
* lisp/progmodes/cc-mode.el (auto-mode-alist): Fix typo.

12 years agoAdd a forgotten lisp/org/ChangeLog entry.
Bastien Guerry [Fri, 25 May 2012 23:17:15 +0000 (01:17 +0200)]
Add a forgotten lisp/org/ChangeLog entry.

12 years ago* lisp/paths.el: Remove no-byte-compile.
Glenn Morris [Fri, 25 May 2012 22:13:24 +0000 (18:13 -0400)]
* lisp/paths.el: Remove no-byte-compile.

* lisp/loadup.el: No need to load lisp/paths.el uncompiled.

* src/lisp.mk (lisp): Update for this change.

12 years agoFix typos in previous
Glenn Morris [Fri, 25 May 2012 21:28:05 +0000 (17:28 -0400)]
Fix typos in previous

12 years agoFix major bug in the Org>ODT exporter.
Bastien Guerry [Fri, 25 May 2012 21:09:08 +0000 (23:09 +0200)]
Fix major bug in the Org>ODT exporter.

12 years agoMerge from trunk.
Paul Eggert [Fri, 25 May 2012 20:31:25 +0000 (13:31 -0700)]
Merge from trunk.

12 years ago* src/buffer.c (Fmove_overflay): Clip instead of trying to fix bug 9642.
Paul Eggert [Fri, 25 May 2012 20:30:19 +0000 (13:30 -0700)]
* src/buffer.c (Fmove_overflay): Clip instead of trying to fix bug 9642.

12 years ago* lisp/image.el (imagemagick-types-inhibit): Doc fix.
Glenn Morris [Fri, 25 May 2012 20:24:58 +0000 (16:24 -0400)]
* lisp/image.el (imagemagick-types-inhibit): Doc fix.
* etc/NEWS: Related edits.

12 years agoMerge from trunk.
Paul Eggert [Fri, 25 May 2012 19:27:58 +0000 (12:27 -0700)]
Merge from trunk.

12 years agoMerge recent dbus changes better.
Paul Eggert [Fri, 25 May 2012 19:24:54 +0000 (12:24 -0700)]
Merge recent dbus changes better.

12 years ago* src/lisp.mk (lisp): Update for more files being compiled now.
Glenn Morris [Fri, 25 May 2012 18:58:25 +0000 (14:58 -0400)]
* src/lisp.mk (lisp): Update for more files being compiled now.

12 years agoThere's no reason not to compile version.el
Glenn Morris [Fri, 25 May 2012 18:57:51 +0000 (14:57 -0400)]
There's no reason not to compile version.el

AFAICS, this is ancient code dating from when there was an "inc-vers.el",
that was used to bump the build number on version.el. Nowadays that
happens in loadup.el.

* lisp/version.el: Remove no-byte-compile and associated formatting.

* lisp/loadup.el: No need to load lisp/version.el uncompiled.

12 years agoMerge from trunk.
Paul Eggert [Fri, 25 May 2012 18:19:24 +0000 (11:19 -0700)]
Merge from trunk.

12 years ago* src/lread.c: Remove `read_pure' which makes no difference.
Stefan Monnier [Fri, 25 May 2012 18:06:13 +0000 (14:06 -0400)]
* src/lread.c: Remove `read_pure' which makes no difference.
(read_pure): Remove var.
(unreadpure): Remove function.
(readevalloop): Don't call read_list with -1 flag.
(read1, read_vector): Don't test read_pure any more.
(read_list): Simplify.

12 years ago* lisp/progmodes/js.el: Add notes in comments.
Stefan Monnier [Fri, 25 May 2012 15:03:22 +0000 (11:03 -0400)]
* lisp/progmodes/js.el: Add notes in comments.

12 years ago* src/fileio.c, src/character.h: Minor style tweaks.
Stefan Monnier [Fri, 25 May 2012 15:01:30 +0000 (11:01 -0400)]
* src/fileio.c, src/character.h: Minor style tweaks.

12 years ago* lisp/gnus/gnus-win.el (gnus-configure-frame): Don't signal an error when
Stefan Monnier [Fri, 25 May 2012 14:58:17 +0000 (10:58 -0400)]
* lisp/gnus/gnus-win.el (gnus-configure-frame): Don't signal an error when
jumping to *Server* from a dedicated *Group* window.
(gnus-configure-frame): CSE.
* lisp/gnus/gnus-registry.el: Minor style cleanup.
(gnus-registry--set/remove-mark): New function, extracted from
gnus-registry-install-shortcuts.
(gnus-registry-install-shortcuts): Use it.

12 years ago* lisp/progmodes/gdb-mi.el: Minor style changes.
Stefan Monnier [Fri, 25 May 2012 14:47:57 +0000 (10:47 -0400)]
* lisp/progmodes/gdb-mi.el: Minor style changes.
(gdb-enable-debug, gdb-speedbar-auto-raise, gdb-many-windows):
Turn into minor modes.
(gdb--if-arrow): Rename from gdb-if-arrow, make it hygienic.
(gdb-mouse-until, gdb-mouse-jump): Adjust uses accordingly.
(gdb-shell): Remove unneeded let-binding.
(gdb-get-many-fields): Eliminate O(n²) behavior.

12 years agoMinor fixes for MSDOS build to track latest changes.
Eli Zaretskii [Fri, 25 May 2012 10:35:13 +0000 (13:35 +0300)]
Minor fixes for MSDOS build to track latest changes.

 msdos/sed6.inp (INFO_EXT): Edit to .info.
 (INFO_OPTS): Edit to --no-split.
 lisp/cus-start.el <vertical-centering-font-regexp>: Avoid warning on
 platforms that don't link in fontset.c.

12 years agoFollow-up for 2012-05-02T13:00:29Z!cyd@gnu.org.
Eli Zaretskii [Fri, 25 May 2012 10:31:18 +0000 (13:31 +0300)]
Follow-up for 2012-05-02T13:00:29Z!cyd@gnu.org.

 lisp/cus-start.el <vertical-centering-font-regexp>: Avoid warning on
 platforms that don't link in fontset.c.

12 years agoFollow-up for 2012-05-04T06:45:03Z!rgm@gnu.org.
Eli Zaretskii [Fri, 25 May 2012 10:21:30 +0000 (13:21 +0300)]
Follow-up for 2012-05-04T06:45:03Z!rgm@gnu.org.

 msdos/sed6.inp (INFO_EXT): Edit to .info.
 (INFO_OPTS): Edit to --no-split.

12 years ago* lisp/url/url-http.el (url-http-codes): Fix mal-formed defconst.
Leo Liu [Fri, 25 May 2012 10:19:01 +0000 (18:19 +0800)]
* lisp/url/url-http.el (url-http-codes): Fix mal-formed defconst.

12 years agoMerge Org 7.8.11 -- important bug fixes.
Bastien Guerry [Fri, 25 May 2012 07:39:32 +0000 (09:39 +0200)]
Merge Org 7.8.11 -- important bug fixes.

12 years agonnspool.el (news-path): Use eval-and-compile
Katsumi Yamaoka [Fri, 25 May 2012 06:43:29 +0000 (06:43 +0000)]
nnspool.el (news-path): Use eval-and-compile

12 years agoUse the same diff color scheme as in modern VCSes (bug#10181).
Juri Linkov [Fri, 25 May 2012 00:55:40 +0000 (03:55 +0300)]
Use the same diff color scheme as in modern VCSes (bug#10181).

* lisp/vc/diff-mode.el (diff-header, diff-file-header): Remove "green"
to avoid confusion with `diff-added' that now uses green colors.
(diff-removed): Use shades of red.
(diff-added): Use shades of green.
(diff-changed): Leave just the yellow color.
(diff-use-changed-face): New variable.
(diff-font-lock-keywords): Use `diff-use-changed-face' to decide
how to highlight context diff changes.
(diff-refine-change): Use shades of yellow.
(diff-refine-removed): New face that uses shades of red.
(diff-refine-added): New face that uses shades of green.
(diff-refine-hunk): Use `diff-refine-change', `diff-refine-added',
`diff-refine-removed' in the call to `smerge-refine-subst'
depending on the value of `diff-use-changed-face'.

* lisp/vc/ediff-init.el (ediff-current-diff-A, ediff-fine-diff-A):
Add face condition `min-colors 88' with shades of red.
(ediff-current-diff-B, ediff-fine-diff-B): Add face condition
`min-colors 88' with shades of green.
(ediff-current-diff-C, ediff-fine-diff-C): Add face condition
`min-colors 88' with shades of yellow.

* lisp/vc/smerge-mode.el (smerge-mine): Use shades of red.
(smerge-other): Use shades of green.
(smerge-base): Use shades of yellow.
(smerge-refined-change): Empty face.
(smerge-refined-removed): New face that uses shades of red.
(smerge-refined-added): New face that uses shades of green.
(smerge-refine-subst): Rename arg `props' to `props-c'.  Add new
args `props-r' and `props-a', and use them.  Doc fix.
(smerge-refine): Evaluate `smerge-use-changed-face' and depending
on its value use different faces `smerge-refined-change',
`smerge-refined-removed', `smerge-refined-added' in the call to
`smerge-refine-subst'.

12 years agoFix previous (slogin and rlogin not appropriate for remote-shell-program)
Glenn Morris [Thu, 24 May 2012 21:27:22 +0000 (17:27 -0400)]
Fix previous (slogin and rlogin not appropriate for remote-shell-program)

12 years agoMove prune-directory-list, remote-shell-program from paths.el to files.el
Glenn Morris [Thu, 24 May 2012 20:40:19 +0000 (16:40 -0400)]
Move prune-directory-list, remote-shell-program from paths.el to files.el

* lisp/paths.el (prune-directory-list, remote-shell-program): Move to ...
* lisp/files.el (prune-directory-list, remote-shell-program): ...here.
For the latter, delay initialization, prefer ssh, just search PATH.

12 years ago* src/callproc.c (Fcall_process): Restore a line that was accidentally commented...
Ken Brown [Thu, 24 May 2012 11:21:34 +0000 (07:21 -0400)]
* src/callproc.c (Fcall_process): Restore a line that was accidentally commented out (bug#11547).

12 years ago* lisp/paths.el (term-file-prefix): Move to lisp/faces.el (the only user).
Glenn Morris [Thu, 24 May 2012 07:53:21 +0000 (00:53 -0700)]
* lisp/paths.el (term-file-prefix): Move to lisp/faces.el (the only user).
* faces.el (term-file-prefix): Move here, make it a defcustom.

12 years ago* paths.el (news-inews-program): Move to gnus/nnspool.el.
Glenn Morris [Thu, 24 May 2012 07:31:45 +0000 (00:31 -0700)]
* paths.el (news-inews-program): Move to gnus/nnspool.el.

* gnus/nnspool.el (news-inews-program): Move here from paths.el.
Don't see a need for this to be autoloaded.  (Or even to exist; it is
only used to init another variable.)

12 years ago* paths.el (news-directory, news-path): Move to gnus/nnspool.el.
Glenn Morris [Thu, 24 May 2012 07:27:24 +0000 (00:27 -0700)]
* paths.el (news-directory, news-path): Move to gnus/nnspool.el.

* gnus/nnspool.el (news-directory, news-path): Move here from paths.el.
Don't see a need for these to be autoloaded.  This file is the only
place that uses them, to init another variable.

12 years agoAdd missing autload pieces needed for rmail-spool-directory's delayed init
Glenn Morris [Thu, 24 May 2012 07:20:34 +0000 (00:20 -0700)]
Add missing autload pieces needed for rmail-spool-directory's delayed init

12 years agoNo need to define gnus-default-nntp-server in paths.el
Glenn Morris [Thu, 24 May 2012 07:11:19 +0000 (00:11 -0700)]
No need to define gnus-default-nntp-server in paths.el

Don't see a need for this to be autoloaded, since it is only used in
gnus.el (in one place, as a fallback).  Maybe it should be obsolete?

* paths.el (gnus-default-nntp-server): Remove (gnus.el defines it).

* gnus/gnus.el (gnus-default-nntp-server): Make it a defcustom.
Merge in doc from paths.el version.

12 years agoMove some rmail variables from paths.el to rmail.el
Glenn Morris [Thu, 24 May 2012 06:53:08 +0000 (23:53 -0700)]
Move some rmail variables from paths.el to rmail.el

Ref eg
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00620.html

* paths.el (rmail-file-name, rmail-spool-directory): Move from here...
* mail/rmail.el (rmail-file-name, rmail-spool-directory): ... to here.
Make the latter a defcustom, with a delayed initialization.