bpt/emacs.git
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

11 years ago* src/callint.c (Fcall_interactively): Call `Qread_number' for
Juri Linkov [Sat, 27 Apr 2013 21:12:17 +0000 (00:12 +0300)]
* src/callint.c (Fcall_interactively): Call `Qread_number' for
interactive code letter `n' instead of using duplicate code.

* lisp/subr.el (read-number): Doc fix about using it by interactive
code letter `n'.

Fixes: debbugs:14254

11 years ago* lisp/desktop.el (desktop-auto-save-timeout): New option.
Juri Linkov [Sat, 27 Apr 2013 20:55:00 +0000 (23:55 +0300)]
* lisp/desktop.el (desktop-auto-save-timeout): New option.
(desktop-file-checksum): New variable.
(desktop-save): Add optional arg `auto-save' and don't auto-save
if nothing changed.
(desktop-auto-save-timer): New variable.
(desktop-auto-save, desktop-auto-save-set-timer): New functions.
(after-init-hook): Call `desktop-auto-save-set-timer'.
Suggested by Reuben Thomas <rrt@sc3d.org> in
<http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00327.html>.

11 years agoMerge from gnulib.
Paul Eggert [Sat, 27 Apr 2013 19:30:33 +0000 (12:30 -0700)]
Merge from gnulib.

11 years ago* files.el (basic-save-buffer): Don't let errors in
Leo Liu [Sat, 27 Apr 2013 17:07:01 +0000 (01:07 +0800)]
* files.el (basic-save-buffer): Don't let errors in
before-save-hook prevent saving buffer.

* progmodes/octave.el (octave-function-file-p)
(octave-skip-comment-forward, octave-function-file-comment)
(octave-update-function-file-comment): New functions.
(octave-mode-map): Bind C-c ; to
octave-update-function-file-comment.
(octave-mode-menu): Add octave-update-function-file-comment.
(octave-mode, inferior-octave-mode): Fix doc-string.
(octave-insert-defun): Conform to Octave's coding convention.

Fixes: debbugs:14285

11 years agoread-face-name: Use completing-read if arg multiple is nil
Roland Winkler [Sat, 27 Apr 2013 17:01:17 +0000 (12:01 -0500)]
read-face-name: Use completing-read if arg multiple is nil

11 years agoFix Dired when ls-lisp is used and the -a switch is not used.
Ingo Lohmar [Sat, 27 Apr 2013 16:55:29 +0000 (19:55 +0300)]
Fix Dired when ls-lisp is used and the -a switch is not used.

 lisp/ls-lisp.el (ls-lisp-insert-directory): If no files are
 displayed, move point to after the totals line.  See
 http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00677.html
 for the details.

11 years ago* systime.h (make_timeval): Declare as 'const'.
Paul Eggert [Sat, 27 Apr 2013 15:34:28 +0000 (08:34 -0700)]
* systime.h (make_timeval): Declare as 'const'.

11 years agomerge trunk
Kenichi Handa [Sat, 27 Apr 2013 13:35:45 +0000 (22:35 +0900)]
merge trunk

11 years agomerge trunk
Kenichi Handa [Sat, 27 Apr 2013 13:34:02 +0000 (22:34 +0900)]
merge trunk

11 years ago* lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
Stefan Monnier [Sat, 27 Apr 2013 13:32:53 +0000 (09:32 -0400)]
* lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
Add current dir to the load-path.
(package-generate-autoloads): Don't rely on autoload-ensure-default-file.

11 years agofont.c (font_open_entity): Always open a font of manageable size.
Kenichi Handa [Sat, 27 Apr 2013 13:32:24 +0000 (22:32 +0900)]
font.c (font_open_entity): Always open a font of manageable size.

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

11 years agolisp/ChangeLog: Tiny ChangeLog formatting fix.
Bastien Guerry [Sat, 27 Apr 2013 06:38:41 +0000 (08:38 +0200)]
lisp/ChangeLog: Tiny ChangeLog formatting fix.

11 years agoFix docstring buglet in remember.el
Reuben Thomas [Fri, 26 Apr 2013 23:55:06 +0000 (00:55 +0100)]
Fix docstring buglet in remember.el

11 years agoPort better to AIX.
Paul Eggert [Fri, 26 Apr 2013 19:31:09 +0000 (12:31 -0700)]
Port better to AIX.

* configure.ac (CFLAGS): Append -O if the user did not specify CFLAGS,
we did not already infer an optimization option, and -O works.
AIX xlc needs -O, otherwise garbage collection doesn't work.
* src/lisp.h (ENUM_BF) [__IBMC__]: Make it 'unsigned int' here, too,
to pacify AIX xlc.

Fixes: debbugs:14258

11 years ago* progmodes/octave.el (octave-sync-function-file-names): Fix last
Leo Liu [Fri, 26 Apr 2013 17:11:04 +0000 (01:11 +0800)]
* progmodes/octave.el (octave-sync-function-file-names): Fix last
  change.

11 years ago* progmodes/octave.el (octave-sync-function-file-names): New function.
Leo Liu [Fri, 26 Apr 2013 16:44:38 +0000 (00:44 +0800)]
* progmodes/octave.el (octave-sync-function-file-names): New function.
(octave-mode): Use it in before-save-hook.

11 years ago* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Disable undo.
Stefan Monnier [Fri, 26 Apr 2013 14:47:07 +0000 (10:47 -0400)]
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Disable undo.

Fixes: debbugs:14274

11 years ago* lisp/progmodes/octave.el (octave-smie-forward-token): Properly skip
Stefan Monnier [Fri, 26 Apr 2013 14:34:26 +0000 (10:34 -0400)]
* lisp/progmodes/octave.el (octave-smie-forward-token): Properly skip
\n and comment, even if it's not an implicit ;.

Fixes: debbugs:14218

11 years agolisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Fix again
Katsumi Yamaoka [Fri, 26 Apr 2013 13:56:37 +0000 (13:56 +0000)]
lisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Fix again

11 years agolisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Fix last...
Katsumi Yamaoka [Fri, 26 Apr 2013 10:36:36 +0000 (10:36 +0000)]
lisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Fix last change

11 years agolisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Don't set...
Katsumi Yamaoka [Fri, 26 Apr 2013 10:22:07 +0000 (10:22 +0000)]
lisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Don't set the MAILHOST environment variable permanently (Bug#14271)

11 years ago* lisp/gnus/message.el (message-bury): Revert 2013-03-18 change.
Glenn Morris [Fri, 26 Apr 2013 07:59:32 +0000 (00:59 -0700)]
* lisp/gnus/message.el (message-bury): Revert 2013-03-18 change.

Fixes: debbugs:14117

11 years agoMerge from emacs-24; up to 2012-12-27T08:21:08Z!rgm@gnu.org
Glenn Morris [Fri, 26 Apr 2013 07:34:54 +0000 (00:34 -0700)]
Merge from emacs-24; up to 2012-12-27T08:21:08Z!rgm@gnu.org

11 years agoAdd missing reftex-label-ignored-macros-and-environments :version tag
Glenn Morris [Fri, 26 Apr 2013 07:31:27 +0000 (00:31 -0700)]
Add missing reftex-label-ignored-macros-and-environments :version tag

11 years agolist-load-path-shadows simplification
Glenn Morris [Fri, 26 Apr 2013 07:25:45 +0000 (00:25 -0700)]
list-load-path-shadows simplification

* lisp/emacs-lisp/shadow.el (list-load-path-shadows):
No longer necessary to check for duplicate simple.el, since
2012-07-07 change to init_lread to not include installation lisp
directories in load-path when running uninstalled.

Fixes: debbugs:14270

11 years ago* progmodes/octave.el (octave-submit-bug-report): Obsolete.
Leo Liu [Fri, 26 Apr 2013 04:16:37 +0000 (12:16 +0800)]
* progmodes/octave.el (octave-submit-bug-report): Obsolete.
(octave-mode, inferior-octave-mode): Use setq-local.
(octave-not-in-string-or-comment-p): Renamed to
octave-in-string-or-comment-p.
(octave-in-comment-p, octave-in-string-p)
(octave-in-string-or-comment-p): Replace defsubst with defun.

11 years agolisp/gnus/gnus-msg.el (gnus-inews-insert-gcc): Re-order conditional to work for strin...
Andrew Cohen [Fri, 26 Apr 2013 02:08:43 +0000 (02:08 +0000)]
lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc): Re-order conditional to work for string values of 'gcc-self

11 years ago* Makefile.in (distclean): Remove $(lisp)/loaddefs.el~.
Paul Eggert [Thu, 25 Apr 2013 21:20:17 +0000 (14:20 -0700)]
* Makefile.in (distclean): Remove $(lisp)/loaddefs.el~.

11 years ago* textmodes/remember.el (remember-data-directory)
Bastien Guerry [Thu, 25 Apr 2013 17:39:44 +0000 (19:39 +0200)]
* textmodes/remember.el (remember-data-directory)
(remember-directory-file-name-format): Fix custom types.

Thanks to Glenn Morris for reporting these problems and for the fixes.

11 years ago* progmodes/octave.el (octave-completion-at-point-function): Make
Leo Liu [Thu, 25 Apr 2013 16:23:56 +0000 (00:23 +0800)]
* progmodes/octave.el (octave-completion-at-point-function): Make
use of inferior octave process.
(octave-initialize-completions): Remove.
(inferior-octave-completion-table): New function.
(inferior-octave-completion-at-point): Use it.
(octave-completion-alist): Remove.

11 years ago* lisp/progmodes/opascal.el: Use font-lock and syntax-propertize.
Stefan Monnier [Thu, 25 Apr 2013 16:07:33 +0000 (12:07 -0400)]
* lisp/progmodes/opascal.el: Use font-lock and syntax-propertize.
(opascal-mode-syntax-table): New var.
(opascal-literal-kind, opascal-is-literal-end)
(opascal-literal-token-at): Rewrite.
(opascal--literal-start-re, opascal-font-lock-keywords)
(opascal--syntax-propertize): New constants.
(opascal-font-lock-defaults): Adjust.
(opascal-mode): Use them.  Set comment-<foo> variables as well.
(delphi-comment-face, opascal-comment-face, delphi-string-face)
(opascal-string-face, delphi-keyword-face, opascal-keyword-face)
(delphi-other-face, opascal-other-face): Remove face variables.
(opascal-save-state): Remove macro.
(opascal-fontifying-progress-step): Remove constant.
(opascal--ignore-changes): Remove var.
(opascal-set-token-property, opascal-parse-next-literal)
(opascal-is-stable-literal, opascal-complete-literal)
(opascal-is-literal-start, opascal-face-of)
(opascal-parse-region, opascal-parse-region-until-stable)
(opascal-fontify-region, opascal-after-change)
(opascal-debug-show-is-stable, opascal-debug-unparse-buffer)
(opascal-debug-parse-region, opascal-debug-parse-window)
(opascal-debug-parse-buffer, opascal-debug-fontify-window)
(opascal-debug-fontify-buffer): Remove.
(opascal-debug-mode-map): Adjust accordingly.