1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

94326 commits

Author SHA1 Message Date
Stefan Monnier
9ae0c31028 Provide byte-compiler warnings when set-default a read-only var.
* emacs-lisp/bytecomp.el (byte-compile-set-default): New function.
(byte-compile-setq-default): Optimize for the
single-var case and don't call byte-compile-form in this case to avoid
inf-loop with byte-compile-set-default.
2010-04-23 12:26:11 -04:00
Stefan Monnier
bd486b039f * mm-util.el (mm-find-buffer-file-coding-system):
* yenc.el (yenc-decode-region): Don't let-bind a read-only variable.
2010-04-23 12:15:51 -04:00
Stefan Monnier
3b548e1b3a * progmodes/compile.el: (compilation-start): Abbreviate default directory. 2010-04-23 11:59:32 -04:00
Stefan Monnier
ff5dec5cd1 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style. 2010-04-23 11:50:48 -04:00
Eli Zaretskii
706a0137ff xdisp.c (pop_it): Fix last change. 2010-04-23 18:24:39 +03:00
Eli Zaretskii
f1bbc65578 Support `display' text properties and overlay strings in bidi buffers.
xdisp.c (pop_it): When the stack is popped after displaying
 from a string, bidi-iterate to exit from the text portion covered
 by the `display' property or overlay.  (Bug#5988, bug#5920)
2010-04-23 18:09:11 +03:00
Eli Zaretskii
8785b8887a Support `display' text properties and overlays.
xdisp.c (pop_it): When the stack is popped after displaying
 from a string, bidi-iterate to exit from the text portion covered
 by the `display' property or overlay.  (Bug#5988, bug#5920)
2010-04-23 18:05:23 +03:00
Michael Albinus
a5bee597fb * etc/NEWS: Tramp supports SELinux. 2010-04-23 16:19:44 +02:00
Michael Albinus
632c54783a Implement SELINUX backends.
* net/tramp.el (tramp-file-name-handler-alist): Add
`file-selinux-context' and `set-file-selinux-context'.
(tramp-handle-file-selinux-context)
(tramp-handle-set-file-selinux-context): New defuns.
(tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle
PRESERVE-SELINUX-CONTEXT.

* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
`file-selinux-context' and `set-file-selinux-context'.
(tramp-gvfs-handle-file-selinux-context)
(tramp-gvfs-handle-set-file-selinux-context): New defuns.
(tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT.

* net/ange-ftp.el (ange-ftp-copy-file):
* net/tramp-fish.el (tramp-fish-handle-copy-file):
* net/tramp-imap.el (tramp-imap-handle-copy-file):
* net/tramp-smb.el (tramp-smb-handle-copy-file): Add
PRESERVE-SELINUX-CONTEXT.
2010-04-23 16:12:05 +02:00
Dan Nicolaescu
8e324eb6e0 (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
(LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
2010-04-23 02:06:43 -07:00
Dan Nicolaescu
809fcabaac * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
* s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
2010-04-23 00:37:42 -07:00
Dan Nicolaescu
ed7103805c Simplify STARTFILES definition.
* s/hpux10-20.h (START_FILES): Explicitly define here instead of
relying on Makefile.in to define it.
* s/cygwin.h (START_FILES): Likewise.
* Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
2010-04-23 00:21:18 -07:00
Dan Nicolaescu
feeb1604f5 Clean up Solaris code.
* s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
(LIB_MOTIF): Remove, configure takes care of this.
(NOT_USING_MOTIF): Remove, unused.
* xrdb.c: Remove #if 0-ed #include.
(SYSV): Remove conditional for old SysV.
* sysdep.c (closedir): Remove conditional code for Solaris,
Solaris has closedir.
2010-04-23 00:00:38 -07:00
Glenn Morris
d8004abee4 * etc/NEWS: More SELinux details and some minor fixes. 2010-04-22 22:43:48 -07:00
Glenn Morris
e5d1fb104b ChangeLog fixes. 2010-04-22 22:40:33 -07:00
Michael Albinus
4a641642f1 Restore 0644 file permissions, which were changed accidently. 2010-04-23 04:46:53 +02:00
Dan Nicolaescu
cd32c34824 Regenerate configure. 2010-04-22 13:32:43 -07:00
Jan Djärv
a0d0b56337 Fix Bug#6001.
* xsettings.c (read_and_apply_settings): Check if current_font is
  NULL before strcmp (Bug#6001).
2010-04-22 19:23:18 +02:00
Dan Nicolaescu
4e7f249cba * configure.in (REAL_CFLAGS, CFLAGS): Restore -g for gcc. 2010-04-22 09:37:58 -07:00
Michael Albinus
a94d821ff7 Synchronize with Tramp repository.
* net/tramp.el (with-connection-property, tramp-completion-mode-p)
(tramp-action-process-alive, tramp-action-out-of-band)
(tramp-check-for-regexp, tramp-file-name-p, tramp-equal-remote)
(tramp-exists-file-name-handler): Fix docstring.
(with-progress-reporter): New defmacro.
(tramp-do-copy-or-rename-file, tramp-handle-dired-compress-file)
(tramp-maybe-open-connection): Use it.
2010-04-22 14:07:37 +02:00
Michael Albinus
a92375d91a Detect ssh 'ControlMaster' argument automatically in some cases.
* net/tramp.el (tramp-detect-ssh-controlmaster): New defun.
(tramp-default-method): Use it.
2010-04-22 13:21:39 +02:00
Michael Albinus
25f14cdb5a * net/tramp.el (tramp-handle-copy-file): Add new optional
parameter `preserve-selinux-context'.
(tramp-file-name-for-operation): Add `set-file-selinux-context'.
2010-04-22 11:15:27 +02:00
Katsumi Yamaoka
731533fdb6 (message-generate-headers): Record insertion of optional headers as well.
Otherwise the check to prevent repeated insertion of optional headers
is a no-op.  By Andreas Seltenreich <seltenreich@gmx.de>.
2010-04-22 08:24:25 +00:00
Michael Albinus
489fe4c2ea * net/tramp.el(tramp-completion-handle-file-name-all-completions):
Ensure, that non remote files are still checked.  Oops.
2010-04-22 06:30:16 +02:00
Miles Bader
cdbce48ee4 Update ChangeLog 2010-04-22 09:15:20 +09:00
Miles Bader
8732a4e957 Update configure 2010-04-22 09:10:43 +09:00
Miles Bader
567c757d42 get rid of "unix" pre-defined macro when preprocessing Makefile 2010-04-22 09:10:30 +09:00
Andreas Schwab
bf3126f629 Avoid non-portable shell command negation
* configure.in: Revert last change.
2010-04-21 23:44:48 +02:00
Michael Albinus
acd1f317f3 Fix Bug#5840.
* icomplete.el (icomplete-completions): Use `non-essential'.

* net/tramp.el (tramp-connectable-p): New defun.
(tramp-handle-expand-file-name)
(tramp-completion-handle-file-name-all-completions)
(tramp-completion-handle-file-name-completion): Use it.
2010-04-21 21:48:42 +02:00
Dan Nicolaescu
56bae7c7b7 Clean up HP-UX files.
* m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
(DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
(LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
* s/hpux10-20.h: ... to the only user, here.
2010-04-21 12:32:54 -07:00
Jan Djärv
31a01b9045 * xsettings.c: Move misplaced HAVE_GCONF 2010-04-21 20:25:13 +02:00
Eli Zaretskii
372b7a959d Fix bug #5992.
bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
 use buffer-local values of paragraph-start and paragraph-separate.
 <paragraph_start_re, paragraph_separate_re>: Rename from
 fallback_paragraph_start_re and fallback_paragraph_separate_re.
2010-04-21 20:59:39 +03:00
Stefan Monnier
62c5b459af (lisp-completion-at-point): Try and handle errors. 2010-04-21 13:53:03 -04:00
Jan Djärv
e765bf582c configure.in: Change "if test ! -f" to "if ! test -f".
Regenerate configure.
2010-04-21 18:41:29 +02:00
Jan Djärv
20fe03ad85 Document tool-bar-style 2010-04-21 18:25:15 +02:00
Jan Djärv
f904c0f938 Gtk tool bars can be text, icons with text or just icons.
* xsettings.c: Qmonospace_font_name, Qtool_bar_style and
current_tool_bar_style are new.
(store_config_changed_event): Rename from store_font_changed_event.
(XSETTINGS_TOOL_BAR_STYLE): New define.
(SEEN_FONT, SEEN_TB_STYLE): New enum values.
(struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
HAVE_XFT.
(something_changedCB): store_font_changed_event is now
store_config_changed_event
(parse_settings): Rename from parse_xft_settings.  Read
non-xft xsettings outside #ifdef HAVE_XFT.
(read_settings): Renamed from read_xft_settings.
(apply_xft_settings): Take current settings as parameter.  Do not
call read_(xft)_settings.
(read_and_apply_settings): New function.
(xft_settings_event): Do non-xft stuff out of HAVE_XFT.  Call
read_and_apply_settings if there are settings to be read.
(init_xsettings): Renamed from init_xfd_settings.
Call read_and_apply_settings unconditionally.
(xsettings_initialize): Call init_xsettings.
(Ftool_bar_get_system_style): New function.
(syms_of_xsettings): Define Qmonospace_font_name and
Qtool_bar_style.  Initialize current_tool_bar_style to nil.
defsubr Stool_bar_get_system_style. Fprovide on
dynamic-setting.

* xsettings.h (Ftool_bar_get_system_style): Declare.

* xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
Qtext, Qboth, Qboth_horiz are new.
(syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
Vtool_bar_style, tool_bar_max_label_size.

* lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.

* keyboard.c: QClabel is new.
(parse_tool_bar_item): Take out QClabel from tool bar items.
Try to construct a label if ther is no QClabel.
(syms_of_keyboard): Intern :label as QClabel.

* dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
(Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
New.

* Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
dynamic-setting.el.

* gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
(xg_make_tool_item, xg_show_toolbar_item): New function.
(update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
Call xg_make_tool_item to make a tool bar item.
Call xg_show_toolbar_item.  Use wtoolbar instead of x->toolbar_widget.

* xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
into account for toolbars.

* vc-dir.el (vc-dir-tool-bar-map): Add :label on some tool bar items.

* tool-bar.el (tool-bar-setup): Add :label on some tool bar items.

* loadup.el: Load dynamic-setting.el if feature dynamic-setting
is present.

* info.el (info-tool-bar-map): Add labels.

* cus-start.el (all): Add tool-bar-style and tool-bar-max-label-size.

* cus-edit.el (custom-commands): Add labels for tool bar.
(custom-buffer-create-internal, Custom-mode): Adjust for
labels in custom-commands.

* dynamic-setting.el: Renamed from font-setting.el.
2010-04-20 20:52:07 +02:00
Jan Djärv
c632dfda11 Declarations before code (Bug#5993).
* data.c (make_blv): Declarations before code (Bug#5993).

* xlwmenu.c (expose_cb):
* lwlib-Xaw.c (fill_xft_data): Declarations before code (Bug#5993).
2010-04-21 18:13:55 +02:00
Leo Liu
c5cbeb128e Added C-o keybinding to toggle use of virtual buffers
* ido.el (ido-init-completion-maps): For ido-switch-buffer, C-o
toggles the use of virtual buffers.
(ido-buffer-internal): Guard `ido-use-virtual-buffers' global
value.  
(ido-toggle-virtual-buffers): New function.
2010-04-21 07:00:58 -04:00
Dan Nicolaescu
b6c73ee227 Remove NOMULTIPLEJOBS. 2010-04-20 23:49:28 -07:00
Glenn Morris
0dce7acd73 * src/ChangeLog: Remove merged duplicate entry. 2010-04-20 23:40:18 -07:00
Glenn Morris
10efe30244 Remove some more cpp in favor of autoconf.
* configure.in (LIBSELINUX_LIBS): Always substitute in Makefiles.
(GTK_OBJ, DBUS_OBJ, LIBXSM, XMENU_OBJ, XOBJ): New output variables.

* src/Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
Define using autoconf, not cpp.
(LIBXSM): New variable, set by autoconf.
(LIBXT): Use $LIBXSM.
2010-04-20 23:35:35 -07:00
Dan Nicolaescu
3ec759e79e Remove NOMULTIPLEJOBS, unused.
* s/template.h (NOMULTIPLEJOBS):
* s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2010-04-20 22:47:56 -07:00
Dan Nicolaescu
4285ac5ac0 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
* s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
* s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
detects -znocombreloc and passes it to the linker
* s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2010-04-20 22:33:24 -07:00
Juanma Barranquero
fcc9374695 tetris.el: Use `define-derived-mode'; fix window selection; doc fixes.
* play/tetris.el (tetris, tetris-update-speed-function)
  (tetris-tty-colors, tetris-x-colors, tetris-move-bottom)
  (tetris-move-left, tetris-move-right, tetris-rotate-prev)
  (tetris-rotate-next, tetris-end-game, tetris-start-game)
  (tetris-pause-game): Fix typos in docstrings.
  (tetris-mode-map, tetris-null-map): Move initialization into declaration.
  (tetris-mode): Define with `define-derived-mode';
  set show-trailing-whitespace to nil.
  (tetris): Prefer window already displaying the "*Tetris*" buffer.
2010-04-21 05:53:42 +02:00
Glenn Morris
3dad0889f5 Regenerate configure. 2010-04-20 20:41:01 -07:00
Glenn Morris
2807228d2c Remove LIBSELINUX_LIBS need for cpp in Makefiles.
* configure.in (LIBSELINUX_LIBS): Always substitute in Makefiles.
* src/Makefile.in (LIBSELINUX_LIBS): Remove containing #ifdef.
2010-04-20 20:33:04 -07:00
Glenn Morris
022c122ac7 Regenerate configure, src/config.in. 2010-04-20 20:11:03 -07:00
Glenn Morris
b7d65a5f0a Doc updates for SELinux support.
* ack.texi, emacs.texi (Acknowledgments): Add SELinux support.

* etc/NEWS: Mention SELinux support.
2010-04-20 20:08:21 -07:00
Karel Klíc
574c05e219 Add SELinux support.
* configure.in: New option: --with(out)-selinux, on by default.
Set HAVE_LIBSELINUX if we find libselinux, and substitute
LIBSELINUX_LIBS in Makefiles.

* src/Makefile.in (LIBSELINUX_LIBS): New.
(LIBES): Add $LIBSELINUX_LIBS.
* src/eval.c, lisp.h (call7): New function.
* src/fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
(Ffile_selinux_context, Fset_file_selinux_context):
New functions.
(Fcopy_file): New parameter preserve-selinux-context.
(Frename_file): Preserve selinux context when renaming by copy-file.

* lisp/files.el (backup-buffer): Handle SELinux context, and return it
if a backup was made by renaming.
(backup-buffer-copy): Set SELinux context to the target file.
(basic-save-buffer): Set SELinux context of the newly written file.
(basic-save-buffer-1): Now it also returns any SELinux context.
(basic-save-buffer-2): Set SELinux context of the newly created file,
and return it.
* lisp/net/tramp.el (tramp-file-name-for-operation):
Add file-selinux-context.
2010-04-20 20:02:58 -07:00
Stefan Monnier
a1d830c700 vc-bzr.el (vc-bzr-checkin): Undo spurious `async' arg change. 2010-04-20 22:10:50 -04:00