bpt/emacs.git
10 years agoMerge from mainline.
Xue Fuqiao [Mon, 3 Jun 2013 23:34:27 +0000 (07:34 +0800)]
Merge from mainline.

10 years ago* configure.ac (HAVE_GFILENOTIFY): Check for gio >= 2.24.
Michael Albinus [Mon, 3 Jun 2013 19:38:06 +0000 (21:38 +0200)]
* configure.ac (HAVE_GFILENOTIFY): Check for gio >= 2.24.

10 years agoFix crashes in a text-mode session on Windows.
Eli Zaretskii [Mon, 3 Jun 2013 19:28:13 +0000 (22:28 +0300)]
Fix crashes in a text-mode session on Windows.

 src/w32console.c (initialize_w32_display): Return the dimensions of
 the console window via 2 additional arguments, not via the current
 frame.  This avoids crashes due to overrunning the bounds of
 frame's decode_mode_spec_buffer, which is not resized following
 the change of the frame dimensions from the initial 10x10.
 src/w32term.h (w32_initialize_display_info): Adjust prototype.
 src/term.c (init_tty): Take dimensions of the frame from the values
 returned by initialize_w32_display.

10 years ago* configure.ac (HAVE_GFILENOTIFY): Do not change $LIBS.
Eli Zaretskii [Mon, 3 Jun 2013 19:06:09 +0000 (21:06 +0200)]
* configure.ac (HAVE_GFILENOTIFY): Do not change $LIBS.
(GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): Substitute.

* nt/config.nt: Add HAVE_GFILENOTIFY, HAVE_W32NOTIFY and USE_FILE_NOTIFY.

* src/Makefile.in (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): New variables.
(ALL_CFLAGS): Add $(GFILENOTIFY_CFLAGS).
(LIBES): Add $(GFILENOTIFY_LIBS).

* src/w32inevt.c (handle_file_notifications): Add dummy implementation
for !HAVE_W32NOTIFY.

* src/w32term.c: Wrap code with HAVE_W32NOTIFY.

10 years agoAdd HAVE_GLIB check instead of checking individual libraries that use GLib.
Jan Djärv [Mon, 3 Jun 2013 18:47:35 +0000 (20:47 +0200)]
Add HAVE_GLIB check instead of checking individual libraries that use GLib.

* configure.ac (HAVE_GLIB): Add GLib check.  Set XGSELOBJ if GLib is
used.  Remove xgselect.o from XOBJ.

* src/Makefile.in (XGSELOBJ): New, xgselect.o if GLib is used, or empty.

* src/process.c (wait_reading_process_output): Call xg_select if HAVE_GLIB.

* src/xgselect.c: Replace #if defined ... with #ifdef HAVE_GLIB.

10 years agoFix minor problems found by static checking.
Paul Eggert [Mon, 3 Jun 2013 18:29:30 +0000 (11:29 -0700)]
Fix minor problems found by static checking.

* data.c (pure_write_error):
Use xsignal2, not Fsignal, as Fsignal might return.
* eval.c (set_backtrace_debug_on_exit): Now static.
(backtrace_p, backtrace_top, backtrace_next, record_in_backtrace):
No longer inline.  EXTERN_INLINE is needed only for functions
defined in .h files.  Reindent function header as per GNU style.
(backtrace_p, backtrace_top, backtrace_next):
Mark EXTERNALLY_VISIBLE so they don't get optimized away by the
compiler or linker.  Add extern decls to pacify gcc -Wall.
* frame.c, frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource):
Now static.
* frame.c (free_monitors): Define only on platforms that need it.
* nsterm.m (ns_term_init):
* process.c (catch_child_signal):
Don't worry about whether SIGCHLD is defined, as SIGCHLD is
defined on all porting targets these days.
* process.c, process.h (catch_child_signal):
Make it extern only if NS_IMPL_GNUSTEP is defined.

10 years ago* eshell/em-term.el (cl-lib): Require `cl-lib'.
Tassilo Horn [Mon, 3 Jun 2013 18:12:51 +0000 (20:12 +0200)]
* eshell/em-term.el (cl-lib): Require `cl-lib'.

10 years agoAttempt to resolve gettimeofday compilation errors with MinGW64.
Eli Zaretskii [Mon, 3 Jun 2013 17:15:44 +0000 (20:15 +0300)]
Attempt to resolve gettimeofday compilation errors with MinGW64.

 src/w32.c (gettimeofday): Make the signature identical to prototype
 in nt/inc/sys/time.h.

 nt/inc/sys/time.h (struct timeval): Remove the _W64 guards.

10 years agoUpdate instructions in nt/INSTALL.MSYS.
Eli Zaretskii [Mon, 3 Jun 2013 16:55:37 +0000 (19:55 +0300)]
Update instructions in nt/INSTALL.MSYS.

10 years ago* lisp.el: Provide completion of locally bound variables in Elisp.
Stefan Monnier [Mon, 3 Jun 2013 15:40:35 +0000 (11:40 -0400)]
* lisp.el: Provide completion of locally bound variables in Elisp.
* lisp/emacs-lisp/lisp.el: Use lexical-binding.
(lisp--local-variables-1, lisp--local-variables): New functions.
(lisp--local-variables-completion-table): New var.
(lisp-completion-at-point): Use it to provide completion of let-bound vars.

10 years ago* lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros
Stefan Monnier [Mon, 3 Jun 2013 15:28:10 +0000 (11:28 -0400)]
* lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros
eagerly.

Fixes: debbugs:14422

10 years ago* src/eval.c (backtrace_p, backtrace_top, backtrace_next): Export them to
Stefan Monnier [Mon, 3 Jun 2013 15:18:18 +0000 (11:18 -0400)]
* src/eval.c (backtrace_p, backtrace_top, backtrace_next): Export them to
.gdbinit.
* src/data.c (pure_write_error): Add `object' argument.
* src/puresize.h (CHECK_IMPURE): Use it.
* src/keyboard.c (safe_run_hooks_error): Improve error message.

10 years ago* NEWS: Emacs can be compiled with file notification support via the
Michael Albinus [Mon, 3 Jun 2013 13:35:21 +0000 (15:35 +0200)]
* NEWS: Emacs can be compiled with file notification support via the
  configure option `--with-file-notification=LIB'.  `glib', `inotify'
  and `w32' are supported.

10 years ago* configure.ac (file-notification): New option, replaces inotify option.
Michael Albinus [Mon, 3 Jun 2013 13:03:05 +0000 (15:03 +0200)]
* configure.ac (file-notification): New option, replaces inotify option.
(HAVE_W32): Remove w32notify.o.
(with_file_notification): Add checks for glib and w32. Adapt check
for inotify.
(Summary): Add entry for file notification.

* autogen/config.in: Add entries for HAVE_GFILENOTIFY,
HAVE_W32NOTIFY and USE_FILE_NOTIFY.

* lisp/autorevert.el (auto-revert-notify-enabled)
(auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
(auto-revert-notify-event-p, auto-revert-notify-event-file-name)
(auto-revert-notify-handler): Handle also gfilenotify.

* lisp/subr.el: (file-notify-handle-event): New defun. Replacing ...
(inotify-event-p, inotify-handle-event, w32notify-handle-event):
Removed.

* src/Makefile.in (NOTIFY_OBJ): New variable.
(base_obj): Replace inotify.o by $(NOTIFY_OBJ).

* src/emacs.c (main): Use HAVE_W32NOTIFY to wrap respective code.
Call syms_of_gfilenotify.

* src/gfilenotify.c: New file.

* src/keyboard.c (Qfile_notify): New variable.  Replaces Qfile_inotify
and Qfile_w32notify.
(top): Wrap respective code by HAVE_GFILENOTIFY, HAVE_INOTIFY,
HAVE_W32NOTIFY and USE_FILE_NOTIFY.

* src/lisp.h: Declare syms_of_gfilenotify.

* src/termhooks.h (e): Wrap enum by USE_FILE_NOTIFY.

10 years ago* cmdargs.texi (General Variables): Use "unix:path=/dev/null" as
Michael Albinus [Mon, 3 Jun 2013 12:25:39 +0000 (14:25 +0200)]
* cmdargs.texi (General Variables): Use "unix:path=/dev/null" as
dummy value for $DBUS_SESSION_BUS_ADDRESS.  It also suppresses
autolaunching of the D-Bus session bus.

10 years agoMerge the specpdl and backtrace stacks. Make the structure of the
Stefan Monnier [Mon, 3 Jun 2013 09:01:53 +0000 (05:01 -0400)]
Merge the specpdl and backtrace stacks.  Make the structure of the
specpdl entries more obvious via a tagged union of structs.
* src/lisp.h (BITS_PER_PTRDIFF_T): New constant.
(enum specbind_tag): New enum.
(struct specbinding): Make it a tagged union of structs.
Add a case for backtrace records.
(specpdl_symbol, specpdl_old_value, specpdl_where, specpdl_arg)
(specpdl_func, backtrace_function, backtrace_nargs, backtrace_args)
(backtrace_debug_on_exit): New accessors.
(struct backtrace): Remove.
(struct catchtag): Remove backlist field.
* src/data.c (let_shadows_buffer_binding_p, let_shadows_global_binding_p):
Move to eval.c.
(Flocal_variable_p): Speed up the common case where the binding is
already loaded.
* src/eval.c (backtrace_list): Remove.
(set_specpdl_symbol, set_specpdl_old_value): Remove.
(set_backtrace_args, set_backtrace_nargs)
(set_backtrace_debug_on_exit, backtrace_p, backtrace_top)
(backtrace_next): New functions.
(Fdefvaralias, Fdefvar): Adjust to new specpdl format.
(unwind_to_catch, internal_lisp_condition_case)
(internal_condition_case, internal_condition_case_1)
(internal_condition_case_2, internal_condition_case_n): Don't bother
with backtrace_list any more.
(Fsignal): Adjust to new backtrace format.
(grow_specpdl): Move up.
(record_in_backtrace): New function.
(eval_sub, Ffuncall): Use it.
(apply_lambda): Adjust to new backtrace format.
(let_shadows_buffer_binding_p, let_shadows_global_binding_p): Move from
data.c.
(specbind): Adjust to new specpdl format.  Simplify.
(record_unwind_protect, unbind_to): Adjust to new specpdl format.
(Fbacktrace_debug, Fbacktrace, Fbacktrace_frame): Adjust to new
backtrace format.
(mark_backtrace): Remove.
(mark_specpdl, get_backtrace, backtrace_top_function): New functions.
* src/xdisp.c (redisplay_internal): Use record_in_backtrace.
* src/alloc.c (Fgarbage_collect): Use record_in_backtrace.
Use mark_specpdl.
* src/profiler.c (record_backtrace): Use get_backtrace.
(handle_profiler_signal): Use backtrace_top_function.
* src/.gdbinit (xbacktrace, hookpost-backtrace): Use new backtrace
accessor functions.

10 years agoSearch and highlight symbol at point.
Juri Linkov [Mon, 3 Jun 2013 08:51:50 +0000 (11:51 +0300)]
Search and highlight symbol at point.

* doc/emacs/display.texi (Highlight Interactively): Add global keybindings
with the key prefix `M-s h'.  Document old command `highlight-phrase'.
Document new command `highlight-symbol-at-point'.

* lisp/bindings.el (search-map): Bind `highlight-symbol-at-point' to
`M-s h .'.

* lisp/hi-lock.el (highlight-symbol-at-point): New alias for the new
command `hi-lock-face-symbol-at-point'.
(hi-lock-face-symbol-at-point): New command.
(hi-lock-map): Bind `highlight-symbol-at-point' to `C-x w .'.
(hi-lock-menu): Add `highlight-symbol-at-point'.
(hi-lock-mode): Doc fix.

* lisp/isearch.el (isearch-forward-symbol-at-point): New command.
(search-map): Bind `isearch-forward-symbol-at-point' to `M-s .'.
(isearch-highlight-regexp): Add a regexp which matches
words/symbols for word/symbol mode.

* lisp/subr.el (find-tag-default-bounds): New function with the body
mostly moved from `find-tag-default'.
(find-tag-default): Move most code to `find-tag-default-bounds',
call it and apply `buffer-substring-no-properties' afterwards.

Fixes: debbugs:14427

10 years ago* NEWS: Document eshell visual subcommands and options.
Tassilo Horn [Mon, 3 Jun 2013 06:34:21 +0000 (08:34 +0200)]
* NEWS: Document eshell visual subcommands and options.

* eshell/em-term.el (eshell-term-initialize): Use
`cl-intersection' rather than `intersection'.

10 years agoModify `log-view-mode-map'.
Xue Fuqiao [Sun, 2 Jun 2013 23:04:43 +0000 (07:04 +0800)]
Modify `log-view-mode-map'.

* vc/log-view.el (log-view-mode-map): Copy keymap from
  `special-mode-map'.

10 years agoUpdate the GNUStep port so it works OK. Redraw and sizing bugs remain.
Jan Djärv [Sun, 2 Jun 2013 19:14:25 +0000 (21:14 +0200)]
Update the GNUStep port so it works OK.  Redraw and sizing bugs remain.

* nextstep/templates/Info-gnustep.plist.in: Add NSDocumentClass EmacsDocument.

* src/nsfns.m (x_set_foreground_color, x_set_background_color): Use
EmacsCGFloat.
(ns_implicitly_set_icon_type, Fx_create_frame): Make static, remove
unused variables.
(Fns_read_file_name): Keep track if panel is for save.  Use
ns_filename_from_panel/ns_directory_from_panel.
(Fns_list_services): delegate only used for COCOA.
(Fns_convert_utf8_nfd_to_nfc): Remove warning for GNUStep.  Just
return the input if GNUStep.
(x_screen_planes): Remove.
(Fxw_color_values): Use EmacsCGFloat
(Fns_display_monitor_attributes_list): Only get screen number for
Cocoa.
(getDirectory, getFilename): Removed from EmacsOpenPanel and
EmacsSavePanel.
(EmacsOpenPanel:ok:): Use ns_filename_from_panel and
ns_directory_from_panel.

* src/nsfont.m (ns_attribute_fvalue, ns_spec_to_descriptor)
(ns_charset_covers, ns_get_covering_families, nsfont_open):
Use F suffix on floats.
(ns_char_width): Returns CGFloat.
(ns_ascii_average_width): w is CGFloat instead of float.
(nsfont_draw): cbuf and c are unsigned. Cast to char* in call to
DPSxshow.
(ns_glyph_metrics): CGFloat instead of float.

* src/nsimage.m (setXBMColor:, getPixelAtX:Y:): Use EmacsCGFloat.

* src/nsmenu.m (ns_update_menubar): Make static.
(x_activate_menubar): Surround with ifdef NS_IMPL_COCOA
(fillWithWidgetValue:): Add cast to SEL for setAction.
(addSubmenuWithTitle:forFrame:): Add cast to SEL for action.
(update_frame_tool_bar): Update code for GNUStep.
(clearAll): New method.
(addDisplayItemWithImage:idx:tag:helpText:enabled:): Handle new tag
argument. Call insertItemWithItemIdentifier when NS_IMPL_GNUSTEP. Move
identifierToItem setObject and activeIdentifiers addObject before
call to insertItemWithItemIdentifier.
(validateVisibleItems): Fix indentation.
(toolbarAllowedItemIdentifiers:): Return activeIdentifiers.
(initWithContentRect:styleMask:backing:defer:): Add ClosableWindow and
UtilityWindow to aStyle, remove call to setStyleMask.

* src/nsselect.m (ns_get_local_selection): Remove unused variable type.

* src/nsterm.h (EmacsCGFloat): Typedef for OSX and GNUStep when the size
of CGFloat differs.
(EmacsApp): New variable nextappdefined.  Declare sendFromMainThread
when NS_IMPL_GNUSTEP.
(EmacsDocument): Declare when NS_IMPL_GNUSTEP.
(EmacsView): Remove unlockFocusNeedsFlush, add windowDidMove.
(EmacsToolbar): Add clearAll.  Add tag argument to
addDisplayItemWithImage.
(EmacsSavePanel, EmacsOpenPanel): Remove getFilename and getDirectory.

* src/nsterm.m: Include src/process.h if NS_IMPL_GNUSTEP.
(ns_menu_bar_is_hidden, menu_will_open_state): Define only if
NS_IMPL_COCOA.
(x_set_cursor_type): Remove declaration.
(ns_update_begin): Only use r and bp if NS_IMPL_COCOA.
(ns_update_end, ns_focus, ns_unfocus): Remove GNUStep specific code.
(x_set_window_size): Remove 3 pixels from toolbar if NS_IMPL_GNUSTEP.
(ns_get_color): Use F suffix on float.
(ns_color_to_lisp, ns_query_color): Use EmacsCGFloat.
(ns_get_rgb_color): Remove.
(x_set_frame_alpha): Move view inside NS_IMPL_COCOA.
(note_mouse_movement): x and y are CGFloat.
(ns_draw_fringe_bitmap): Remove unused rowY.
Change #if to COCOA && >= 10_6.
(ns_draw_window_cursor): Remove unused overspill.
(ns_draw_underwave): width and x are EamcsCGFloat.
(ns_draw_box): thickness is CGFloat.
(ns_dumpglyphs_image): Change #if to COCOA && >= 10_6.
(ns_send_appdefined): When NS_IMPL_GNUSTEP, redirect to main thread
if not in main thread.
(ns_get_pending_menu_title, ns_check_menu_open)
(ns_check_pending_open_menu): Put inside #if COCOA && >= 10_5.
(ns_term_init): Call catch_child_signal if NS_IMPL_GNUSTEP && SIGCHLD.
(sendFromMainThread:): New method.
(changeFont:): size is CGFloat.
(keyDown:): Check for Delete when NS_IMPL_GNUSTEP.
Disable warning about permanent text.
(characterIndexForPoint:): Adjust return type depending on GNUStep
version.
(mouseDown:): delta is CGFloat.
(updateFrameSize): Remove unised variable f.
(initFrameFromEmacs): Move toggleButton inside NS_IMPL_COCOA.
Cast float to EmacsCGFloat.
(windowWillUseStandardFrame:defaultFrame:): Set maximized_height
also to -1 when restoring.
(windowDidExitFullScreen:): Put call to updateCollectionBehaviour
inside NS_IMPL_COCOA.
(toggleFullScreen:): Put call to toggleFullScreen inside
NS_IMPL_COCOA.  Cast float to EmacsCGFloat.
(setPosition:portion:whole:): por is CGFloat.
(getMouseMotionPart:window:x:y:): Add F suffix to float.
(mouseDown:): Use CGFloat.
(mouseDragged:): Remove unised variable edge.
(EmacsDocument): Implement for NS_IMPL_GNUSTEP.

* src/process.c (catch_child_signal): New function.
(init_process_emacs): Call it.

* src/process.h (catch_child_signal): Declare.

10 years ago* lisp/eshell/em-term.el: New defcustoms need :version tags.
Glenn Morris [Sun, 2 Jun 2013 18:26:38 +0000 (11:26 -0700)]
* lisp/eshell/em-term.el: New defcustoms need :version tags.

10 years agoMerge with CEDET upstream (rev. 8564).
David Engster [Sun, 2 Jun 2013 16:39:32 +0000 (18:39 +0200)]
Merge with CEDET upstream (rev. 8564).

10 years ago* lisp/cedet/srecode/srt-wy.el: Regenerate.
David Engster [Sun, 2 Jun 2013 16:37:37 +0000 (18:37 +0200)]
* lisp/cedet/srecode/srt-wy.el: Regenerate.

10 years ago* registry.el (initialize-instance, registry-lookup)
David Engster [Sun, 2 Jun 2013 14:16:31 +0000 (16:16 +0200)]
* registry.el (initialize-instance, registry-lookup)
  (registry-lookup-breaks-before-lexbind, registry-lookup-secondary)
  (registry-lookup-secondary-value, registry-search, registry-delete)
  (registry-insert, registry-reindex, registry-size, registry-prune): Do
  not wrap methods in `eval-and-compile'.  This breaks due to latest
  changes in EIEIO (introduction of eieio-core.el).

10 years agoMerge from CEDET upstream (8564).
David Engster [Sun, 2 Jun 2013 13:33:09 +0000 (15:33 +0200)]
Merge from CEDET upstream (8564).

* lisp/emacs-lisp:

* emacs-lisp/eieio.el (eieio--defalias, eieio-hook)
(eieio-error-unsupported-class-tags, eieio-skip-typecheck)
(eieio-optimize-primary-methods-flag, eieio-initializing-object)
(eieio-unbound, eieio-default-superclass)
(eieio--define-field-accessors, method-static, method-before)
(method-primary, method-after, method-num-lists)
(method-generic-before, method-generic-primary)
(method-generic-after, method-num-slots)
(eieio-specialized-key-to-generic-key)
(eieio--check-type, class-v, class-p)
(eieio-class-name, define-obsolete-function-alias)
(eieio-class-parents-fast, eieio-class-children-fast)
(same-class-fast-p, class-constructor, generic-p)
(generic-primary-only-p, generic-primary-only-one-p)
(class-option-assoc, class-option, eieio-object-p)
(class-abstract-p, class-method-invocation-order)
(eieio-defclass-autoload-map, eieio-defclass-autoload)
(eieio-class-un-autoload, eieio-defclass)
(eieio-eval-default-p, eieio-perform-slot-validation-for-default)
(eieio-add-new-slot, eieio-copy-parents-into-subclass)
(eieio--defgeneric-init-form, eieio-defgeneric-form)
(eieio-defgeneric-reset-generic-form)
(eieio-defgeneric-form-primary-only)
(eieio-defgeneric-reset-generic-form-primary-only)
(eieio-defgeneric-form-primary-only-one)
(eieio-defgeneric-reset-generic-form-primary-only-one)
(eieio-unbind-method-implementations)
(eieio--defmethod, eieio--typep)
(eieio-perform-slot-validation, eieio-validate-slot-value)
(eieio-validate-class-slot-value, eieio-barf-if-slot-unbound)
(eieio-oref, eieio-oref-default, eieio-default-eval-maybe)
(eieio-oset, eieio-oset-default, eieio-slot-originating-class-p)
(eieio-slot-name-index, eieio-class-slot-name-index)
(eieio-set-defaults, eieio-initarg-to-attribute)
(eieio-attribute-to-initarg, eieio-c3-candidate)
(eieio-c3-merge-lists, eieio-class-precedence-c3)
(eieio-class-precedence-dfs, eieio-class-precedence-bfs)
(eieio-class-precedence-list, eieio-generic-call-methodname)
(eieio-generic-call-arglst, eieio-generic-call-key)
(eieio-generic-call-next-method-list)
(eieio-pre-method-execution-functions, eieio-generic-call)
(eieio-generic-call-primary-only, eieiomt-method-list)
(eieiomt-optimizing-obarray, eieiomt-install)
(eieiomt-add, eieiomt-next, eieiomt-sym-optimize)
(eieio-generic-form, eieio-defmethod, make-obsolete)
(eieio-defgeneric, make-obsolete): Moved to eieio-core.el
(defclass): Remove `eval-and-compile' from macro.
(call-next-method, shared-initialize): Instead of using
`scoped-class' variable, use new eieio--scoped-class, and
eieio--with-scoped-class.
(initialize-instance): Rename local variable 'scoped-class' to
'this-class' to remove ambiguitity from old global.

* emacs-lisp/eieio-core.el: New file.  Derived from key parts of
eieio.el.
(eieio--scoped-class-stack): New variable
(eieio--scoped-class): New fcn
(eieio--with-scoped-class): New scoping macro.
(eieio-defclass): Use pushnew instead of add-to-list.
(eieio-defgeneric-form-primary-only-one, eieio-oset-default)
(eieio-slot-name-index, eieio-set-defaults, eieio-generic-call)
(eieio-generic-call-primary-only, eieiomt-add): Instead of using
`scoped-class' variable, use new eieio--scoped-class, and
eieio--with-scoped-class.

* emacs-lisp/eieio-base.el (cl-lib): Require during compile.

* admin/grammars:

* grammars/srecode-template.wy (variable): Accept a single number
as a variable value.  Allows the 'priority' to be set to a number.
(wisent-srecode-template-lexer): Move number up so it can be
created.

* etc/srecode:

* srecode/c.srt (header_guard): Add :c parameter so it works
standalone

* lisp/cedet:

* semantic/edit.el (semantic-change-function): Use
`save-match-data' around running hooks.

* semantic/decorate/mode.el
(semantic-decorate-style-predicate-default)
(semantic-decorate-style-highlighter-default): New.
(semantic-decoration-mode): Do not require
`semantic/decorate/include' anymore.
(semantic-toggle-decoration-style): Error if an unknown decoration
style is toggled.
(define-semantic-decoration-style): Add new :load option.  When
:load is specified, add autoload tokens for the definition
functions so that code is loaded when the mode is used.
(semantic-decoration-on-includes): New autoload definition for
highlighting includes.

* semantic/bovine/c.el (semantic-lex-c-ifdef): Allow some misc
characters to appear after the tested variable.

* semantic/ede-grammar.el (project-compile-target): Calculate full
src name via ede-expand-filename instead of the crutch of the
current buffer.  Enables this target to compile in batch mode.

* semantic/idle.el
(semantic-idle-symbol-maybe-highlight): Wrap highlighting of
remote symbol with `save-excursion'.
(semantic-idle-scheduler-work-parse-neighboring-files): Instead of
using directory-files on each found mode pattern, collect all the
patterns for the current mode, and then for each file, see if it
matches any of them.  If it does, parse the file.  (Patch
inspiration from Tomasz Gajewski.)

* semantic/ctxt.el (semantic-ctxt-end-of-symbol): New.
(semantic-ctxt-current-symbol-default): New.

* semantic/bovine/el.el (semantic-default-elisp-setup): Add
autoload cookie.  Explain existence.
(footer): Add local variable for loaddefs.

* semantic/db.el (semanticdb-file-table-object): Add new filter,
only checking for regular files too.

* semantic/wisent/python.el
(semantic-format-tag-abbreviate): New override.  Cuts back on size
of code tags.

* srecode/compile.el (srecode-compile-templates): Fix warning
punctuation.  Remove status messages to clean up testing output

* ede/base.el (ede-project-placeholder-cache-file): Update doc to
mention 'nil' value.
(ede-save-cache): Disable cache save if file is nil.

* ede.el (ede-initialize-state-current-buffer): Flush deleted
projects.
(global-ede-mode): Always append our find-file-hook to the end.
(ede-flush-deleted-projects): New command.

* ede/cpp-root.el (ede-preprocessor-map): Protect against init
problems.

* ede/proj.el (ede-proj-target): Added a new "custom" option for
custom symbols representing a compiler or linker instead of
restricting things to only the predefined compilers and linkers.

* semantic.el (semantic-mode-map): To avoid showing showing
Development menu twice, only disable menu item if menu-bar is
actually enabled, otherwise the popup 'global menu' might display
a disabled Development menu.

* semantic/complete.el
(semantic-displayor-show-request): Fix which slot in obj is set to
the max tags.

10 years agoRefine docs of VC.
Xue Fuqiao [Sun, 2 Jun 2013 11:56:39 +0000 (19:56 +0800)]
Refine docs of VC.

* maintaining.texi (VC Mode Line): Fix typo.
(VC Directory Commands): Mention `vc-dir-hide-up-to-date' with
prefix argument.

10 years ago* maintaining.texi (Branches): Add motivations for branching.
Xue Fuqiao [Sun, 2 Jun 2013 11:50:47 +0000 (19:50 +0800)]
* maintaining.texi (Branches): Add motivations for branching.

10 years ago* vc/log-view.el: Doc fix.
Xue Fuqiao [Sun, 2 Jun 2013 11:40:20 +0000 (19:40 +0800)]
* vc/log-view.el: Doc fix.

10 years ago* vc/log-view.el: Header fix.
Xue Fuqiao [Sun, 2 Jun 2013 10:56:54 +0000 (18:56 +0800)]
* vc/log-view.el: Header fix.

10 years ago* eshell/esh-ext.el (eshell-external-command): Pass args to
Tassilo Horn [Sun, 2 Jun 2013 09:19:09 +0000 (11:19 +0200)]
* eshell/esh-ext.el (eshell-external-command): Pass args to
`eshell-find-interpreter'.
(eshell-find-interpreter): Add new second parameter ARGS.

* eshell/em-script.el (eshell-script-initialize): Add second arg
to the function added as MATCH to `eshell-interpreter-alist'

* eshell/em-dirs.el (eshell-dirs-initialize): Add second arg to
the function added as MATCH to `eshell-interpreter-alist'

* eshell/em-term.el (eshell-visual-subcommands): New defcustom.
(eshell-visual-options): New defcustom.
(eshell-escape-control-x): Adapt docstring.
(eshell-term-initialize): Test `eshell-visual-subcommands' and
`eshell-visual-options' in addition to `eshell-visual-commands'.
(eshell-exec-visual): Pass args to `eshell-find-interpreter'.

10 years agolisp/ChangeLog, src/ChangeLog: Fix whitespace.
Juanma Barranquero [Sun, 2 Jun 2013 03:59:46 +0000 (05:59 +0200)]
lisp/ChangeLog, src/ChangeLog: Fix whitespace.

10 years ago* .bzrignore: Ignore dirs libexec/, share/ and var/.
Juanma Barranquero [Sun, 2 Jun 2013 03:56:40 +0000 (05:56 +0200)]
* .bzrignore: Ignore dirs libexec/, share/ and var/.

10 years agons-win comment
Glenn Morris [Sat, 1 Jun 2013 22:35:54 +0000 (15:35 -0700)]
ns-win comment

10 years agoMerge from emacs-24; up to 2012-12-27T20:09:45Z!juri@jurta.org
Glenn Morris [Sat, 1 Jun 2013 20:21:22 +0000 (13:21 -0700)]
Merge from emacs-24; up to 2012-12-27T20:09:45Z!juri@jurta.org

10 years ago* lisp/pcmpl-gnu.el (pcomplete/tar): Check obsolete variable is bound.
Glenn Morris [Sat, 1 Jun 2013 20:10:08 +0000 (13:10 -0700)]
* lisp/pcmpl-gnu.el (pcomplete/tar): Check obsolete variable is bound.

10 years agoPlain boundp silences compilation warnings since Emacs 22.1.
Glenn Morris [Sat, 1 Jun 2013 20:08:52 +0000 (13:08 -0700)]
Plain boundp silences compilation warnings since Emacs 22.1.

* progmodes/cc-defs.el (zmacs-region-stays, zmacs-regions)
(lookup-syntax-properties): Remove unecessary cc-bytecomp-defvar.

10 years agoPlain fboundp silences compilation warnings since Emacs 22.1
Glenn Morris [Sat, 1 Jun 2013 18:19:29 +0000 (11:19 -0700)]
Plain fboundp silences compilation warnings since Emacs 22.1

* progmodes/cc-cmds.el (delete-forward-p):
* progmodes/cc-defs.el (buffer-syntactic-context-depth):
* progmodes/cc-engine.el (buffer-syntactic-context):
* progmodes/cc-fonts.el (face-property-instance):
* progmodes/cc-mode.el (set-keymap-parents):
* progmodes/cc-vars.el (get-char-table): No need for cc-bytecomp-defun.
* progmodes/cc-defs.el (c-set-region-active, c-beginning-of-defun-1)
* progmodes/cc-mode.el (c-make-inherited-keymap): Use plain fboundp.

10 years agoDon't (re)define a basic custom widget in cc-vars
Glenn Morris [Sat, 1 Jun 2013 18:06:56 +0000 (11:06 -0700)]
Don't (re)define a basic custom widget in cc-vars

* lisp/progmodes/cc-vars.el (other): Emacs has this widget since at
least 21.1, so don't (re)define it.

10 years agoReplace obsolete function lisp-complete-symbol
Glenn Morris [Sat, 1 Jun 2013 18:04:59 +0000 (11:04 -0700)]
Replace obsolete function lisp-complete-symbol

* lisp/cedet/semantic/grammar.el (semantic-grammar-complete):
Replace the obsolete function lisp-complete-symbol.

10 years agoSilence some cedet compilation warnings
Glenn Morris [Sat, 1 Jun 2013 18:02:58 +0000 (11:02 -0700)]
Silence some cedet compilation warnings

* cedet/semantic/analyze/fcn.el (semantic-tag-similar-p): Autoload.

* cedet/srecode/args.el, cedet/srecode/java.el: Require ede.

10 years ago* cedet/semantic/lex.el (semantic-lex-make-type-table): Fix transposed args.
Glenn Morris [Sat, 1 Jun 2013 18:01:45 +0000 (11:01 -0700)]
* cedet/semantic/lex.el (semantic-lex-make-type-table): Fix transposed args.

10 years ago* eshell/em-cmpl.el (eshell-cmpl-initialize): Replace obsolete alias
Glenn Morris [Sat, 1 Jun 2013 18:00:14 +0000 (11:00 -0700)]
* eshell/em-cmpl.el (eshell-cmpl-initialize): Replace obsolete alias

10 years agoNEWS fix: `M-s i' can be only used in Isearch mode.
Xue Fuqiao [Sat, 1 Jun 2013 12:35:14 +0000 (20:35 +0800)]
NEWS fix: `M-s i' can be only used in Isearch mode.

10 years agoetc/tutorials/TUTORIAL.ru: Fix incorrectly translated wording.
Alex Ott [Sat, 1 Jun 2013 12:29:03 +0000 (15:29 +0300)]
etc/tutorials/TUTORIAL.ru: Fix incorrectly translated wording.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 1 Jun 2013 10:17:59 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

10 years agoFix compilation error on MinGW64 due to nt/inc/sys/time.h.
Eli Zaretskii [Sat, 1 Jun 2013 07:07:22 +0000 (10:07 +0300)]
Fix compilation error on MinGW64 due to nt/inc/sys/time.h.

 nt/inc/sys/time.h [!_TIMEZONE_DEFINED]: Define _TIMEZONE_DEFINED to
 avoid multiple definition errors on MinGW64.

10 years ago* progmodes/octave.el (octave-mode-syntax-table): Give `.'
Leo Liu [Sat, 1 Jun 2013 03:38:36 +0000 (11:38 +0800)]
* progmodes/octave.el (octave-mode-syntax-table): Give `.'
punctuation syntax.
(inferior-octave-minimal-columns)
(inferior-octave-last-column-width): New variables.
(inferior-octave-track-window-width-change): New function.
(inferior-octave-mode): Adjust column width so that Octave output,
for example from 'ls', can fit into the window nicely.

10 years ago* process.c (handle_child_signal): Also use WCONTINUED.
Paul Eggert [Sat, 1 Jun 2013 00:54:34 +0000 (17:54 -0700)]
* process.c (handle_child_signal): Also use WCONTINUED.

This is so that list-processes doesn't mistakenly list the process
as stopped, when the process has actually been continued and is
now running.

10 years agoDocument changes in the installation tree on MS-Windows.
Eli Zaretskii [Fri, 31 May 2013 19:22:23 +0000 (22:22 +0300)]
Document changes in the installation tree on MS-Windows.

10 years agoSpelling fixes.
Paul Eggert [Fri, 31 May 2013 17:10:10 +0000 (10:10 -0700)]
Spelling fixes.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p):
Dmitry Gutov [Fri, 31 May 2013 16:55:03 +0000 (20:55 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p):
Highlight expansions inside regexp literals.

10 years agoFix compile errors in nt/inc/sys/time.h when using nt/configure.bat.
Eli Zaretskii [Fri, 31 May 2013 08:47:18 +0000 (11:47 +0300)]
Fix compile errors in nt/inc/sys/time.h when using nt/configure.bat.

 nt/inc/sys/time.h (gettimeofday): Use '__restrict' instead of
 'restrict', which is a C99 extension.  See
 http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00588.html
 and the following discussion for the problem this caused in the
 old nt/configure.bat build.

10 years ago* sym-comp.el (symbol-complete): Replace obsolete completion-annotate-function.
Glenn Morris [Fri, 31 May 2013 07:34:56 +0000 (00:34 -0700)]
* sym-comp.el (symbol-complete): Replace obsolete completion-annotate-function.

10 years ago* themes/tsdh-dark-theme.el (tsdh-dark): Refine mode-line faces.
Tassilo Horn [Fri, 31 May 2013 07:15:51 +0000 (09:15 +0200)]
* themes/tsdh-dark-theme.el (tsdh-dark): Refine mode-line faces.

10 years ago* progmodes/cc-vars.el (c-make-macro-with-semi-re): Silence compiler.
Glenn Morris [Fri, 31 May 2013 07:05:55 +0000 (00:05 -0700)]
* progmodes/cc-vars.el (c-make-macro-with-semi-re): Silence compiler.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
Dmitry Gutov [Fri, 31 May 2013 06:04:33 +0000 (10:04 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
function, checks if expression expansion is allowed in given parse
state.
(ruby-syntax-propertize-expansion): Use it.
(ruby-syntax-propertize-function): Bind `case-fold-search' to nil
around the body.

* test/automated/ruby-mode-tests.el: New tests, for percent literals
and expression expansion.

10 years agoDon't let D-bus autolaunch mess up SIGCHLD handling.
Paul Eggert [Fri, 31 May 2013 01:41:52 +0000 (18:41 -0700)]
Don't let D-bus autolaunch mess up SIGCHLD handling.

* xterm.c (x_term_init): Inhibit D-Bus autolaunch if D-Bus is
not already configured.

Fixes: debbugs:14474

10 years ago* fileio.c (Finsert_file_contents): Remove unused local.
Paul Eggert [Fri, 31 May 2013 01:31:10 +0000 (18:31 -0700)]
* fileio.c (Finsert_file_contents): Remove unused local.

Fixes: debbugs:8447

10 years ago* lisp/isearch.el (isearch-mode-map): Bind `isearch-toggle-invisible' to "\M-si".
Juri Linkov [Thu, 30 May 2013 23:45:41 +0000 (02:45 +0300)]
* lisp/isearch.el (isearch-mode-map): Bind `isearch-toggle-invisible' to "\M-si".
(isearch-invisible): New variable.
(isearch-forward): Doc fix.
(isearch-mode): Set `isearch-invisible'
to the value of `search-invisible'.
(isearch-toggle-case-fold): Doc fix.
(isearch-toggle-invisible): New command.
(isearch-query-replace): Let-bind `search-invisible'
to the value of `isearch-invisible'.
(isearch-search): Use `isearch-invisible' instead of
`search-invisible'.  Let-bind `search-invisible'
to the value of `isearch-invisible'.

Fixes: debbugs:11378

10 years ago* lisp/progmodes/gdb-mi.el (gdb-wait-for-pending): Fix typo.
Glenn Morris [Thu, 30 May 2013 23:33:08 +0000 (19:33 -0400)]
* lisp/progmodes/gdb-mi.el (gdb-wait-for-pending): Fix typo.

10 years ago* lisp/replace.el (perform-replace): Avoid `isearch-range-invisible'
Juri Linkov [Thu, 30 May 2013 23:29:42 +0000 (02:29 +0300)]
* lisp/replace.el (perform-replace): Avoid `isearch-range-invisible'
call when `query-flag' is nil and `search-invisible' is non-nil.

Fixes: debbugs:11746

10 years agocc-bytecomp tweaks for sake of byte-compiler
Glenn Morris [Thu, 30 May 2013 23:20:05 +0000 (19:20 -0400)]
cc-bytecomp tweaks for sake of byte-compiler

* lisp/progmodes/cc-bytecomp.el (cc-bytecomp-noruntime-functions): New.
(cc-require): Suppress spurious "noruntime" warnings.
(cc-require-when-compile): Use fboundp, for sake of compiler.

10 years ago* lisp/progmodes/cc-mode.el: Move load of cc-vars before that of cc-langs
Glenn Morris [Thu, 30 May 2013 23:18:39 +0000 (19:18 -0400)]
* lisp/progmodes/cc-mode.el: Move load of cc-vars before that of cc-langs
(which in turn loads cc-vars), to quieten compiler.

10 years ago* lisp/paren.el: Simplify the code.
Stefan Monnier [Thu, 30 May 2013 15:44:54 +0000 (11:44 -0400)]
* lisp/paren.el: Simplify the code.
(show-paren-mode): Always start the timer.
(show-paren--idle-timer): Rename from show-paren-idle-timer.
(show-paren--overlay, show-paren--overlay-1): Rename from
show-paren-overlay and show-paren-overlay-1, and initialize to an
overlay rather than to nil.
(show-paren-function): Misc cleanup and simplifications.

10 years ago* lisp/paren.el (show-paren-data-function): New hook.
Stefan Monnier [Thu, 30 May 2013 14:20:52 +0000 (10:20 -0400)]
* lisp/paren.el (show-paren-data-function): New hook.
(show-paren--default): New function, extracted from show-paren-function.
(show-paren-function): Use show-paren-data-function.

10 years ago* syntax.el (syntax-propertize-function): Fix docstring.
Stefan Monnier [Thu, 30 May 2013 13:57:44 +0000 (09:57 -0400)]
* syntax.el (syntax-propertize-function): Fix docstring.

10 years agoRefine maintaining.texi.
Xue Fuqiao [Thu, 30 May 2013 09:27:55 +0000 (17:27 +0800)]
Refine maintaining.texi.

* maintaining.texi (Types of Log File): Supplement some information of
change log files.

10 years agoSilence ielm compilation
Glenn Morris [Thu, 30 May 2013 03:30:34 +0000 (20:30 -0700)]
Silence ielm compilation

* lisp/ielm.el (ielm-map, ielm-complete-symbol):
Use completion-at-point rather than obsolete functions.
(inferior-emacs-lisp-mode): Doc fix.
Set completion-at-point-functions, rather than
comint-dynamic-complete-functions.

10 years agoIn Eshell, replace obsolete lisp-complete-symbol
Glenn Morris [Thu, 30 May 2013 03:27:46 +0000 (20:27 -0700)]
In Eshell, replace obsolete lisp-complete-symbol

* eshell/em-cmpl.el (eshell-complete-lisp-symbol): New function.
(eshell-cmpl-initialize, eshell-complete-parse-arguments):
Replace obsolete lisp-complete-symbol with eshell-complete-lisp-symbol.

10 years ago* gnus/nnmail.el (nnmail-fancy-expiry-target): Also bind mail-dont-reply-to-names
Glenn Morris [Thu, 30 May 2013 03:26:13 +0000 (20:26 -0700)]
* gnus/nnmail.el (nnmail-fancy-expiry-target): Also bind mail-dont-reply-to-names

10 years ago* gnus/spam-stat.el (spam-stat-save): No need to tweak font-lock in temp buffers
Glenn Morris [Thu, 30 May 2013 03:25:29 +0000 (20:25 -0700)]
* gnus/spam-stat.el (spam-stat-save): No need to tweak font-lock in temp buffers

10 years ago* image.el (image-animated-p): Tweak definition.
Glenn Morris [Thu, 30 May 2013 03:24:30 +0000 (20:24 -0700)]
* image.el (image-animated-p): Tweak definition.
* gnus/shr.el (shr-put-image): Silence compiler.

10 years agorlogin.el tiny cleanup
Glenn Morris [Thu, 30 May 2013 03:22:45 +0000 (20:22 -0700)]
rlogin.el tiny cleanup

* net/rlogin.el (rlogin-program, rlogin-explicit-args): Default to ssh.
(rlogin-process-connection-type): Tweak default.  Add set-after.
(rlogin-host): Doc fix.
(rlogin): Tweak prompt.
(rlogin-tab-or-complete): Use completion-at-point rather than alias.

10 years agoUse completion-at-point rather than obsolete alias.
Glenn Morris [Thu, 30 May 2013 03:20:56 +0000 (20:20 -0700)]
Use completion-at-point rather than obsolete alias.

* net/net-utils.el (nslookup-mode-map, ftp-mode-map):
* progmodes/tcl.el (inferior-tcl-mode-map):
Use completion-at-point rather than obsolete alias.

10 years ago* lisp/emacs-lisp/eieio.el (eieio-eval-default-p): Move before use.
Glenn Morris [Thu, 30 May 2013 03:19:37 +0000 (20:19 -0700)]
* lisp/emacs-lisp/eieio.el (eieio-eval-default-p): Move before use.

10 years ago* erc/erc-backend.el: Require erc at run-time too (silences compilation)
Glenn Morris [Thu, 30 May 2013 03:19:04 +0000 (20:19 -0700)]
* erc/erc-backend.el: Require erc at run-time too (silences compilation)

10 years ago* minibuffer.el (read-file-name-completion-ignore-case):
Glenn Morris [Thu, 30 May 2013 03:18:06 +0000 (20:18 -0700)]
* minibuffer.el (read-file-name-completion-ignore-case):
Move before completion--in-region, for eager macro expansion.

Somehow, this avoids an eager macro expansion failure present during
bootstrap since ~ 2013-04-17.

10 years ago* lisp/replace.el (occur-engine): Rename `globalcount' to `global-lines'
Juri Linkov [Wed, 29 May 2013 23:43:39 +0000 (02:43 +0300)]
* lisp/replace.el (occur-engine): Rename `globalcount' to `global-lines'
for total count of matching lines.  Add `global-matches' for total
count of matches.  Rename `matches' to `lines' for count of
matching lines.  Add `matches' for count of matches.
Rename `lines' to `curr-line' for line count.  Rename `prev-lines'
to `prev-line' for line number of prev match endpt.
Increment `matches' for every match.  Print the number of
matching lines in the header.
(occur-context-lines): Rename `lines' to `curr-line'.
Rename `prev-lines' to `prev-line'.

Fixes: debbugs:14017

10 years ago* lisp/replace.el (perform-replace): Add `skip-read-only-count',
Juri Linkov [Wed, 29 May 2013 23:11:41 +0000 (02:11 +0300)]
* lisp/replace.el (perform-replace): Add `skip-read-only-count',
`skip-filtered-count', `skip-invisible-count' let-bound to 0.
Increment them for corresponding conditions and report the number
of skipped occurrences in the final message.
(query-replace, query-replace-regexp, query-replace-regexp-eval)
(replace-string, replace-regexp): Doc fix.

Fixes: debbugs:11746

10 years agoRemove *.res files in mostlyclean, to avoid problems with out-of-tree builds.
Eli Zaretskii [Wed, 29 May 2013 16:48:42 +0000 (19:48 +0300)]
Remove *.res files in mostlyclean, to avoid problems with out-of-tree builds.

 src/Makefile.in (mostlyclean): Remove *.res files.

 lib-src/Makefile.in (mostlyclean): Remove *.res files.

 nt/Makefile.in (emacs.res): Include srcdir when preprocessing
 resources, for out-of-tree builds.
 (mostlyclean): Remove *.res files.

10 years ago* lisp/emacs-lisp/trace.el (trace--read-args): Provide a default.
Stefan Monnier [Wed, 29 May 2013 15:17:12 +0000 (11:17 -0400)]
* lisp/emacs-lisp/trace.el (trace--read-args): Provide a default.

10 years ago* lisp/emacs-lisp/lisp-mode.el (lisp-mode-shared-map): Inherit from
Stefan Monnier [Wed, 29 May 2013 14:14:16 +0000 (10:14 -0400)]
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-shared-map): Inherit from
prog-mode-map.

10 years ago* INSTALL: Fix description.
Xue Fuqiao [Wed, 29 May 2013 13:21:17 +0000 (21:21 +0800)]
* INSTALL: Fix description.

10 years agoidlwave-concatenate-rinfo-lists fix
Glenn Morris [Wed, 29 May 2013 07:18:09 +0000 (00:18 -0700)]
idlwave-concatenate-rinfo-lists fix

* progmodes/idlwave.el (idlwave-concatenate-rinfo-lists):
Handle idlwave-last-system-routine-info-cons-cell being nil.

This seems to prevent an error on typing `C-c TAB',
idlwave-update-routine-info, in an idlwave buffer.

10 years ago* lisp/emacs-lisp/smie.el (smie-highlight-matching-block): Always turn
Leo Liu [Wed, 29 May 2013 06:50:48 +0000 (14:50 +0800)]
* lisp/emacs-lisp/smie.el (smie-highlight-matching-block): Always turn
off the highlight first.

* lisp/progmodes/octave.el (octave-indent-comment): Tweak regexps.
(octave-help): Small simplification.

* test/indent/octave.m: Tweak.

10 years ago* idlwave.el (idlwave-scan-user-lib-files, idlwave-write-paths): Simplify
Glenn Morris [Wed, 29 May 2013 06:44:19 +0000 (23:44 -0700)]
* idlwave.el (idlwave-scan-user-lib-files, idlwave-write-paths): Simplify
via with-temp-buffer.

10 years agoSilence cua-mode compilation
Glenn Morris [Wed, 29 May 2013 02:48:16 +0000 (19:48 -0700)]
Silence cua-mode compilation

* emulation/cua-gmrk.el: Also load cua-base, cua-rect at run time.
* emulation/cua-rect.el: Also load cua-base at run time.

10 years agoSilence cperl-mode compilation
Glenn Morris [Wed, 29 May 2013 02:46:35 +0000 (19:46 -0700)]
Silence cperl-mode compilation

* progmodes/cperl-mode.el (imenu-choose-buffer-index)
(file-of-tag, etags-snarf-tag, etags-goto-tag-location): Declare.
(cperl-imenu-on-info): Require imenu.

10 years agoSilence some gnus compilation warnings
Glenn Morris [Wed, 29 May 2013 02:40:43 +0000 (19:40 -0700)]
Silence some gnus compilation warnings

* gnus/gnus-ems.el (set-process-plist): Every supported Emacs has this.

* gnus/gnus-group.el (gnus-sequence-of-unread-articles)
(gnus-summary-add-mark, gnus-mark-article-as-read)
(gnus-group-make-articles-read): Declare.

* gnus/gnus-sum.el (gnus-parameter-list-identifier)
(gnus-article-stop-animations, gnus-stop-downloads)
(gnus-article-only-boring-p, article-goto-body)
(gnus-flush-original-article-buffer, article-narrow-to-head)
(gnus-article-hidden-text-p, gnus-delete-wash-type)
(gnus-summary-save-in-pipe, gnus-article-show-summary): Declare.

* gnus/gnus.el: No need to eval-and-compile autoloads.

* gnus/gravatar.el (help-function-arglist): Autoload.

* gnus/nnimap.el (gnus-refer-thread-use-nnir): Declare.

* gnus/nnmail.el (nnmail-fancy-expiry-target): Maybe use mail-dont-reply-to.

* gnus/spam.el: No need to load spam-report when compiling.
No need to eval-and-compile autoloads.
(spam-report-resend-to): Declare.
(spam-report-resend-register-routine): Require 'spam-report.

10 years ago* src/fileio.c (Finsert_file_contents): Preserve undo info when reverting
Stefan Monnier [Wed, 29 May 2013 01:07:53 +0000 (21:07 -0400)]
* src/fileio.c (Finsert_file_contents): Preserve undo info when reverting
a buffer.

Fixes: debbugs:8447

10 years ago* doc/lispref/functions.texi (Lambda Expressions): Lambda expressions don't
Stefan Monnier [Wed, 29 May 2013 00:24:50 +0000 (20:24 -0400)]
* doc/lispref/functions.texi (Lambda Expressions): Lambda expressions don't
evaluate to themselves in general.

Fixes: debbugs:11782

10 years agoHandle "capitalised keywords" correctly.
Alan Mackenzie [Tue, 28 May 2013 15:42:56 +0000 (15:42 +0000)]
Handle "capitalised keywords" correctly.
        * progmodes/cc-mode.el (c-after-change): bind case-fold-search to
        nil.

10 years agoAdded -r option to eshell/cp
Aidan Gauland [Tue, 28 May 2013 10:22:03 +0000 (22:22 +1200)]
Added -r option to eshell/cp

10 years agoSilence the rest of vc compilation
Glenn Morris [Tue, 28 May 2013 07:47:11 +0000 (00:47 -0700)]
Silence the rest of vc compilation

* vc/vc-cvs.el (vc-exec-after, vc-coding-system-for-diff, vc-resynch-buffer):
Declare.
(vc-switches, vc-default-revert, vc-version-backup-file): Autoload.

* vc/vc-git.el (vc-exec-after, vc-set-async-update, grep-read-regexp)
(grep-read-files, grep-expand-template, vc-dir-refresh): Declare.
(vc-setup-buffer, vc-switches, vc-resynch-buffer): Autoload.

* vc/vc-hg.el (vc-exec-after, vc-set-async-update): Declare.
(vc-setup-buffer, vc-switches, vc-do-async-command): Autoload.

* vc/vc-sccs.el (vc-file-tree-walk): Declare.
(vc-expand-dirs, vc-switches, vc-setup-buffer, vc-delistify)
(vc-tag-precondition, vc-rename-master): Autoload.

10 years agoCommit file missing from previous change
Glenn Morris [Tue, 28 May 2013 07:03:00 +0000 (00:03 -0700)]
Commit file missing from previous change

* obsolete/vc-mcvs.el (vc-checkout, vc-switches, vc-default-revert): Autoload.
(vc-resynch-buffer): Declare.

10 years agoSilence some vc compilation warnings
Glenn Morris [Tue, 28 May 2013 07:01:59 +0000 (00:01 -0700)]
Silence some vc compilation warnings

* lisp/vc/vc-arch.el (vc-exec-after): Declare.
(vc-switches): Autoload.

* lisp/vc/vc-bzr.el: No need to require vc when compiling.
(vc-exec-after, vc-set-async-update, vc-default-dir-printer)
(vc-resynch-buffer, vc-dir-refresh): Declare.
(vc-setup-buffer, vc-switches): Autoload.

* lisp/vc/vc-dir.el (desktop-missing-file-warning): Declare.

* lisp/vc/vc-mtn.el (vc-exec-after): Declare.
(vc-switches): Autoload.

* lisp/vc/vc-rcs.el (vc-expand-dirs, vc-switches)
(vc-tag-precondition, vc-buffer-sync, vc-rename-master): Autoload.
(vc-file-tree-walk): Declare.

* lisp/vc/vc-svn.el (vc-exec-after): Declare.
(vc-switches, vc-setup-buffer): Autoload.

* lisp/obsolete/vc-mcvs.el (vc-checkout, vc-switches, vc-default-revert):
Autoload.
(vc-resynch-buffer): Declare.

10 years ago* obsolete/fast-lock.el (byte-compile-warnings):
Glenn Morris [Tue, 28 May 2013 06:56:55 +0000 (23:56 -0700)]
* obsolete/fast-lock.el (byte-compile-warnings):
Don't warn about obsolete features in this obsolete file.

10 years ago* cc-vars.el (c-macro-names-with-semicolon): Move definition before use.
Glenn Morris [Tue, 28 May 2013 06:55:48 +0000 (23:55 -0700)]
* cc-vars.el (c-macro-names-with-semicolon): Move definition before use.

10 years agodunnet.el trivia
Glenn Morris [Tue, 28 May 2013 06:54:23 +0000 (23:54 -0700)]
dunnet.el trivia

* play/dunnet.el (byte-compile-warnings): Don't disable them all.
(dun-unix-verbs): Remove dun-zippy.
(dun-zippy): Remove function.

10 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Doc fix.
Glenn Morris [Tue, 28 May 2013 06:52:51 +0000 (23:52 -0700)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Doc fix.