Commit graph

109471 commits

Author SHA1 Message Date
Michael Albinus
aca3d51dfa * net/tramp-sh.el (tramp-sh-handle-set-file-acl): Add argument to
`error' call.
(tramp-do-copy-or-rename-file): Ignore errors when calling
`set-file-extended-attributes'.

* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
handler for `file-acl'.
(tramp-smb-handle-file-acl): New defun.
2013-01-02 11:15:31 +01:00
Lars Magne Ingebrigtsen
9d9ffa1310 Merge changes made in Gnus master
lisp/gnus/gnus-msg.el: Don't do Gcc handling if Gnus isn't running
lisp/gnus/nnimap.el: Make nnimap treat \Deleted articles as \Read articles
2013-01-02 09:20:32 +00:00
Paul Eggert
71376d4b88 Simplify via eabs.
* dired.c (file_name_completion):
* doc.c (get_doc_string):
* floatfns.c (round2):
* font.c (font_score, font_delete_unmatched):
* fringe.c (compute_fringe_widths):
* lread.c (read_list):
* minibuf.c (Ftry_completion):
* term.c (tty_ins_del_lines):
* xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
Use eabs (x) rather than open-coding it as (x < 0 ? -x : x).
2013-01-01 23:57:00 -08:00
Jay Belanger
87e65f9680 * doc/misc/calc.texi (Free-Form Dates): Expand on the date reading
algorithm.

* lisp/calc/README: Mention ISO 8601 week-numbering dates.
2013-01-01 20:54:33 -06:00
Glenn Morris
a616be859b Auto-commit of loaddefs files. 2013-01-01 06:17:46 -05:00
Martin Rudalics
0aac98ac25 Don't run view-mode-hook twice when calling view-mode (Bug#13315).
* view.el (view-mode-enable): New argument run-view-mode-hook.
Run view-mode-hook only when it's non-nil (Bug#13315).
(view-mode-enter): Call view-mode-enable with run-view-mode-hook
argument t.
2013-01-01 12:02:14 +01:00
Juanma Barranquero
a19e68ea91 lib-src/makefile.w32-in (lisp1): Add macroexp.elc (bug#13320). 2013-01-01 09:58:46 +01:00
Eli Zaretskii
a7f1194834 Fix a bug with time zones on MS-Windows.
src/w32.c (unsetenv): Set up the string passed to _putenv
 correctly.  See
 http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00863.html
 for the bug this caused.
2012-12-31 18:09:00 +02:00
Jürgen Hötzel
1a82330cc5 * net/tramp-adb.el (tramp-adb-maybe-open-connection): Handle errors
(No device connected, invalid device name). (Bug #13299)
2012-12-31 16:29:23 +01:00
Martin Rudalics
27fcfe3101 Once more fix resizing of rmail summary window.
* window.el (window-resizable--p): Rename to window-resizable-p.
(window-resize-no-error): New function.

* mail/rmail.el (rmail-maybe-display-summary): Restore behavior
broken in fix from 2012-12-28.
2012-12-31 12:35:13 +01:00
Glenn Morris
393e7ee044 Auto-commit of loaddefs files. 2012-12-31 06:20:58 -05:00
Glenn Morris
4efe5ef999 Auto-commit of generated files. 2012-12-31 06:17:37 -05:00
Stefan Monnier
96c052a5d1 * lisp/subr.el (special-form-p): Don't signal errors on undef aliases. 2012-12-30 23:43:35 -05:00
Jay Belanger
fd1f1603a4 * calc/calc-forms.el (math-parse-date): Try using
`math-parse-iso-date' when it looks like it might be needed.  Allow
times of 24:00. 
(math-parse-date-validate, math-parse-iso-date-validate):  Allow times
of 24:00.
2012-12-30 20:58:57 -06:00
Paul Eggert
84cc1ab625 * coding.c (Qmac): Now static. 2012-12-30 13:34:39 -08:00
Jan Djärv
7ec363cf23 Silence Gtk deprecation warnings by default.
* configure.ac: New enable: --enable-gtk-deprecation-warnings, default off.
(HAVE_GTK3): If above enable is off, add
-DGDK_DISABLE_DEPRECATION_WARNINGS to GTK_CFLAGS.
2012-12-30 20:34:25 +01:00
Jan Djärv
8b745d925b Check for deprecated gtk tearoff menu item in configure.
* configure.ac: Check for GtkHandlebox.
Check for GtkTearoffMenuItem.

* src/gtkutil.c (TOOLBAR_TOP_WIDGET): New macro.
(xg_pack_tool_bar): Use TOOLBAR_TOP_WIDGET, condition out use of
handlebox_widget.  Set toolbar_in_hbox to false/true, set
toolbar_is_packed to true.
(xg_update_tool_bar_sizes): Use widget returned by TOOLBAR_TOP_WIDGET.
(update_frame_tool_bar): Check toolbar_is_packed for packing.
Show all on TOOLBAR_TOP_WIDGET.
(free_frame_tool_bar): Check toolbar_is_packed.  Use widget returned
by TOOLBAR_TOP_WIDGET.
(xg_change_toolbar_position): Use widget returned by TOOLBAR_TOP_WIDGET.
Check toolbar_is_packed.
(xg_have_tear_offs, tearoff_remove, tearoff_activate): Condition on
HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
(xg_have_tear_offs): When ! HAVE_GTK_TEAROFF_MENU_ITEM_NEW, return
false.
(create_menus): Create tearoff only if HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
(xg_update_menubar): Update title only if
HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
(xg_update_submenu): Skip tearoff only if
HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
(xg_initialize): Initialize xg_detached_menus only if
HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
2012-12-30 20:08:15 +01:00
Jan Djärv
5a1d858bbc Check for deprecated gtk_handle_box in configure.
* configure.ac: Check for GtkHandlebox.

* src/gtkutil.c (TOOLBAR_TOP_WIDGET): New macro.
(xg_pack_tool_bar): Use TOOLBAR_TOP_WIDGET, condition out use of
handlebox_widget.  Set toolbar_in_hbox to false/true, set
toolbar_is_packed to true.
(xg_update_tool_bar_sizes): Use widget returned by TOOLBAR_TOP_WIDGET.
(update_frame_tool_bar): Check toolbar_is_packed for packing.
Show all on TOOLBAR_TOP_WIDGET.
(free_frame_tool_bar): Check toolbar_is_packed.  Use widget returned
by TOOLBAR_TOP_WIDGET.
(xg_change_toolbar_position): Use widget returned by TOOLBAR_TOP_WIDGET.
Check toolbar_is_packed.

* src/xterm.h (struct x_output): Surround handlebox_widget with
#ifdef HAVE_GTK_HANDLE_BOX_NEW.  toolbar_is_packed is new,
toolbar_in_hbox is bool.
2012-12-30 19:44:00 +01:00
Glenn Morris
d5e5e7b411 Merge from emacs-24; up to 2012-12-05T00:13:56Z!yamaoka@jpl.org 2012-12-30 10:09:01 -08:00
Glenn Morris
5c56088065 Auto-commit of loaddefs files. 2012-12-30 07:23:26 -05:00
Glenn Morris
beb0fe40b6 Auto-commit of generated files. 2012-12-30 07:18:53 -05:00
Michael Albinus
4f752957f1 * net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context):
Return `t' on success.

* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
handler for `set-file-selinux-context'.
2012-12-30 11:58:13 +01:00
Eli Zaretskii
e4f8453ad1 MS-DOS followup for 2012-12-04T21:17:30Z!monnier@iro.umontreal.ca.
msdos/sed1v2.inp (TEMACS_LDFLAGS2): Remove editing.
 (LIBS_GNUSTEP): Edit to empty.
2012-12-30 07:33:03 +02:00
Glenn Morris
8db39aebe8 mairix.el fix for bug#13294
* lisp/net/mairix.el (rmail, rmail-summary-displayed, rmail-summary):
Remove unnecessary/buggy autoloads (missing interactive). 
(rmail-summary-displayed, rmail-summary): Declare.
(mairix-rmail-display): Just require rmail.
2012-12-29 19:28:52 -08:00
Lars Magne Ingebrigtsen
4d1d3f07a4 lisp/gnus/nnfolder.el: Allow regenerating recursive nnfolder names 2012-12-29 23:18:05 +00:00
Andreas Schwab
2550c6e404 Properly configure GNUstep libraries
* configure.ac (TEMACS_LDFLAGS2): Don't define.
(LIBS_GNUSTEP): Set for GNUstep and substitute.
(LD_SWITCH_SYSTEM_TEMACS): Don't set for GNUstep.

* src/Makefile.in (TEMACS_LDFLAGS2): Remove.
(LIBS_GNUSTEP): Define.
(LIBES): Add $(LIBS_GNUSTEP).
(temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2).
2012-12-29 20:37:32 +01:00
Michael Albinus
eff2eb5812 * net/tramp-sh.el (tramp-sh-handle-file-acl): Suppress basic attributes.
(tramp-sh-handle-set-file-acl): Return `t' on success.
2012-12-29 20:11:11 +01:00
Glenn Morris
4d4056371f How to uncommit 2012-12-29 10:15:47 -08:00
Eli Zaretskii
8d23a33120 Improve copy-file diagnostics on MS-Windows.
src/fileio.c (Fcopy_file) [WINDOWSNT]: Improve diagnostics when CopyFile
 fails by looking at what GetLastError returns.
2012-12-29 19:47:39 +02:00
Eli Zaretskii
c1fea2c0d2 Fix return values of set-file-acl and set-file-selinux-context when ENOTSUP.
Fixes: debbugs:13298
2012-12-29 19:02:34 +02:00
Andreas Schwab
39a035e8aa Indent 2012-12-29 16:28:42 +01:00
Andreas Schwab
3748b103ab Fix changelog 2012-12-29 16:16:37 +01:00
Eli Zaretskii
7e56b10316 Fix last commit.
lisp/files.el (basic-save-buffer): If set-file-extended-attributes
 fails, fall back on set-file-modes.

Fixes: debbugs:13298
2012-12-29 16:58:41 +02:00
Eli Zaretskii
ccad023bc3 Fix bug #13298 with failed backups by falling back on set-file-modes.
src/fileio.c (Fset_file_selinux_context, Fset_file_acl): Return t if
 file's SELinux context or ACLs successfully set, nil otherwise.

 lisp/files.el (backup-buffer-copy, basic-save-buffer-2): If
 set-file-extended-attributes fails, fall back on set-file-modes
 instead of signaling an error.

 doc/lispref/files.texi (Changing Files): Document the return values of
 set-file-selinux-context and set-file-acl.
2012-12-29 16:32:36 +02:00
Fabián Ezequiel Gallina
ccb1c17e8b * progmodes/python.el: Support other commands triggering
python-indent-line so indentation cycling continues to work.
(python-indent-trigger-commands): New defcustom.
(python-indent-line): Use it.
2012-12-29 09:57:49 -03:00
Fabián Ezequiel Gallina
16768034b2 * progmodes/python.el (python-shell-send-region): Add blank lines
for non sent code so backtraces remain correct.
2012-12-29 09:33:33 -03:00
Chong Yidong
3c94d7a636 * emacs-lisp/package.el (package-untar-buffer): Improve integrity check for tarball contents. 2012-12-29 19:06:10 +08:00
Fabián Ezequiel Gallina
66164d2f17 * progmodes/python.el: Remove cl dependency.
(python-syntax-count-quotes): Replace incf call.
(python-fill-string): Replace setf call.
2012-12-29 08:04:55 -03:00
Matt Fidler
af39894ab4 * emacs-lisp/package.el (package-untar-buffer): Handle problematic tarfile content listings.
Fixes: debbugs:13136
2012-12-29 18:26:14 +08:00
Eli Zaretskii
e7ae8039c3 More cleanup in handling subprocess exiting on MS-Windows.
src/w32proc.c (reader_thread): Avoid passing NULL handles to
 SetEvent and WaitForSingleObject.
2012-12-29 12:09:49 +02:00
Fabián Ezequiel Gallina
d5b1b1aa9c Small fix for python.el NEWS 2012-12-29 06:26:58 -03:00
Eli Zaretskii
d6cae7321e More improvements in 'struct glyph' comments. 2012-12-29 11:24:13 +02:00
Mark Lillibridge
bb709253f3 Fix bug #9521 with forwarding MIME messages in Rmail.
lisp/mail/rmailmm.el (rmail-insert-mime-forwarded-message): Insert
 the undecoded text of the message being forwarded.
2012-12-29 10:50:27 +02:00
Eli Zaretskii
151d90884b Fix bug #13292 with use of @var in @def.. commands in ELisp manual.
doc/lispref/functions.texi (Declare Form):
 doc/lispref/intro.texi (A Sample Function Description):
 doc/lispref/syntax.texi (Syntax Table Internals, Syntax Table Functions):
 doc/lispref/variables.texi (Using Lexical Binding): Don't use @var or CAPS
 in @def.. commands.
2012-12-29 10:23:21 +02:00
Michael Albinus
3ee24a3b32 * net/tramp-sh.el (tramp-set-file-uid-gid): Convert UID and GID to
integers, if they are real numbers.  (Bug#13282)
2012-12-29 00:09:13 -08:00
Glenn Morris
33cb20438f A few more NEWS tweaks 2012-12-29 00:08:17 -08:00
Glenn Morris
6bc66c10a8 More NEWS copyedits, and some reordering 2012-12-29 00:07:49 -08:00
Glenn Morris
823b2fb62d NEWS copyedits 2012-12-29 00:07:02 -08:00
Glenn Morris
2f94038415 Remove +++/--- markup from NEWS 2012-12-29 00:06:28 -08:00
Lars Ingebrigtsen
af9bf0ca60 Backport gnus-msg fix from trunk
* lisp/gnus/gnus-msg.el (gnus-summary-resend-message):
Don't bug out on non-string posting styles.

Fixes: debbugs:13285
2012-12-29 00:05:17 -08:00