bpt/emacs.git
11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 8 May 2013 10:17:38 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* lisp/cus-edit.el (custom-save-variables): Pretty-print long values.
Adam Spiers [Wed, 8 May 2013 06:59:41 +0000 (23:59 -0700)]
* lisp/cus-edit.el (custom-save-variables): Pretty-print long values.

Fixes: debbugs:14187

11 years agom4-mode misc small cleanup
Glenn Morris [Wed, 8 May 2013 06:56:37 +0000 (23:56 -0700)]
m4-mode misc small cleanup

* lisp/progmodes/m4-mode.el (m4-program): Assume it is in PATH.
(m4-mode-syntax-table): Init in the defvar.
(m4-mode-abbrev-table): Let define-derived-mode define it.

11 years ago* lisp/progmodes/m4-mode.el (m4-mode-syntax-table):
Tom Tromey [Wed, 8 May 2013 06:43:42 +0000 (23:43 -0700)]
* lisp/progmodes/m4-mode.el (m4-mode-syntax-table):
Do not treat "_" as word constituent.

Fixes: debbugs:14167

11 years agoUse Gnulib ACL implementation, for benefit of Solaris etc.
Paul Eggert [Tue, 7 May 2013 21:34:03 +0000 (14:34 -0700)]
Use Gnulib ACL implementation, for benefit of Solaris etc.

* configure.ac: Remove -with-acl option, since Gnulib does that for
us now.
(LIBACL_LIBS): Remove; no longer needed.
* lib/Makefile.am (CLEANFILES, SUFFIXES): New (empty) macros,
for the benefit of the new ACL implementation.
* lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/acl-errno-valid.$(O).
($(BLD)/acl-errno-valid.$(O)): New rule.
* lib/acl-errno-valid.c, lib/acl-internal.h, lib/acl.h:
* lib/acl_entries.c, lib/errno.in.h, lib/file-has-acl.c:
* lib/qcopy-acl.c, lib/qset-acl.c, m4/acl.m4, m4/errno_h.m4:
New files, taken from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Add qacl.
(GNULIB_TOOL_FLAGS): Do not avoid errno.
* etc/NEWS: Emacs is no longer limited to POSIX ACLs.  --disable-acl,
not --without-acl, since we're now using Gnulib's implementation.
* nt/config.nt (HAVE_ACL_SET_FILE): Rename from HAVE_POSIX_ACL.
* nt/inc/ms-w32.h (EOPNOTSUPP): New macro.
* src/Makefile.in (LIB_ACL): New macro.
(LIBACL_LIBS): Remove.
(LIBES): Use LIB_ACL, not LIBACL_LIBS.
* src/fileio.c: Include <acl.h>.
Use HAVE_ACL_SET_FILE rather than HAVE_POSIX_ACL.
(ACL_NOT_WELL_SUPPORTED): Remove.  All uses replaced by
!acl_errno_valid.
(Fcopy_file) [!WINDOWSNT]: Use qcopy_acl instead of rolling
it ourselves.

Fixes: debbugs:14295

11 years agoComment fix, to match Gnulib upstream copy.
Paul Eggert [Tue, 7 May 2013 21:04:51 +0000 (14:04 -0700)]
Comment fix, to match Gnulib upstream copy.

11 years ago* unexelf.c: Don't assume ElfW (Half) fits in int.
Paul Eggert [Tue, 7 May 2013 20:55:47 +0000 (13:55 -0700)]
* unexelf.c: Don't assume ElfW (Half) fits in int.

(entry_address, find_section, unexec): Use ptrdiff_t, not int,
when dealing with ElfW (Half) values, since they can exceed 2**31
on 64-bit OpenBSD hosts.  Problem reported privately by Han Boetes.
(entry_address): Omit unused NUM arg.  All uses changed.

11 years ago* src/callint.c (Fcall_interactively): Set `visargs[i]' for code 'n'
Juri Linkov [Tue, 7 May 2013 20:49:46 +0000 (23:49 +0300)]
* src/callint.c (Fcall_interactively): Set `visargs[i]' for code 'n'
to the string converted from number with `Fnumber_to_string'.

Fixes: debbugs:14254

11 years ago* xfns.c (x_get_net_workarea): Define only if !GTK || GTK<3.4.
Paul Eggert [Tue, 7 May 2013 19:25:42 +0000 (12:25 -0700)]
* xfns.c (x_get_net_workarea): Define only if !GTK || GTK<3.4.

This fixes a problem introduced by my previous change.

11 years ago* src/lread.c (readchar): Don't read from a dead buffer. (Bug#14280)
Glenn Morris [Tue, 7 May 2013 19:15:08 +0000 (15:15 -0400)]
* src/lread.c (readchar): Don't read from a dead buffer.  (Bug#14280)

11 years ago* lisp/progmodes/perl-mode.el (perl-prettify-symbols): Add :version.
Glenn Morris [Tue, 7 May 2013 18:06:13 +0000 (14:06 -0400)]
* lisp/progmodes/perl-mode.el (perl-prettify-symbols): Add :version.

11 years ago* xfns.c: Move misplaced ifndef USE_GTK from previous checkin.
Jan Djärv [Tue, 7 May 2013 17:47:25 +0000 (19:47 +0200)]
* xfns.c: Move misplaced ifndef USE_GTK from previous checkin.

11 years ago* buffer.c (tab-width): Mention that it doesn't control indentation.
Stefan Monnier [Tue, 7 May 2013 14:12:57 +0000 (10:12 -0400)]
* buffer.c (tab-width): Mention that it doesn't control indentation.

11 years ago* callint.c (Fcall_interactively): Explain what is `visargs'.
Stefan Monnier [Tue, 7 May 2013 13:54:31 +0000 (09:54 -0400)]
* callint.c (Fcall_interactively): Explain what is `visargs'.

11 years agognus-art.el (gnus-article-describe-bindings): Add a comment
Katsumi Yamaoka [Tue, 7 May 2013 11:43:38 +0000 (11:43 +0000)]
gnus-art.el (gnus-article-describe-bindings): Add a comment

11 years agolisp/gnus/ChangeLog: Revert last bogus change
Katsumi Yamaoka [Tue, 7 May 2013 10:24:15 +0000 (10:24 +0000)]
lisp/gnus/ChangeLog: Revert last bogus change

11 years agolisp/gnus/ChangeLog: Remove `(Bug#14356)' in the 2013-05-07 entry
Katsumi Yamaoka [Tue, 7 May 2013 10:21:50 +0000 (10:21 +0000)]
lisp/gnus/ChangeLog: Remove `(Bug#14356)' in the 2013-05-07 entry

11 years agoAuto-commit of generated files.
Glenn Morris [Tue, 7 May 2013 10:17:37 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* lisp/eshell/em-hist.el (eshell-isearch-map): Initialize in the defvar.
Glenn Morris [Tue, 7 May 2013 07:57:02 +0000 (00:57 -0700)]
* lisp/eshell/em-hist.el (eshell-isearch-map): Initialize in the defvar.
Remove explicit eshell-isearch-cancel-map.

11 years ago* lisp/progmodes/f90.el (f90-smart-end-names): New option.
Glenn Morris [Tue, 7 May 2013 07:05:21 +0000 (00:05 -0700)]
* lisp/progmodes/f90.el (f90-smart-end-names): New option.
(f90-smart-end): Doc fix.
(f90-end-block-optional-name): New constant.
(f90-block-match): Respect f90-smart-end-names.

* etc/NEWS: Mention this.

11 years agoStatic checking by GCC 4.8.0.
Paul Eggert [Tue, 7 May 2013 05:34:01 +0000 (22:34 -0700)]
Static checking by GCC 4.8.0.

* xfns.c (x_get_net_workarea, struct MonitorInfo, free_monitors)
(x_get_monitor_for_frame, x_make_monitor_attribute_list)
(x_get_monitor_attributes_fallback)
(x_get_monitor_attributes_xinerama)
(x_get_monitor_attributes_xrandr, x_get_monitor_attributes):
Define only if USE_GTK.
(free_monitors): Define only if HAVE_XINERAMA || HAVE_XRANDR.
(x_get_monitor_attributes_fallback): Omit unused locals.
(x_get_monitor_attributes_xinerama, Fx_display_monitor_attributes_list):
Use double, not float, to avoid mixed-mode floating point arithmetic.

11 years ago* progmodes/octave.el (octave-smie-forward-token): Fix typo.
Leo Liu [Tue, 7 May 2013 04:53:31 +0000 (12:53 +0800)]
* progmodes/octave.el (octave-smie-forward-token): Fix typo.

11 years ago* lisp/progmodes/octave.el (octave-smie-forward-token): Be more careful
Stefan Monnier [Tue, 7 May 2013 04:05:43 +0000 (00:05 -0400)]
* lisp/progmodes/octave.el (octave-smie-forward-token): Be more careful
about implicit semi-colons.

Fixes: debbugs:14218

11 years agoAdd multi-monitor support on X11.
YAMAMOTO Mitsuharu [Tue, 7 May 2013 01:12:22 +0000 (10:12 +0900)]
Add multi-monitor support on X11.

11 years agognus-art.el (gnus-article-describe-bindings): Require help-mode because of let-bindin...
Katsumi Yamaoka [Tue, 7 May 2013 00:28:12 +0000 (00:28 +0000)]
gnus-art.el (gnus-article-describe-bindings): Require help-mode because of let-binding help-xref-followin (Bug#14356)

11 years ago* progmodes/octave.el (octave-syntax-propertize-function): Change
Leo Liu [Mon, 6 May 2013 23:46:07 +0000 (07:46 +0800)]
* progmodes/octave.el (octave-syntax-propertize-function): Change
\'s syntax to escape when inside double-quoted strings.
(octave-font-lock-keywords): Use octave-operator-regexp.
(octave-completion-at-point): Renamed from
octave-completion-at-point-function.
(inferior-octave-directory-tracker): Robustify.
(octave-text-functions): Remove and fix its uses.  No such things
any more.

Fixes: debbugs:14332

11 years agolisp/gnus/message.el (message-bury, message-send-and-exit): Revert 2013-05-04 change
Tassilo Horn [Mon, 6 May 2013 22:39:36 +0000 (22:39 +0000)]
lisp/gnus/message.el (message-bury, message-send-and-exit): Revert 2013-05-04 change

11 years ago* lisp/emacs-lisp/trace.el (trace--display-buffer): New function.
Stefan Monnier [Mon, 6 May 2013 22:33:24 +0000 (18:33 -0400)]
* lisp/emacs-lisp/trace.el (trace--display-buffer): New function.
(trace-make-advice): Use it.

11 years ago* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Doc fix.
Juri Linkov [Mon, 6 May 2013 20:23:40 +0000 (23:23 +0300)]
* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Doc fix.
(eval-defun-2, eval-defun, eval-last-sexp, eval-last-sexp-1): Doc fix.
(emacs-lisp-mode-map): Replace "minibuffer" with "echo area"
in the help string.  (Bug#12985)

Fixes: debbugs:14344

11 years ago* lisp/simple.el (shell-command-on-region): Doc fix.
Kelly Dean [Mon, 6 May 2013 20:11:40 +0000 (23:11 +0300)]
* lisp/simple.el (shell-command-on-region): Doc fix.

Fixes: debbugs:14279

11 years ago* lisp/progmodes/perl-mode.el: Add support for here documents.
Stefan Monnier [Mon, 6 May 2013 19:33:56 +0000 (15:33 -0400)]
* lisp/progmodes/perl-mode.el: Add support for here documents.
(perl-syntax-propertize-function): Match here-doc markers.
(perl-syntax-propertize-special-constructs): Find their end.
(perl-imenu-generic-expression): Use [:alnum:].

11 years agoFix bug #14241 with posn-at-point at the beginning of an image display prop.
Eli Zaretskii [Mon, 6 May 2013 17:11:07 +0000 (20:11 +0300)]
Fix bug #14241 with posn-at-point at the beginning of an image display prop.

 src/xdisp.c (pos_visible_p): Use the special code for finding the
 beginning of a display property or overlay for any "replacing"
 display property, not just for display strings.  This solves
 incorrect reporting of position by posn-at-point.

11 years ago* lisp/find-file.el (cc-other-file-alist): Bump :version.
Glenn Morris [Mon, 6 May 2013 15:46:31 +0000 (08:46 -0700)]
* lisp/find-file.el (cc-other-file-alist): Bump :version.

11 years ago* lisp/emacs-lisp/nadvice.el (advice--member-p): Return the advice if found.
Stefan Monnier [Mon, 6 May 2013 15:27:11 +0000 (11:27 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--member-p): Return the advice if found.
(advice--add-function): Refresh the advice if already present.

Fixes: debbugs:14317

11 years agoMerge from gnulib.
Paul Eggert [Mon, 6 May 2013 13:37:42 +0000 (06:37 -0700)]
Merge from gnulib.

This incorporates:
2013-04-30 utimens, utimensat: work around Solaris UTIME_OMIT bug

11 years ago* lisp/find-file.el (cc-other-file-alist): Add ".m" for ObjC.
Ivan Andrus [Mon, 6 May 2013 07:40:58 +0000 (00:40 -0700)]
* lisp/find-file.el (cc-other-file-alist): Add ".m" for ObjC.

Fixes: debbugs:14339

11 years ago* lisp/w32-fns.el (w32-charset-info-alist): Declare.
Glenn Morris [Mon, 6 May 2013 07:29:26 +0000 (00:29 -0700)]
* lisp/w32-fns.el (w32-charset-info-alist): Declare.

11 years ago* lisp/eshell/em-cmpl.el: Simply require pcomplete;
Glenn Morris [Mon, 6 May 2013 07:20:35 +0000 (00:20 -0700)]
* lisp/eshell/em-cmpl.el: Simply require pcomplete;
eg we use a bunch of its defcustom properties.
(eshell-cmpl-initialize): No need to load pcomplete.

11 years ago* lisp/generic-x.el: No need to require comint when compiling.
Glenn Morris [Mon, 6 May 2013 07:18:36 +0000 (00:18 -0700)]
* lisp/generic-x.el: No need to require comint when compiling.

11 years ago* lisp/gnus/mml2015.el (mml2015-epg-sign): Add name="signature.asc".
Glenn Morris [Mon, 6 May 2013 07:16:34 +0000 (00:16 -0700)]
* lisp/gnus/mml2015.el (mml2015-epg-sign): Add name="signature.asc".

Fixes: debbugs:13465

11 years ago* net/eudc-export.el: Make it loadable without bbdb.
Glenn Morris [Mon, 6 May 2013 07:14:03 +0000 (00:14 -0700)]
* net/eudc-export.el: Make it loadable without bbdb.
(top-level): Use require rather than load-library.
(eudc-create-bbdb-record, eudc-bbdbify-phone)
(eudc-batch-export-records-to-bbdb)
(eudc-insert-record-at-point-into-bbdb, eudc-try-bbdb-insert):
Require bbdb.

11 years agoMore missing :version tags for defcustoms
Glenn Morris [Mon, 6 May 2013 07:10:31 +0000 (00:10 -0700)]
More missing :version tags for defcustoms

11 years ago* unexelf.c: Fix some 32-bit integer problems, notably when debugging.
Paul Eggert [Mon, 6 May 2013 04:52:00 +0000 (21:52 -0700)]
* unexelf.c: Fix some 32-bit integer problems, notably when debugging.

Include <limits.h>, <stdbool.h>, <intprops.h>, <verify.h>.
Verify that ElfW (Half) fits in int.
(fatal): Use same signature as lisp.h.
(UNEXELF_DEBUG): New macro, replacing DEBUG, so that people can
configure and build with -DUNEXELF_DEBUG without worrying about
other modules that use DEBUG.
(DEBUG_LOG) [UNEXELF_DEBUG]: New macro.  All debug code that prints
possibly-wide integers now uses it instead of plain fprintf.
(entry_address): New function, which avoids problems with 32-bit
overflow on 64-bit hosts.
(OLD_SECTION_H, NEW_SECTION_H, NEW_PROGRAM_H): Use it.
(round_up): Don't assume the remainder fits in int.
(find_section): Use bool for boolean.  Simplify debug code.
(unexec): Don't assume file sizes fit in int or size_t.
Omit unnecessary trailing newline in 'fatal' format.
Use strerror rather than outputting decimal error number.
Remove unused code when emacs is not defined;
this file relies on Emacs now.
Don't assume e_phnum and e_shnum are positive.

11 years ago* regex.c: Fix problems when DEBUG is defined.
Paul Eggert [Mon, 6 May 2013 04:31:16 +0000 (21:31 -0700)]
* regex.c: Fix problems when DEBUG is defined.

(extract_number, extract_number_and_incr): Define regardless of
whether DEBUG is defined; that's simpler and makes the code less
likely to go stale in the normal case when DEBUG is not defined.
Return int rather than taking an int * arg.  All callers changed.
(DEBUG_PRINT1, DEBUG_PRINT2, DEBUG_PRINT3, DEBUG_PRINT4):
Remove, replacing with ...
(DEBUG_PRINT): New macro.  All callers changed.
(DEBUG_COMPILES_ARGUMENTS): New macro.
(print_fastmap, print_partial_compiled_pattern) [DEBUG]:
(print_compiled_pattern, print_double_string) [DEBUG]:
Use prototype rather than old-style definition.
(print_partial_compiled_pattern, print_compiled_pattern) [DEBUG]:
(ENSURE_FAIL_STACK, PUSH_FAILURE_REG) [DEBUG]:
(POP_FAILURE_REG_OR_COUNT, PUSH_FAILURE_POINT) [DEBUG]:
(POP_FAILURE_POINT, re_match_2_internal) [DEBUG]:
Don't assume ptrdiff_t, size_t, and long are the same width as int.
(POINTER_TO_OFFSET): Return ptrdiff_t, not regoff_t.
This matters only when DEBUG is defined.

11 years ago* make-docfile.c (search_lisp_doc_at_eol) [DEBUG]: Fix typo,
Paul Eggert [Mon, 6 May 2013 03:32:19 +0000 (20:32 -0700)]
* make-docfile.c (search_lisp_doc_at_eol) [DEBUG]: Fix typo,

by removing references to no-longer-existing locals.

11 years ago* lisp/progmodes/octave.el (octave-texinfo-font-lock-keywords): Remove.
Stefan Monnier [Mon, 6 May 2013 02:29:42 +0000 (22:29 -0400)]
* lisp/progmodes/octave.el (octave-texinfo-font-lock-keywords): Remove.
(octave-font-lock-texinfo-comment): Use texinfo-font-lock-keywords with
some tweaks, instead.

11 years agoFix bug #14306 with whitespace mode together with linum-mode.
Eli Zaretskii [Sun, 5 May 2013 17:41:09 +0000 (20:41 +0300)]
Fix bug #14306 with whitespace mode together with linum-mode.

 src/xdisp.c (set_iterator_to_next): Set the
 ignore_overlay_strings_at_pos_p flag only if we are _really_
 iterating over an overlay string, as indicated by the
 current.overlay_string_index member.

11 years ago* progmodes/octave.el (octave-font-lock-keywords)
Leo Liu [Sun, 5 May 2013 15:29:51 +0000 (23:29 +0800)]
* progmodes/octave.el (octave-font-lock-keywords)
(octave-font-lock-texinfo-comment): Adjust for the byte-compiler.
(inferior-octave-send-list-and-digest): Improve error message.
(octave-mode, inferior-octave-mode): Use setq-local.
(octave-help): Set info-lookup-mode.

11 years ago* nsmenu.m (ns_update_menubar): Move initialization of submenuTitle
Jan Djärv [Sun, 5 May 2013 15:16:06 +0000 (17:16 +0200)]
* nsmenu.m (ns_update_menubar): Move initialization of submenuTitle
to where it is used, to avoid autorelease issues.

Fixes: debbugs:14050

11 years ago* vc/compare-w.el (compare-windows-whitespace):
Richard M. Stallman [Sun, 5 May 2013 14:10:51 +0000 (10:10 -0400)]
* vc/compare-w.el (compare-windows-whitespace):
Treat no-break space as whitespace.

11 years ago* mail/rmailsum.el (rmail-new-summary, rmail-new-summary-1):
Richard M. Stallman [Sun, 5 May 2013 14:08:50 +0000 (10:08 -0400)]
* mail/rmailsum.el (rmail-new-summary, rmail-new-summary-1):
Doc fixes, rename args.

11 years agoDon't let an empty summary change current message.
Richard M. Stallman [Sun, 5 May 2013 13:56:54 +0000 (09:56 -0400)]
Don't let an empty summary change current message.

* mail/rmailsum.el (rmail-summary-rmail-update):
Detect empty summary and don't change selected message.
(rmail-summary-goto-msg): Likewise.

11 years ago* progmodes/cc-defs.el (c-version): Increment to 5.32.5.
Alan Mackenzie [Sun, 5 May 2013 12:17:12 +0000 (12:17 +0000)]
* progmodes/cc-defs.el (c-version): Increment to 5.32.5.

11 years ago* lisp/info.el (Info-read-subfile): Use (point-min) instead of (point)
Juri Linkov [Sun, 5 May 2013 08:48:44 +0000 (11:48 +0300)]
* lisp/info.el (Info-read-subfile): Use (point-min) instead of (point)
to not add the length of the summary segment to the return value.

Fixes: debbugs:14125

11 years agoSpelling fixes (or remove unnecessary and unusually-spelled words).
Paul Eggert [Sun, 5 May 2013 05:03:08 +0000 (22:03 -0700)]
Spelling fixes (or remove unnecessary and unusually-spelled words).

11 years ago* progmodes/octave.el (inferior-octave-strip-ctrl-g)
Leo Liu [Sun, 5 May 2013 04:49:27 +0000 (12:49 +0800)]
* progmodes/octave.el (inferior-octave-strip-ctrl-g)
(inferior-octave-output-filter): Remove.
(octave-send-region, inferior-octave-startup): Fix callers.
(inferior-octave-mode-map): Don't use comint-dynamic-complete.
(octave-binary-file-extensions): New user variable.
(octave-find-definition): Confirm if opening binary files.
(octave-help-file): Use octave-find-definition to get the binary
confirmation.
(octave-help): Adjust for octave-help-file change.

11 years agoFix NEWS typo
Glenn Morris [Sun, 5 May 2013 02:29:28 +0000 (19:29 -0700)]
Fix NEWS typo

11 years ago* lisp/progmodes/pascal.el (pascal--syntax-propertize): New const.
Stefan Monnier [Sun, 5 May 2013 02:26:38 +0000 (22:26 -0400)]
* lisp/progmodes/pascal.el (pascal--syntax-propertize): New const.
(pascal-mode): Use it.  Use setq-local.
(pascal-font-lock-keywords): Use backquotes.
Merge the two entries that handle function definitions.
* test/indent/pascal.pas: Add test for mis-identified comments.

11 years ago`write-region-inhibit-fsync' defaults to noninteractive.
Paul Eggert [Sun, 5 May 2013 00:51:49 +0000 (17:51 -0700)]
`write-region-inhibit-fsync' defaults to noninteractive.

* cmdargs.texi (Initial Options):
* files.texi (Customize Save): Document this.
* etc/NEWS: Document this.
* src/fileio.c (syms_of_fileio): Implement this.
* src/filelock.c (create_lock_file): If symbolic links don't work, so
we use a regular file as a lock file, do not fsync the lock file;
it's not needed.

Fixes: debbugs:14273

11 years ago* lisp/calendar/diary-lib.el (diary-from-outlook-function): New variable.
Glenn Morris [Sat, 4 May 2013 23:55:57 +0000 (16:55 -0700)]
* lisp/calendar/diary-lib.el (diary-from-outlook-function): New variable.
(diary-from-outlook): Respect diary-from-outlook-function.

* doc/emacs/calendar.texi (Importing Diary):
Mention diary-from-outlook-function.

* etc/NEWS: Mention this.

11 years agognus-sum.el (gnus-read-header): Ensure groups are prefixed when entering into the...
Andrew Cohen [Sat, 4 May 2013 22:38:05 +0000 (22:38 +0000)]
gnus-sum.el (gnus-read-header): Ensure groups are prefixed when entering into the registry

11 years ago* doc/misc/cl.texi (Obsolete Macros): Describe replacements for `flet'.
Stefan Monnier [Sat, 4 May 2013 19:49:23 +0000 (15:49 -0400)]
* doc/misc/cl.texi (Obsolete Macros): Describe replacements for `flet'.

Fixes: debbugs:14293

11 years ago* lisp/gnus/message.el (message-bury): Make `buffer' optional.
Thierry Volpiatto [Sat, 4 May 2013 19:34:19 +0000 (15:34 -0400)]
* lisp/gnus/message.el (message-bury): Make `buffer' optional.
(message-send-and-exit): Don't pass `buf' so as to hide the buffer.

Fixes: debbugs:14085

11 years ago* lisp/simple.el (read-expression-map): Use completion-at-point.
Stefan Monnier [Sat, 4 May 2013 19:27:41 +0000 (15:27 -0400)]
* lisp/simple.el (read-expression-map): Use completion-at-point.
Move the declaration from C.
(read-minibuffer, eval-minibuffer): Move from C.
(completion-setup-function): Avoid minibuffer-completion-contents.
* src/minibuf.c (Fread_minibuffer, Feval_minibuffer): Move to Elisp.
(syms_of_minibuf): Adjust accodingly.
* src/lread.c (Fread):
* src/callint.c (Fcall_interactively): Adjust calls accordingly.

Fixes: debbugs:14255

11 years agoFix bug #14062 with assertion violations on MS-Windows.
Eli Zaretskii [Sat, 4 May 2013 10:19:13 +0000 (13:19 +0300)]
Fix bug #14062 with assertion violations on MS-Windows.

 src/dispextern.h (WINDOW_WANTS_HEADER_LINE_P): Verify that
 w->contents is a buffer before computing everything else.  Use
 parentheses to disambiguate last part of the condition.
 src/w32fns.c (w32_wnd_proc): Remove temporary code used to trap
 assertion violations.

11 years ago* progmodes/octave.el (user-error): Alias to error if not defined.
Leo Liu [Fri, 3 May 2013 07:52:17 +0000 (15:52 +0800)]
* progmodes/octave.el (user-error): Alias to error if not defined.

11 years ago* progmodes/octave.el (octave-completing-read)
Leo Liu [Fri, 3 May 2013 07:22:26 +0000 (15:22 +0800)]
* progmodes/octave.el (octave-completing-read)
(octave-goto-function-definition): New helpers.
(octave-help-buffer): New user variable.
(octave-help-file, octave-help-function): New button types.
(octave-help): New command and bind it to C-h ;.
(octave-find-definition): New command and bind it to M-.

11 years ago* progmodes/octave.el (octave-font-lock-keywords): Do not
Leo Liu [Fri, 3 May 2013 04:47:08 +0000 (12:47 +0800)]
* progmodes/octave.el (octave-font-lock-keywords): Do not
dehighlight 'end' in comments or strings.

11 years ago* progmodes/octave.el (octave-mode-syntax-table): Correct syntax
Leo Liu [Thu, 2 May 2013 23:03:00 +0000 (07:03 +0800)]
* progmodes/octave.el (octave-mode-syntax-table): Correct syntax
for \.
(octave-font-lock-keywords): Include [ and {.

Fixes: debbugs:14332

11 years ago* progmodes/octave.el (inferior-octave-startup-file): Change default.
Leo Liu [Thu, 2 May 2013 21:34:53 +0000 (05:34 +0800)]
* progmodes/octave.el (inferior-octave-startup-file): Change default.
(inferior-octave): Remove calling comint-mode and return the buffer.
(inferior-octave-startup): Cosmetic changes.

11 years ago* progmodes/octave.el (octave-syntax-propertize-function): Include
Leo Liu [Thu, 2 May 2013 21:27:16 +0000 (05:27 +0800)]
* progmodes/octave.el (octave-syntax-propertize-function): Include
the case when ' is at line beginning.

Fixes: debbugs:14336

11 years ago* lisp/vc/vc-dir.el (vc-dir-mode): Don't autoload it for everyone.
Glenn Morris [Thu, 2 May 2013 17:47:39 +0000 (13:47 -0400)]
* lisp/vc/vc-dir.el (vc-dir-mode): Don't autoload it for everyone.
* lisp/desktop.el (vc-dir-mode): Just autoload it here.

11 years agoEliminate variable c-standard-font-lock-fontify-region-function.
Alan Mackenzie [Thu, 2 May 2013 11:18:18 +0000 (11:18 +0000)]
Eliminate variable c-standard-font-lock-fontify-region-function.
        * progmodes/cc-mode.el
        (c-standard-font-lock-fontify-region-function): Remove.
        (c-font-lock-fontify-region, c-after-font-lock-init): Adapt.

11 years ago* make-dist: Keep necessary restrictions on file access.
Paul Eggert [Wed, 1 May 2013 19:28:41 +0000 (12:28 -0700)]
* make-dist: Keep necessary restrictions on file access.

11 years ago* progmodes/octave.el: Compatible with older emacs-24 releases.
Leo Liu [Wed, 1 May 2013 17:25:03 +0000 (01:25 +0800)]
* progmodes/octave.el: Compatible with older emacs-24 releases.

11 years ago* progmodes/octave.el (inferior-octave-has-built-in-variables):
Leo Liu [Wed, 1 May 2013 16:42:18 +0000 (00:42 +0800)]
* progmodes/octave.el (inferior-octave-has-built-in-variables):
Remove.  Buil-in variables were removed from Octave in 2007.
(inferior-octave-startup): Fix uses.
(comint-line-beginning-position): Remove compatibility code for
emacs 21.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 1 May 2013 10:17:34 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

11 years ago* lisp/isearch.el (isearch-forward, isearch-mode): Doc fix.
Juri Linkov [Wed, 1 May 2013 08:10:12 +0000 (11:10 +0300)]
* lisp/isearch.el (isearch-forward, isearch-mode): Doc fix.

Fixes: debbugs:13923

11 years ago* lisp/comint.el (comint-previous-matching-input): Don't print message
Juri Linkov [Wed, 1 May 2013 08:05:05 +0000 (11:05 +0300)]
* lisp/comint.el (comint-previous-matching-input): Don't print message
"History item: %d" when `isearch-mode' is active.
(comint-history-isearch-message): Print message "History item: %d"
when `comint-input-ring-index' is not empty and this function is
called from `isearch-update' with a nil `ellipsis'.

Fixes: debbugs:13223

11 years ago* src/nsfns.m (ns_tooltip): Initialize.
David Reitter [Wed, 1 May 2013 07:02:19 +0000 (00:02 -0700)]
* src/nsfns.m (ns_tooltip): Initialize.

11 years ago* progmodes/octave.el (octave-abbrev-table): Remove abbrev
Leo Liu [Wed, 1 May 2013 06:13:20 +0000 (14:13 +0800)]
* progmodes/octave.el (octave-abbrev-table): Remove abbrev
definitions.  Use completion-at-point to insert keywords.
(octave-abbrev-start): Remove.
(inferior-octave-mode, octave-mode): Use :abbrev-table instead.

11 years agolisp/gnus/ChangeLog: Add Bug#
Katsumi Yamaoka [Wed, 1 May 2013 00:37:07 +0000 (00:37 +0000)]
lisp/gnus/ChangeLog: Add Bug#

11 years agognus-util.el (gnus-emacs-completing-read): Fix a filter for XEmacs
Katsumi Yamaoka [Wed, 1 May 2013 00:29:13 +0000 (00:29 +0000)]
gnus-util.el (gnus-emacs-completing-read): Fix a filter for XEmacs

11 years ago* progmodes/octave.el (inferior-octave-prompt-read-only): Fix last
Leo Liu [Tue, 30 Apr 2013 16:27:36 +0000 (00:27 +0800)]
* progmodes/octave.el (inferior-octave-prompt-read-only): Fix last
change.

11 years agoHandle arbitrarily long C++ member initialisation lists.
Alan Mackenzie [Tue, 30 Apr 2013 16:19:14 +0000 (16:19 +0000)]
Handle arbitrarily long C++ member initialisation lists.
        * progmodes/cc-engine.el (c-back-over-member-initializers): new
        function.
        (c-guess-basic-syntax): New CASE 5R (extracted from 5B) to handle
        (most) member init lists.

11 years ago* progmodes/octave.el (inferior-octave-prompt-read-only): New user
Rüdiger Sonderfeld [Tue, 30 Apr 2013 15:20:46 +0000 (23:20 +0800)]
* progmodes/octave.el (inferior-octave-prompt-read-only): New user
variable.

11 years ago* progmodes/octave.el (octave-variables): Remove. No builtin
Leo Liu [Tue, 30 Apr 2013 14:23:03 +0000 (22:23 +0800)]
* progmodes/octave.el (octave-variables): Remove.  No builtin
variables any more.  All converted to functions.
(octave-font-lock-keywords, octave-completion-at-point-function):
Fix uses.
(octave-font-lock-texinfo-comment): New user variable.
(octave-texinfo-font-lock-keywords): New variable for texinfo
comment block.
(octave-function-comment-block): New face.
(octave-font-lock-texinfo-comment): New function.
(octave-mode): Font lock texinfo comment block.

11 years agoAuto-commit of generated files.
Glenn Morris [Tue, 30 Apr 2013 10:17:35 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* progmodes/octave.el (octave-font-lock-keywords): Handle 'end' in
Leo Liu [Mon, 29 Apr 2013 20:09:18 +0000 (04:09 +0800)]
* progmodes/octave.el (octave-font-lock-keywords): Handle 'end' in
indexing expression.
(octave-continuation-string): Do not use \.
(inferior-octave-complete-impossible): Remove.
(inferior-octave-completion-table)
(inferior-octave-completion-at-point): Remove its uses.
(inferior-octave-startup): completion_matches was introduced to
Octave in 1996 so safe to assume it.
(octave-function-file-comment): Improve to follow how Octave does it.
(octave-update-function-file-comment): Tweak.

11 years agoMerge from gnulib.
Paul Eggert [Mon, 29 Apr 2013 04:48:30 +0000 (21:48 -0700)]
Merge from gnulib.

This incorporates:
2013-04-28 extern-inline: work around bug in Sun c99

11 years ago* progmodes/octave.el (inferior-octave-startup-hook): Obsolete.
Leo Liu [Mon, 29 Apr 2013 04:37:36 +0000 (12:37 +0800)]
* progmodes/octave.el (inferior-octave-startup-hook): Obsolete.
(inferior-octave-startup): Remove inferior-octave-startup-hook.
(octave-function-file-comment): Fix typo.
(octave-sync-function-file-names): Use read-char-choice.

11 years agoFix bug #14287 with decoding EOL by *-dos coding systems.
Eli Zaretskii [Sun, 28 Apr 2013 18:21:01 +0000 (21:21 +0300)]
Fix bug #14287 with decoding EOL by *-dos coding systems.

 src/coding.c (decode_coding_gap): Don't remove the character before
 a newline unless it's a CR character.

11 years ago* calc/calc.el (math-normalize): Don't set `math-normalize-error' to t
Jay Belanger [Sun, 28 Apr 2013 16:39:10 +0000 (11:39 -0500)]
* calc/calc.el (math-normalize): Don't set `math-normalize-error' to t
for the less important warnings.

11 years ago* dispextern.h (struct face): Move enum face_underline_type
Dan Nicolaescu [Sun, 28 Apr 2013 13:11:16 +0000 (09:11 -0400)]
* dispextern.h (struct face): Move enum face_underline_type
earlier so that bitfields can be in the same word.

11 years ago* nsfns.m (handlePanelKeys): New function.
Jan Djärv [Sun, 28 Apr 2013 09:55:20 +0000 (11:55 +0200)]
* nsfns.m (handlePanelKeys): New function.
(EmacsOpenPanel:performKeyEquivalent:)
(EmacsSavePanel:performKeyEquivalent:): Call handlePanelKeys to handle
arrows/function/control and copy/paste keys.

Fixes: debbugs:14296

11 years agolisp/gnus/sieve-manage.el (sieve-manage-authenticator-alist): Update the sieve port...
Julien Danjou [Sat, 27 Apr 2013 23:57:29 +0000 (23:57 +0000)]
lisp/gnus/sieve-manage.el (sieve-manage-authenticator-alist): Update the sieve port to "sieve" now that it has an official IANA port assigned

11 years ago* lisp/isearch.el (isearch-fail-pos): Check for empty `cmds'.
Darren Hoo [Sat, 27 Apr 2013 22:03:42 +0000 (01:03 +0300)]
* lisp/isearch.el (isearch-fail-pos): Check for empty `cmds'.

Fixes: debbugs:14268

11 years ago* lisp/cedet/semantic/complete.el
David Engster [Sat, 27 Apr 2013 21:45:37 +0000 (23:45 +0200)]
* lisp/cedet/semantic/complete.el
  (semantic-collector-calculate-completions-raw): If `completionslist'
  is not set, refresh the cache if necessary and use it for
  completions.  This fixes the `semantic-collector-buffer-deep'
  collector (bug#14265).

11 years ago* gnus/gnus.el (gnus-list-debbugs): Use require rather than autoload.
Glenn Morris [Sat, 27 Apr 2013 21:32:17 +0000 (14:32 -0700)]
* gnus/gnus.el (gnus-list-debbugs): Use require rather than autoload.

Fixes: debbugs:14262

11 years ago* vc/log-view.el (log-view-current-entry):
Glenn Morris [Sat, 27 Apr 2013 21:29:00 +0000 (14:29 -0700)]
* vc/log-view.el (log-view-current-entry):
Treat "---" separator lines as part of the following rev.

Fixes: debbugs:14169