Adrian Robert [Mon, 12 Oct 2009 00:28:30 +0000 (00:28 +0000)]
2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
Changes for 64-bit compile under Snow Leopard.
* nsfns.m (xw-color-values): Use CGFloat where appropriate.
* nsfont.m (ns_char_width): Replace deprecated call (suggested by
Erik Charlebois).
(ns_findfonts, nsfont_list_family): Use long format in printf, and
cast argument.
(nsfont_open): Use ns_char_width() everywhere.
(ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where
appropriate.
* nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
* nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
where appropriate.
* nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
where appropriate.
(EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:): Use
stringWithUTF8String.
(EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
* nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip): Add
formal protocol mention to inheritance.
[NS_HAVE_NSINTEGER]: Drop conditional and contents.
* nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate. Fix
printf format.
(ns_query_color): Use CGFloat where appropriate.
(EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
(EmacsScroller-mouseDown:) Use long format in printf, and cast
argument.
Adrian Robert [Mon, 12 Oct 2009 00:27:52 +0000 (00:27 +0000)]
* nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate. Fix
printf format.
(ns_query_color): Use CGFloat where appropriate.
(EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
(EmacsScroller-mouseDown:) Use long format in printf, and cast
argument.
Adrian Robert [Mon, 12 Oct 2009 00:27:28 +0000 (00:27 +0000)]
* nsfont.m (ns_char_width): Replace deprecated call (suggested by
Erik Charlebois).
(ns_findfonts, nsfont_list_family): Use long format in printf, and
cast argument.
(nsfont_open): Use ns_char_width() everywhere.
(ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where
appropriate.
Adrian Robert [Mon, 12 Oct 2009 00:27:13 +0000 (00:27 +0000)]
* nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
where appropriate.
(EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:): Use
stringWithUTF8String.
(EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
Michael Albinus [Sun, 11 Oct 2009 14:02:23 +0000 (14:02 +0000)]
* net/tramp-smb.el (tramp-smb-errors): Add error messages.
(tramp-smb-file-name-handler-alist): Add handlers for
`add-name-to-file', `make-symbolic-link'.
(tramp-smb-handle-add-name-to-file)
(tramp-do-file-attributes-with-stat)
(tramp-smb-handle-make-symbolic-link)
(tramp-smb-get-cifs-capabilities): New defuns.
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory, tramp-smb-handle-delete-file)
(tramp-smb-handle-file-local-copy)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-rename-file, tramp-smb-handle-write-region): The
file name syntax depends on cifs capabilities.
(tramp-smb-handle-file-attributes); Call
`tramp-do-file-attributes-with-stat' if possible.
(tramp-smb-handle-insert-directory): Use posix attributes if
possible.
(tramp-smb-handle-set-file-modes): It is applicable for posix
only.
Chong Yidong [Sun, 11 Oct 2009 02:19:27 +0000 (02:19 +0000)]
* emacs-lisp/eieio.el: Avoid requiring cl at runtime.
(eieio-defclass): Apply deftype handler and setf-method properties
directly.
(eieio-add-new-slot): Avoid union function from cl library.
(eieio--typep): New function.
(eieio-perform-slot-validation): Use it.
Karl Fogel [Fri, 9 Oct 2009 06:44:40 +0000 (06:44 +0000)]
* lisp/bookmark.el (bookmark-delete): Don't let batch arg prevent saving.
(bookmark-bmenu-execute-deletions): Don't save here, as bookmark-delete
will now do so if necessary.
Karl Fogel [Fri, 9 Oct 2009 05:54:57 +0000 (05:54 +0000)]
* lisp/bookmark.el (bookmark-jump): Add new `display-func' parameter.
(bookmark-jump-other-window): Just invoke bookmark-jump with new
argument now, so the two function's behaviors will match. (Bug#3645)
Karl Fogel [Fri, 9 Oct 2009 05:25:08 +0000 (05:25 +0000)]
* etc/NEWS (Changes in Specialized Modes and Packages in Emacs 23.1):
Document bookmark.el at 2008-06-25T16:51:33Z!monnier@iro.umontreal.ca format upgrade. (Bug#3375)
Michael Albinus [Thu, 8 Oct 2009 15:21:31 +0000 (15:21 +0000)]
* net/tramp-smb.el (tramp-smb-handle-copy-directory): Handle the
case both directories are remote.
(tramp-smb-handle-expand-file-name): Implement "~" expansion.
(tramp-smb-maybe-open-connection): Flush the cache only if
necessary.
Chong Yidong [Thu, 8 Oct 2009 01:49:05 +0000 (01:49 +0000)]
* cedet/ede/source.el (ede-want-any-source-files-p)
(ede-want-any-auxiliary-files-p, ede-want-any-files-p): Return
search result. This error was introduced while merging.
Glenn Morris [Tue, 6 Oct 2009 03:12:32 +0000 (03:12 +0000)]
(autoload-excludes): New variable.
(autoload-generate-file-autoloads): Skip files in autoload-excludes.
(batch-update-autoloads): Process a string value of autoload-excludes,
set during the build process.
Glenn Morris [Tue, 6 Oct 2009 02:37:22 +0000 (02:37 +0000)]
(rmail-cease-edit): If there is a Content-Type header we don't
understand, don't insert another. (Bug#4624)
If changing mime charset, insert the new one in the right place.
Michael Albinus [Mon, 5 Oct 2009 11:30:52 +0000 (11:30 +0000)]
* net/tramp.el (tramp-verbose): Fix docstring.
(tramp-methods): Add recursive option to `tramp-copy-args'. Add
`tramp-copy-recursive'. Valid for "rcp", "scp", "scp1", "scp2",
"scp1_old", "scp2_old", "rsync", "rsyncc".
(tramp-default-method): Check also for
`auth-source-user-or-password'.
(tramp-file-name-handler-alist, tramp-file-name-for-operation):
Add handler for `copy-directory'.
(tramp-handle-copy-directory): New defun.
(tramp-do-copy-or-rename-file-out-of-band): Handle directory case.
(tramp-handle-start-file-process): Raise an error when PROGRAM is
nil. Optimize sent command.
Michael Albinus [Mon, 5 Oct 2009 07:44:01 +0000 (07:44 +0000)]
* files.el (directory-files-no-dot-files-regexp): New defconst.
(delete-directory): Use it.
(copy-directory): Use it. Remove parameter PRESERVE-UID-GID.