]> code.delx.au - gnu-emacs/log
gnu-emacs
13 years agoMerge from emacs-23; up to 2010-06-10T12:56:11Z!michael.albinus@gmx.de.
Glenn Morris [Thu, 12 May 2011 07:07:06 +0000 (00:07 -0700)]
Merge from emacs-23; up to 2010-06-10T12:56:11Z!michael.albinus@gmx.de.

13 years agobytecomp.el fix for bug#8647
Glenn Morris [Thu, 12 May 2011 02:36:05 +0000 (19:36 -0700)]
bytecomp.el fix for bug#8647

* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble):
Let byte-compile-initial-macro-environment always take precedence.

13 years ago* lisp/net/rcirc.el: Add support for SSL/TLS connections.
Stefan Monnier [Thu, 12 May 2011 02:25:58 +0000 (23:25 -0300)]
* lisp/net/rcirc.el: Add support for SSL/TLS connections.
(rcirc-server-alist): New field `encryption'.
(rcirc): Check `encryption' settings.
(rcirc-connect): New arg `encryption'.  Use open-network-stream.
Merge make-local-variable into `set'.
(rcirc--connection-open-p): New function.
(rcirc-send-string, rcirc-clean-up-buffer): Use it to handle case where
the process is not a network process (e.g. running gnutls-cli).
(set-rcirc-decode-coding-system, set-rcirc-encode-coding-system):
Make rcirc-(en|de)code-coding-system local here.
(rcirc-mode): Merge make-local-variable into `set'.
(rcirc-parent-buffer): Make permanent buffer-local.
(rcirc-multiline-minor-mode): Don't do it here.
(rcirc-switch-to-server-buffer): Don't switch to a random buffer if
there's no server buffer.

13 years agoregistry.el (registry-usage-test): Disable pruning test.
Teodor Zlatanov [Wed, 11 May 2011 22:12:27 +0000 (22:12 +0000)]
registry.el (registry-usage-test): Disable pruning test.

13 years ago* automated/gnus-tests.el: Require CL.
Ted Zlatanov [Wed, 11 May 2011 21:34:40 +0000 (16:34 -0500)]
* automated/gnus-tests.el: Require CL.

13 years ago* automated/gnus-tests.el: Add wrapper for Gnus tests.
Ted Zlatanov [Wed, 11 May 2011 21:31:33 +0000 (16:31 -0500)]
* automated/gnus-tests.el: Add wrapper for Gnus tests.

13 years agoRevert accidental portion of previous bytecomp.el commit.
Glenn Morris [Wed, 11 May 2011 17:32:38 +0000 (13:32 -0400)]
Revert accidental portion of previous bytecomp.el commit.

13 years agosrc/textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).
Drew Adams [Wed, 11 May 2011 16:38:18 +0000 (18:38 +0200)]
src/textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).

13 years ago* lisp/newcomment.el (comment-kill): Prefix "unused" local.
Glenn Morris [Wed, 11 May 2011 16:37:03 +0000 (09:37 -0700)]
* lisp/newcomment.el (comment-kill): Prefix "unused" local.

13 years agojavascript.el trivia.
Glenn Morris [Wed, 11 May 2011 16:35:54 +0000 (09:35 -0700)]
javascript.el trivia.

* lisp/semantic/wisent/javascript.el (semantic-get-local-variables):
Use define-mode-local-override rather than its obsolete alias.

13 years ago* lisp/term/w32console.el (get-screen-color): Declare.
Glenn Morris [Wed, 11 May 2011 16:34:15 +0000 (09:34 -0700)]
* lisp/term/w32console.el (get-screen-color): Declare.

13 years agobytecomp.el partial fix for bug#8646.
Glenn Morris [Wed, 11 May 2011 16:31:33 +0000 (09:31 -0700)]
bytecomp.el partial fix for bug#8646.

* lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
Handle symbol elements of byte-compile-initial-macro-environment.

13 years agoTake account of fringe background extension in scroll_run_hook.
YAMAMOTO Mitsuharu [Wed, 11 May 2011 03:13:58 +0000 (12:13 +0900)]
Take account of fringe background extension in scroll_run_hook.

* w32term.c (w32_draw_fringe_bitmap): Rename local vars `left' and
`width' to `bar_area_x' and `bar_area_width', respectively.
(x_scroll_run): Take account of fringe background extension.

* xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: Rename
local vars `left' and `width' to `bar_area_x' and
`bar_area_width', respectively.
(x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe
background extension.

13 years agoregistry.el (registry-prune-hard-candidates, registry-prune-soft-candidates): Helper...
Teodor Zlatanov [Tue, 10 May 2011 22:21:39 +0000 (22:21 +0000)]
registry.el (registry-prune-hard-candidates, registry-prune-soft-candidates): Helper methods for registry pruning.
 (registry-prune): Use them.  Make the sort function optional.

13 years agoBind bookmark-bmenu-search to `/'
Leo Liu [Tue, 10 May 2011 19:34:51 +0000 (03:34 +0800)]
Bind bookmark-bmenu-search to `/'

13 years agofix many doubled-word typos
U. Ser [Tue, 10 May 2011 13:57:12 +0000 (15:57 +0200)]
fix many doubled-word typos

13 years agoshr.el (shr-put-color-1): Do not bug out when old-props is a face symbol and not...
Julien Danjou [Tue, 10 May 2011 13:20:21 +0000 (13:20 +0000)]
shr.el (shr-put-color-1): Do not bug out when old-props is a face symbol and not a list.

13 years agosrc/image.c (Finit_image_library): Return t for built-in image types (bug#8640).
Juanma Barranquero [Tue, 10 May 2011 10:31:33 +0000 (12:31 +0200)]
src/image.c (Finit_image_library): Return t for built-in image types (bug#8640).

13 years agoAuto-commit of generated files.
Glenn Morris [Tue, 10 May 2011 10:18:34 +0000 (06:18 -0400)]
Auto-commit of generated files.

13 years agoAdd a new footnote style unicode
Leo Liu [Tue, 10 May 2011 08:20:21 +0000 (16:20 +0800)]
Add a new footnote style unicode

See also the discussion thread in:
http://thread.gmane.org/gmane.emacs.devel/139221

13 years agoConvert mail/footnote.el to utf-8 encoding
Leo Liu [Tue, 10 May 2011 08:14:42 +0000 (16:14 +0800)]
Convert mail/footnote.el to utf-8 encoding

13 years agognus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from...
Katsumi Yamaoka [Tue, 10 May 2011 07:30:49 +0000 (07:30 +0000)]
gnus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from gnus-article-prepare-display.

13 years agoshr.el (shr-put-image-function): New variable.
Katsumi Yamaoka [Tue, 10 May 2011 03:14:44 +0000 (03:14 +0000)]
shr.el (shr-put-image-function): New variable.
 (shr-image-fetched, shr-image-displayer, shr-tag-img): Funcall it.
 (shr-put-image): Return scaled image.
gnus-art.el (gnus-shr-put-image): New function.
 (gnus-article-prepare-display): Bind shr-put-image-function to it.
gnus-html.el (gnus-html-wash-images): Register scaled images, not original ones, as deletable.

13 years agoDeprecate using "mode:" to enable minor modes (bug#8613)
Glenn Morris [Tue, 10 May 2011 02:31:42 +0000 (19:31 -0700)]
Deprecate using "mode:" to enable minor modes (bug#8613)

* lisp/files.el (hack-one-local-variable-eval-safep):
Consider "eval: (foo-mode)" to be safe.

* doc/emacs/custom.texi (Specifying File Variables):
Deprecate using mode: for minor modes.

* etc/NEWS: Mention this.

* lisp/doc-view.el, lisp/net/soap-client.el:
Change "mode:" minor-mode file local variables to use "eval:".

13 years agodiary-lib.el doc fixes.
Glenn Morris [Tue, 10 May 2011 02:22:55 +0000 (19:22 -0700)]
diary-lib.el doc fixes.

* lisp/calendar/diary-lib.el (diary-list-entries-hook)
(diary-mark-entries-hook, diary-nongregorian-listing-hook)
(diary-nongregorian-marking-hook, diary-list-entries)
(diary-include-other-diary-files, diary-mark-entries)
(diary-mark-included-diary-files): Doc fixes.

13 years agolisp/misc.el: Require tabulated-list.el during compilation.
Juanma Barranquero [Mon, 9 May 2011 23:57:40 +0000 (01:57 +0200)]
lisp/misc.el: Require tabulated-list.el during compilation.

13 years ago* test/automated/occur-tests.el: Move from test/occur-testsuite.el.
Juri Linkov [Mon, 9 May 2011 23:21:32 +0000 (03:21 +0400)]
* test/automated/occur-tests.el: Move from test/occur-testsuite.el.
Convert to ERT.

13 years agoregistry.el (registry-full): Add convenience method. Fix logic.
Teodor Zlatanov [Mon, 9 May 2011 22:27:17 +0000 (22:27 +0000)]
registry.el (registry-full): Add convenience method.  Fix logic.
 (registry-insert): Use it.  Fix logic here too.
gnus-registry.el (gnus-registry-insert): Add wrapper that calls `registry-prune' if `registry-full' returns t.
 (gnus-registry-handle-action, gnus-registry-get-or-make-entry, gnus-registry-set-id-key, gnus-registry-usage-test): Use it.

13 years agoTypo fix in doc/lispref/files.texi.
Eli Zaretskii [Mon, 9 May 2011 20:38:50 +0000 (23:38 +0300)]
Typo fix in doc/lispref/files.texi.

13 years agoCall compilation-filter-hook in the no-async case too.
Chong Yidong [Mon, 9 May 2011 19:42:45 +0000 (15:42 -0400)]
Call compilation-filter-hook in the no-async case too.

* progmodes/compile.el (compilation-start): Run
compilation-filter-hook for the async case too.
(compilation-filter-hook): Doc fix.

13 years ago* lisp/gnus/nntp.el (nntp-open-connection): Set TCP keepalive option.
Stefan Monnier [Mon, 9 May 2011 19:41:14 +0000 (16:41 -0300)]
* lisp/gnus/nntp.el (nntp-open-connection): Set TCP keepalive option.

13 years agoAdd forgotten ChangeLog entry.
Deniz Dogan [Mon, 9 May 2011 17:50:47 +0000 (19:50 +0200)]
Add forgotten ChangeLog entry.

13 years ago* lisp/wdired.el: Remove outdated installation comment. Fix usage
Deniz Dogan [Mon, 9 May 2011 17:47:01 +0000 (19:47 +0200)]
* lisp/wdired.el: Remove outdated installation comment.  Fix usage
comment.

13 years agolisp/misc.el: Implement new command `list-dynamic-libraries'.
Juanma Barranquero [Mon, 9 May 2011 15:52:57 +0000 (17:52 +0200)]
lisp/misc.el: Implement new command `list-dynamic-libraries'.

* misc.el (list-dynamic-libraries--loaded-only-p): New variable.
  (list-dynamic-libraries--refresh): New function.
  (list-dynamic-libraries): New command.

13 years agoMinor portability fix in smerge-mode.el.
Eli Zaretskii [Mon, 9 May 2011 15:21:54 +0000 (18:21 +0300)]
Minor portability fix in smerge-mode.el.

 lisp/smerge-mode.el (smerge-resolve): Use null-device rather than a
 literal "/dev/null".

13 years ago* lisp/emacs-lisp/lisp.el (lisp-complete-symbol, lisp-completion-at-point):
Stefan Monnier [Mon, 9 May 2011 15:17:05 +0000 (12:17 -0300)]
* lisp/emacs-lisp/lisp.el (lisp-complete-symbol, lisp-completion-at-point):
Fix typo.

13 years agoDefine a replacement for va_copy for MSVC.
Eli Zaretskii [Mon, 9 May 2011 13:35:56 +0000 (16:35 +0300)]
Define a replacement for va_copy for MSVC.

 nt/config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler.

13 years ago* w32menu.c (set_frame_menubar): Fix submenu allocation.
Andreas Schwab [Mon, 9 May 2011 11:29:51 +0000 (13:29 +0200)]
* w32menu.c (set_frame_menubar): Fix submenu allocation.

13 years ago* xmenu.c (set_frame_menubar): Fix submenu loops.
Andreas Schwab [Mon, 9 May 2011 11:13:02 +0000 (13:13 +0200)]
* xmenu.c (set_frame_menubar): Fix submenu loops.

13 years ago* configure.in: Require GnuTLS 2.6.x or higher.
Ted Zlatanov [Mon, 9 May 2011 10:40:26 +0000 (05:40 -0500)]
* configure.in: Require GnuTLS 2.6.x or higher.

13 years agoBackport revisions 2011-04-24T05:30:24Z!eggert@cs.ucla.edu..2011-04-25T19:40:22Z...
Eli Zaretskii [Mon, 9 May 2011 09:59:23 +0000 (05:59 -0400)]
Backport revisions 2011-04-24T05:30:24Z!eggert@cs.ucla.edu..2011-04-25T19:40:22Z!eggert@cs.ucla.edu (inclusive) from trunk (bug#8623)

The next log entry shows the actual changes by Paul Eggert.

 Fix a problem with aliasing and vector headers.
 GCC 4.6.0 optimizes based on type-based alias analysis.  For
 example, if b is of type struct buffer * and v of type struct
 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size
 != &v->size, and therefore "v->size = 1; b->size = 2; return
 v->size;" must therefore return 1.  This assumption is incorrect
 for Emacs, since it type-puns struct Lisp_Vector * with many other
 types.  To fix this problem, this patch adds a new type struct
 vector_header that documents the constraints on layout of vectors
 and pseudovectors, and helps optimizing compilers not get fooled
 by Emacs's type punning.  It also adds the macros XSETTYPED_PVECTYPE
 XSETTYPED_PSEUDOVECTOR, TYPED_PSEUDOVECTORP, for similar reasons.
 src/lisp.h (XVECTOR_SIZE): New convenience macro.  All previous uses of
 XVECTOR (foo)->size replaced to use this macro, to avoid the hassle
 of writing XVECTOR (foo)->header.size.
 src/lisp.h: Say "vectorlike header" rather than "vector header.
 (struct vectorlike_header): Rename from struct vector_header.
 (XVECTORLIKE_HEADER_SIZE): Renamed from XVECTOR_HEADER_SIZE.
 All uses changed.
 (XVECTOR_HEADER_SIZE): New macro, for use in XSETPSEUDOVECTOR.
 (XSETTYPED_PVECTYPE): New macro, specifying the name of the size
 member.
 (XSETPVECTYPE): Rewrite in terms of new macro.
 (XSETPVECTYPESIZE): New macro, specifying both type and size.
 This is a bit clearer, and further avoids the possibility of
 undesirable aliasing.
 (XSETTYPED_PSEUDOVECTOR): New macro, specifying the size.
 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR
 and XVECTOR_HEADER_SIZE.
 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE,
 since Lisp_Subr is a special case (no "next" field).
 (ASIZE): Rewrite in terms of XVECTOR_SIZE.
 (struct vector_header): New type.
 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the
 object, to help avoid aliasing.
 (PSEUDOVECTORP): Rewrite in terms of TYPED_PSEUDOVECTORP.
 (SUBRP): Likewise, since Lisp_Subr is a special case.
 src/lisp.h (struct Lisp_Vector, struct Lisp_Char_Table):
 (struct Lisp_Sub_Char_Table, struct Lisp_Bool_Vector):
 (struct Lisp_Hash_Table): Combine first two members into a single
 struct vector_header member.  All uses of "size" and "next" members
 changed to be "header.size" and "header.next".
 src/buffer.h (struct buffer): Likewise.
 src/font.h (struct font_spec, struct font_entity, struct font): Likewise.
 src/frame.h (struct frame): Likewise.
 src/process.h (struct Lisp_Process): Likewise.
 src/termhooks.h (struct terminal): Likewise.
 src/window.c (struct save_window_data, struct saved_window): Likewise.
 src/window.h (struct window): Likewise.
 src/alloc.c (allocate_buffer, Fmake_bool_vector, allocate_pseudovector):
 Use XSETPVECTYPESIZE, not XSETPVECTYPE, to avoid aliasing problems.
 src/buffer.c (init_buffer_once): Likewise.
 src/lread.c (defsubr): Use XSETTYPED_PVECTYPE, since Lisp_Subr is a
 special case.
 src/process.c (Fformat_network_address): Use local var for size,
 for brevity.
 src/fns.c (vector): Remove; this old hack is no longer needed.
 src/bytecode.c (exec_byte_code): Don't use XVECTOR before CHECK_VECTOR.

13 years agoFix last change.
Chong Yidong [Mon, 9 May 2011 01:25:35 +0000 (21:25 -0400)]
Fix last change.

13 years agoDoc fix to compilation.txt.
Chong Yidong [Mon, 9 May 2011 01:24:57 +0000 (21:24 -0400)]
Doc fix to compilation.txt.

13 years agoVarious fixes to compilation-error-regexp-alist-alist.
Chong Yidong [Mon, 9 May 2011 01:24:00 +0000 (21:24 -0400)]
Various fixes to compilation-error-regexp-alist-alist.

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix
the ant regexp to handle end-line and end-column info from jikes.
Re-introduce maven regexp.  Give the ruby-Test::Unit regexp a
higher priority to avoid clobbering by gnu.

13 years agoAdd regression test for compilation-error-regexp-alist-alist.
Chong Yidong [Mon, 9 May 2011 01:22:05 +0000 (21:22 -0400)]
Add regression test for compilation-error-regexp-alist-alist.

* test/automated/compile-tests.el: New file.

13 years agoConvert test/comint-testsuite.el to ERT format.
Chong Yidong [Sun, 8 May 2011 21:43:07 +0000 (17:43 -0400)]
Convert test/comint-testsuite.el to ERT format.

13 years agoHandle calling defface on a face with existing theme settings (Bug#8454).
Chong Yidong [Sun, 8 May 2011 20:07:38 +0000 (16:07 -0400)]
Handle calling defface on a face with existing theme settings (Bug#8454).

* lisp/cus-face.el (custom-declare-face): Call custom-theme-recalc-face if
the face has existing theme settings.

13 years agoExpand file names during browse-url-of-dired-file (Bug#8259).
Ralph Schleicher [Sun, 8 May 2011 18:34:51 +0000 (14:34 -0400)]
Expand file names during browse-url-of-dired-file (Bug#8259).

* lisp/net/browse-url.el (browse-url-of-dired-file): Allow browsing of
special file names `.' and `..'.

13 years agoHandle missing add-log-current-defun-function in Which Func mode (Bug#8260)
Ralph Schleicher [Sun, 8 May 2011 18:29:35 +0000 (14:29 -0400)]
Handle missing add-log-current-defun-function in Which Func mode (Bug#8260)

* lisp/progmodes/which-func.el (which-function): Use
add-log-current-defun instead of add-log-current-defun-function,
which might not be defined.

13 years agoHandle "my" and "our" keywords in Perl imenu (Bug#8261).
Chong Yidong [Sun, 8 May 2011 18:23:11 +0000 (14:23 -0400)]
Handle "my" and "our" keywords in Perl imenu (Bug#8261).

* progmodes/perl-mode.el (perl-imenu-generic-expression): Only match
variables declared via `my' or `our'.

13 years agoPerform grep-mode's buffer modifications in a process filter (Bug#7952)
Chong Yidong [Sun, 8 May 2011 05:17:17 +0000 (01:17 -0400)]
Perform grep-mode's buffer modifications in a process filter (Bug#7952)

* progmodes/grep.el (grep-mode-font-lock-keywords): Remove
buffer-changing entries.
(grep-filter): New function.
(grep-mode): Add it to compilation-filter-hook.

* progmodes/compile.el (compilation-filter-hook)
(compilation-filter-start): New defvars.
(compilation-filter): Call compilation-filter-hook prior to
updating the process mark.

13 years ago* lisp/emacs-lisp/eieio.el (defmethod): Fix typo in last change.
Stefan Monnier [Sun, 8 May 2011 02:33:28 +0000 (23:33 -0300)]
* lisp/emacs-lisp/eieio.el (defmethod): Fix typo in last change.

13 years agoFix bug #8595 with setting mailclient-send-it on MS-Windows.
Eli Zaretskii [Sat, 7 May 2011 17:58:40 +0000 (20:58 +0300)]
Fix bug #8595 with setting mailclient-send-it on MS-Windows.

 lisp/mail/sendmail.el (send-mail-function): On MS-Windows, default to
 mailclient-send-it even if window-system is nil.

13 years agoRemove (tiny change) marker from author now with general assignment,
Glenn Morris [Sat, 7 May 2011 17:39:44 +0000 (10:39 -0700)]
Remove (tiny change) marker from author now with general assignment,

13 years agoFix bug #8597 with setting frame background mode on w32 console.
Eli Zaretskii [Sat, 7 May 2011 15:44:19 +0000 (18:44 +0300)]
Fix bug #8597 with setting frame background mode on w32 console.

 src/w32console.c (Fset_screen_color): Doc fix.
 (Fget_screen_color): New function.
 (syms_of_ntterm): Defsubr it.
 lisp/term/w32console.el (terminal-init-w32console): Call
 get-screen-color and use its output to set the frame
 background-mode.

13 years agoAdapt the MS-DOS build to latest changes.
Eli Zaretskii [Sat, 7 May 2011 11:28:55 +0000 (14:28 +0300)]
Adapt the MS-DOS build to latest changes.

 src/callproc.c (call_process_cleanup): Don't close and unlink the
 temporary file if Fcall_process didn't create it in the first
 place.
 (Fcall_process): Don't create tempfile if stdout of the child
 process will be redirected to a file specified with `:file'.
 Don't try to re-open tempfile in that case, and set fd[0] to -1 as
 cue to call_process_cleanup not to close that handle.
 msdos/inttypes.h: Include stdint.h.
 (uintmax_t): Don't define, it is defined in stdint.h.
 msdos/sedlibmk.inp (am__append_1): Edit to comment out.
 (am__append_2): Edit to expose.
 (NEXT_AS_FIRST_DIRECTIVE_STDARG_H, NEXT_STDARG_H, STDARG_H): Edit
 to empty.
 (@GL_GENERATE_STDARG_H_TRUE@, @GL_GENERATE_STDARG_H_FALSE@): Edit
 to comment out corresponding lines.

13 years agoFix changes in 2011-05-01T00:04:17Z!larsi@gnus.org for MS-DOS.
Eli Zaretskii [Sat, 7 May 2011 11:25:05 +0000 (14:25 +0300)]
Fix changes in 2011-05-01T00:04:17Z!larsi@gnus.org for MS-DOS.

 src/callproc.c (call_process_cleanup): Don't close and unlink the
 temporary file if Fcall_process didn't create it in the first
 place.
 (Fcall_process): Don't create tempfile if stdout of the child
 process will be redirected to a file specified with `:file'.
 Don't try to re-open tempfile in that case, and set fd[0] to -1 as
 cue to call_process_cleanup not to close that handle.

13 years agoshr.el (shr-link): Make shr-link inherit from link by default.
Julien Danjou [Sat, 7 May 2011 10:41:20 +0000 (10:41 +0000)]
shr.el (shr-link): Make shr-link inherit from link by default.

13 years agoAdapt MS-DOS configury to latest changes.
Eli Zaretskii [Sat, 7 May 2011 10:24:55 +0000 (13:24 +0300)]
Adapt MS-DOS configury to latest changes.

 msdos/inttypes.h: Include stdint.h.
 (uintmax_t): Don't define, it is defined in stdint.h.
 msdos/sedlibmk.inp (am__append_1): Edit to comment out.
 (am__append_2): Edit to expose.
 (NEXT_AS_FIRST_DIRECTIVE_STDARG_H, NEXT_STDARG_H, STDARG_H): Edit
 to empty.
 (@GL_GENERATE_STDARG_H_TRUE@, @GL_GENERATE_STDARG_H_FALSE@): Edit
 to comment out corresponding lines.

13 years agoNew default value of `ange-ftp-binary-file-name-regexp'.
Michael Albinus [Sat, 7 May 2011 07:45:35 +0000 (09:45 +0200)]
New default value of `ange-ftp-binary-file-name-regexp'.

13 years agoMake bytecomp.el understand that defmethod defines functions.
Stefan Monnier [Sat, 7 May 2011 04:03:49 +0000 (01:03 -0300)]
Make bytecomp.el understand that defmethod defines functions.
* lisp/emacs-lisp/eieio.el (eieio--defalias, eieio--defgeneric-init-form):
New functions.
(defgeneric, eieio--defmethod): Use them.
(eieio-defgeneric): Remove.
(defmethod): Call defgeneric in a way visible to the byte-compiler.

Fixes: debbugs:8631
13 years ago* nt/configure.bat: Renamed the fusercflags variable to escusercflags
Ben Key [Sat, 7 May 2011 04:00:12 +0000 (23:00 -0500)]
* nt/configure.bat: Renamed the fusercflags variable to escusercflags
so that the variable name better matches its purpose, to be identical
to usercflags with the exception that all quotes are escaped by the \
character.

Renamed the fuserldflags variable to escuserldflags so that the
variable name better matches its purpose, to be identical to
userldflags with the exception that all quotes are escaped by the \
character.

A new ESC_USER_CFLAGS variable is written to config.settings.  This
variable has the same value as the escusercflags variable.

* nt/gmake.defs, nt/nmake.defs: Added the variable ESC_CFLAGS.  This
variable is identical to the CFLAGS variable except that it includes
the new ESC_USER_CFLAGS variable instead of USER_CFLAGS.

* src/makefile.w32-in: The bootstrap-temacs rule now makes use of one
of two shell specific rules, either bootstrap-temacs-CMD or
bootstrap-temacs-SH.  The bootstrap-temacs-SH rule is identical to the
previous implementation of the bootstrap-temacs rule.  The
bootstrap-temacs-CMD rule is similar to the previous implementation of
the bootstrap-temacs rule except that it makes use of the ESC_CFLAGS
variable instead of the CFLAGS variable.

These changes are required to extend my earlier fix to add support for
--cflags and --ldflags options that include quotes so that it works
whether make uses cmd or sh as the shell.

13 years agotimeclock.el trivia.
Glenn Morris [Sat, 7 May 2011 01:24:04 +0000 (18:24 -0700)]
timeclock.el trivia.

* lisp/calendar/timeclock.el (timeclock-log-data): Remove unused local.
Use let rather than let*.
(timeclock-find-discrep): Remove unused local.

13 years ago* doc/emacs/cal-xtra.texi (Sexp Diary Entries): Mention diary-hebrew-birthday.
Glenn Morris [Sat, 7 May 2011 01:22:01 +0000 (18:22 -0700)]
* doc/emacs/cal-xtra.texi (Sexp Diary Entries): Mention diary-hebrew-birthday.

13 years ago* lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.
Glenn Morris [Sat, 7 May 2011 01:20:47 +0000 (18:20 -0700)]
* lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.

13 years ago* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.
Glenn Morris [Sat, 7 May 2011 01:19:27 +0000 (18:19 -0700)]
* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.

13 years agoshr.el (shr-urlify, shr-link): Fix shr-link face.
Teodor Zlatanov [Fri, 6 May 2011 23:33:12 +0000 (23:33 +0000)]
shr.el (shr-urlify, shr-link): Fix shr-link face.

13 years ago* dbusbind.c (QCdbus_type_unix_fd): Declare static.
Michael Albinus [Fri, 6 May 2011 22:12:31 +0000 (00:12 +0200)]
* dbusbind.c (QCdbus_type_unix_fd): Declare static.
(xd_remove_watch): Don't check QCdbus_type_unix_fd for SYMBOLP, it
is a constant.
(Fdbus_init_bus, xd_read_queued_messages): Bus can be a symbol or
a string.  Handle both cases.
(Fdbus_call_method_asynchronously, Fdbus_register_signal)
(Fdbus_register_method): Use Qinvalid_function.

13 years agoapropos.el (apropos-print-doc): Only use emacs-lisp-docstring-fill-column when it...
Noah Friedman [Fri, 6 May 2011 19:59:17 +0000 (12:59 -0700)]
apropos.el (apropos-print-doc): Only use emacs-lisp-docstring-fill-column when it is bound to an integer, per that variable's documentation.

13 years ago* lisp/lpr.el (print-region-1): Echo lpr-program's output, so error messages
Stefan Monnier [Fri, 6 May 2011 16:38:02 +0000 (13:38 -0300)]
* lisp/lpr.el (print-region-1): Echo lpr-program's output, so error messages
and warnings are not silently discarded (e.g. use "-d" instead of "-P").

13 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Fri, 6 May 2011 15:37:11 +0000 (17:37 +0200)]
src/makefile.w32-in: Update dependencies.

13 years ago* lispref/modes.texi (Region to Refontify): Rename from "Region to Fontify".
Stefan Monnier [Fri, 6 May 2011 14:32:26 +0000 (11:32 -0300)]
* lispref/modes.texi (Region to Refontify): Rename from "Region to Fontify".
(Multiline Font Lock):
* lispref/vol2.texi (Top):
* lispref/vol1.texi (Top):
* lispref/elisp.texi (Top): Update menu accordingly.

13 years agoAdapt Windows include files to latest changes.
Eli Zaretskii [Fri, 6 May 2011 12:09:08 +0000 (15:09 +0300)]
Adapt Windows include files to latest changes.

 nt/inc/inttypes.h [!__MINGW32__]: Include stdint.h.  Move the
 definition of uintmax_t from here...
 nt/inc/stdint.h (uintmax_t): ...to here.
 (intptr_t) [!__GNUC__]: New typedef.

13 years agoFix the MS-Windows build broken by 2011-05-06T07:13:19Z!eggert@cs.ucla.edu.
Eli Zaretskii [Fri, 6 May 2011 11:26:45 +0000 (14:26 +0300)]
Fix the MS-Windows build broken by 2011-05-06T07:13:19Z!eggert@cs.ucla.edu.

 src/lread.c: Include limits.h.

13 years agoAuto-commit of generated files.
Glenn Morris [Fri, 6 May 2011 10:19:05 +0000 (06:19 -0400)]
Auto-commit of generated files.

13 years ago* lisp/calendar/diary-lib.el (diary-add-to-list): Simplify previous change.
Glenn Morris [Fri, 6 May 2011 07:30:20 +0000 (00:30 -0700)]
* lisp/calendar/diary-lib.el (diary-add-to-list): Simplify previous change.

13 years agoChangeLog format fixes.
Glenn Morris [Fri, 6 May 2011 07:20:17 +0000 (00:20 -0700)]
ChangeLog format fixes.

13 years agoAllow per-appointment warning times.
Glenn Morris [Fri, 6 May 2011 07:14:30 +0000 (00:14 -0700)]
Allow per-appointment warning times.

* lisp/calendar/appt.el (appt-message-warning-time): Doc fix.
(appt-warning-time-regexp): New option.
(appt-make-list): Respect appt-message-warning-time.

* doc/emacs/calendar.texi (Appointments): Mention appt-warning-time-regexp.

* etc/NEWS: Mention this.

13 years agoDo not assume EMACS_INT is the same width as a pointer.
Paul Eggert [Fri, 6 May 2011 07:13:19 +0000 (00:13 -0700)]
Do not assume EMACS_INT is the same width as a pointer.

This prepares for a future patch that will prefer 64-bit EMACS_INT if
available.  That patch can be tried now, by compiling with -DWIDE_EMACS_INT,
but it is temporarily not the default so that it can be further tested.

Also, install some other fixes for problems discovered by the static
checking of GCC 4.6.0.

Fixes: debbugs:8545 debbugs:8601 debbugs:8600 debbugs:8602
13 years agoMerge from mainline.
Paul Eggert [Fri, 6 May 2011 06:30:56 +0000 (23:30 -0700)]
Merge from mainline.

13 years agoMerge from gnulib.
Paul Eggert [Fri, 6 May 2011 06:03:30 +0000 (23:03 -0700)]
Merge from gnulib.

13 years agoTemporarily disable wider-than-pointer EMACS_INT.
Paul Eggert [Fri, 6 May 2011 05:55:01 +0000 (22:55 -0700)]
Temporarily disable wider-than-pointer EMACS_INT.

13 years agoAdd diary comments feature.
Glenn Morris [Fri, 6 May 2011 04:28:53 +0000 (21:28 -0700)]
Add diary comments feature.

* lisp/calendar/diary-lib.el (diary-comment-start, diary-comment-end):
New options.
(diary-add-to-list): Strip comments from the displayed string.
(diary-mode): Set comment-start and comment-end.

* doc/emacs/cal-xtra.texi (Fancy Diary Display): Mention diary comments.

* etc/NEWS: Mention this.

13 years agoSilence diff-mode.el compilation.
Glenn Morris [Fri, 6 May 2011 04:07:47 +0000 (21:07 -0700)]
Silence diff-mode.el compilation.

* lisp/vc/diff-mode.el (smerge-refine-subst): Declare.
(diff-refine-hunk): Don't require smerge-mode when compiling.

13 years agosrc/gnutls.c, src/image.c: Make function pointers static.
Juanma Barranquero [Fri, 6 May 2011 01:05:25 +0000 (03:05 +0200)]
src/gnutls.c, src/image.c: Make function pointers static.

13 years agolisp/simple.el (list-processes): Return nil as the docstring says.
Juanma Barranquero [Fri, 6 May 2011 01:02:49 +0000 (03:02 +0200)]
lisp/simple.el (list-processes): Return nil as the docstring says.

13 years agodoc/lispref/modes.texi (Region to Fontify): Fix typo.
Drew Adams [Thu, 5 May 2011 23:04:47 +0000 (01:04 +0200)]
doc/lispref/modes.texi (Region to Fontify): Fix typo.

13 years agoshr.el (shr-urlify, shr-link): Still broken but at least doesn't error out because...
Teodor Zlatanov [Thu, 5 May 2011 22:12:41 +0000 (22:12 +0000)]
shr.el (shr-urlify, shr-link): Still broken but at least doesn't error out because the face is not a list.

13 years ago* src/lread.c (lisp_file_lexically_bound_p): Stop scanning at end
Andreas Schwab [Thu, 5 May 2011 16:56:39 +0000 (18:56 +0200)]
* src/lread.c (lisp_file_lexically_bound_p): Stop scanning at end
marker.  (Bug#8610)

13 years ago* net/ange-ftp.el (ange-ftp-binary-file-name-regexp): Set default to "".
Michael Albinus [Thu, 5 May 2011 10:22:14 +0000 (12:22 +0200)]
* net/ange-ftp.el (ange-ftp-binary-file-name-regexp): Set default to "".
(ange-ftp-write-region, ange-ftp-insert-file-contents)
(ange-ftp-copy-file-internal): Use only `ange-ftp-binary-file' for
determining of binary transfer.  (Bug#7383)

13 years ago* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Fix
Michael Albinus [Thu, 5 May 2011 09:48:43 +0000 (11:48 +0200)]
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Fix
port computation bug.  (Bug#8618)

13 years ago* image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local.
Paul Eggert [Thu, 5 May 2011 07:23:07 +0000 (00:23 -0700)]
* image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local.

13 years ago* lisp/gnus/gnus-start.el (gnus-propagate-marks): Declare.
Glenn Morris [Thu, 5 May 2011 06:56:54 +0000 (23:56 -0700)]
* lisp/gnus/gnus-start.el (gnus-propagate-marks): Declare.

13 years ago* allout-widgets.el (allout-widgets-mode-inhibit): Declare before use.
Glenn Morris [Thu, 5 May 2011 06:53:29 +0000 (23:53 -0700)]
* allout-widgets.el (allout-widgets-mode-inhibit): Declare before use.

13 years agoDeclarations in simple.el.
Glenn Morris [Thu, 5 May 2011 06:50:24 +0000 (23:50 -0700)]
Declarations in simple.el.

* lisp/simple.el (shell-dynamic-complete-functions)
(comint-dynamic-complete-functions): Declare.

13 years agoDeclaration fixes.
Glenn Morris [Thu, 5 May 2011 06:35:41 +0000 (23:35 -0700)]
Declaration fixes.

* lisp/net/network-stream.el (gnutls-negotiate): Fix declaration.

* lisp/simple.el (tabulated-list-print): Fix declaration.

* lisp/progmodes/gud.el (syntax-symbol, syntax-point):
Remove unnecessary and incorrect declarations.

13 years agoRevert to wraparound integer arithmetic, instead of going to float.
Paul Eggert [Thu, 5 May 2011 06:31:14 +0000 (23:31 -0700)]
Revert to wraparound integer arithmetic, instead of going to float.

13 years agoSmall check-declare fix.
Glenn Morris [Thu, 5 May 2011 06:27:24 +0000 (23:27 -0700)]
Small check-declare fix.

* lisp/emacs-lisp/check-declare.el (check-declare-scan):
Handle byte-compile-initial-macro-environment in bytecomp.el

13 years agoChangeLog merge fix, grumble.
Glenn Morris [Thu, 5 May 2011 06:25:24 +0000 (23:25 -0700)]
ChangeLog merge fix, grumble.

13 years agoComment typo.
Glenn Morris [Thu, 5 May 2011 06:04:38 +0000 (23:04 -0700)]
Comment typo.