bpt/emacs.git
11 years agoInitial incomplete version of tty menus. tty_menu_activate not done yet.
Eli Zaretskii [Sat, 2 Jun 2012 14:57:51 +0000 (17:57 +0300)]
Initial incomplete version of tty menus.  tty_menu_activate not done yet.

11 years ago* etc/spook.lines: Additions. (tiny change)
Andrew Beals [Fri, 1 Jun 2012 07:10:49 +0000 (00:10 -0700)]
* etc/spook.lines: Additions.  (tiny change)

Fixes: debbugs:11598

11 years agoFor a 'struct window', replace some Lisp_Object fields to
Dmitry Antipov [Fri, 1 Jun 2012 03:41:03 +0000 (07:41 +0400)]
For a 'struct window', replace some Lisp_Object fields to
bitfields where appropriate, remove unused fields.
* window.h (struct window): Remove unused 'last_mark_x' and
'last_mark_y' fields.  Rename 'mini_p' field to 'mini',
change it's type from Lisp_Object to bitfield.
Change type of 'force_start', 'optional_new_start',
'last_had_star', 'update_mode_line' and 'start_at_line_beg'
fields from Lisp_Object to bitfield. Adjust users accordingly.

11 years agoChangeLog merge fix
Glenn Morris [Thu, 31 May 2012 20:06:04 +0000 (16:06 -0400)]
ChangeLog merge fix

11 years agoFix imagemagick-filter-types for imagemagick-types-enable = t.
Glenn Morris [Thu, 31 May 2012 17:21:31 +0000 (13:21 -0400)]
Fix imagemagick-filter-types for imagemagick-types-enable = t.

11 years agoSplit off imagemagick-filter-types from imagemagick-register-types
Glenn Morris [Thu, 31 May 2012 17:14:46 +0000 (13:14 -0400)]
Split off imagemagick-filter-types from imagemagick-register-types

* lisp/image.el: (imagemagick-filter-types): New function.  (Bug#7406)
(imagemagick-register-types): Use imagemagick-filter-types.

* etc/NEWS: Mention this.

11 years agoAdd option imagemagick-types-enable
Glenn Morris [Thu, 31 May 2012 07:22:33 +0000 (00:22 -0700)]
Add option imagemagick-types-enable

* lisp/image.el: For clarity, call imagemagick-register-types at
top-level, rather than relying on a custom :initialize.
(imagemagick-types-enable): New option.
(imagemagick-register-types): Respect imagemagick-types-inhibit.
If disabling support, remove elements altogether rather
than using an impossible regexp.
(imagemagick-types-inhibit): Give it the default init function.

* src/image.c (Fimagemagick_types): Doc fix.

* etc/NEWS: Mention this.

Fixes: debbugs:11557

11 years agoPacify gcc -Wdouble-precision when using Xaw.
Paul Eggert [Thu, 31 May 2012 06:51:43 +0000 (23:51 -0700)]
Pacify gcc -Wdouble-precision when using Xaw.

* xterm.c (xaw_jump_callback, x_set_toolkit_scroll_bar_thumb)
[HAVE_X_WINDOWS && USE_TOOLKIT_SCROLL_BARS && !USE_MOTIF && !USE_GTK]:
Use 'float' consistently, rather than 'float' in most places
and 'double' in a couple of places.

11 years agoMerge from emacs-24; up to 2012-04-24T21:47:24Z!michael.albinus@gmx.de
Chong Yidong [Thu, 31 May 2012 06:08:06 +0000 (14:08 +0800)]
Merge from emacs-24; up to 2012-04-24T21:47:24Z!michael.albinus@gmx.de

11 years agoFix long filename handling of byte-compile-fix-header.
Stefan Monnier [Thu, 31 May 2012 05:56:57 +0000 (13:56 +0800)]
Fix long filename handling of byte-compile-fix-header.

* lisp/emacs-lisp/bytecomp.el (byte-compile-fix-header): Handle
arbitrary file name lengths (Bug#11585).

11 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".

11 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.

11 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

11 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.

11 years agoFix bug #11587 with a crash in an Info buffer under linum-mode.
Eli Zaretskii [Wed, 30 May 2012 18:09:17 +0000 (21:09 +0300)]
Fix bug #11587 with a crash in an Info buffer under linum-mode.

 src/xdisp.c (handle_stop): Detect whether we have overlay strings
 loaded by testing it->current.overlay_string_index to be
 non-negative, instead of checking whether n_overlay_strings is
 positive.

11 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'.

11 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

11 years ago* keymap.c (describe_map_tree): Revert 2011-07-07 change.
Chong Yidong [Wed, 30 May 2012 14:08:58 +0000 (22:08 +0800)]
* keymap.c (describe_map_tree): Revert 2011-07-07 change.

* doc.c (Fsubstitute_command_keys): Doc fix.

Fixes: debbugs:1169

11 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 agoFix bug #11405 with MSVC build of emacsclientw.
Eli Zaretskii [Tue, 29 May 2012 16:15:12 +0000 (19:15 +0300)]
Fix bug #11405 with MSVC build of emacsclientw.

 lib-src/makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS)
 instead of a literal -mwindows, which is not supported by MSVC.
 nt/nmake.defs (MWINDOWS): Define as "-subsystem:windows -entry:mainCRTStartup".
 Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>.
 nt/gmake.defs (MWINDOWS): Define as "-mwindows".

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 agoDon't call r_alloc_inhibit_buffer_relocation from search.c.
Eli Zaretskii [Tue, 29 May 2012 16:01:05 +0000 (19:01 +0300)]
Don't call r_alloc_inhibit_buffer_relocation from search.c.

 src/search.c (search_buffer): Remove calls to
 r_alloc_inhibit_buffer_relocation, as it is now called by
 maybe_unify_char, which was the cause of relocation of buffer text
 in bug#11519.

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 agoAvoid buffer text relocations in calls to STRING_CHAR_* macros.
Eli Zaretskii [Mon, 28 May 2012 16:50:10 +0000 (19:50 +0300)]
Avoid buffer text relocations in calls to STRING_CHAR_* macros.

 src/charset.c (maybe_unify_char): Inhibit relocation of buffer text
 for the duration of call to load_charset, to avoid problems with
 callers of maybe_unify_char that access buffer text through C
 pointers.
 src/ralloc.c (r_alloc_inhibit_buffer_relocation): Increment and
 decrement the inhibition flag, instead of just setting or
 resetting it.

Fixes: debbugs:11519

12 years agoFix subtle problem with redirection in nt/configure.bat.
Eli Zaretskii [Mon, 28 May 2012 16:17:35 +0000 (19:17 +0300)]
Fix subtle problem with redirection in nt/configure.bat.

 nt/configure.bat (genmakefiles): Move the redirection away from the
 end of the command, to avoid excess whitespace at the end of Make
 variables created at configure time, and also avoid things like
 "FOO1>>config.settings", where "1" gets interpreted as the file
 descriptor and eaten up.  This fixes breakage introduced by the
 last change, without reintroducing the bug fixed by that change.

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 agoUgly fix for bug#11556.
Martin Rudalics [Mon, 28 May 2012 09:48:29 +0000 (11:48 +0200)]
Ugly fix for bug#11556.

* desktop.el (desktop-read): Clear previous and next buffers for all
windows and bury *Messages* buffer (bug#11556).

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.