1. 21 Apr, 2010 5 commits
    • Karel Klíc's avatar
      Add SELinux support. · 574c05e2
      Karel Klíc authored
      * 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.
      * 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.
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      Make the log-edit comments use RFC822 format throughout. · e97a42c1
      Stefan Monnier authored
      * vc.el (vc-checkin, vc-modify-change-comment):
      Adjust to new vc-start/finish-logentry.
      (vc-find-conflicted-file): New command.
      (vc-transfer-file): Adjust to new vc-checkin.
      (vc-next-action): Improve scoping.
      * vc-hg.el (vc-hg-log-edit-mode): Remove.
      (vc-hg-checkin): Remove extra arg.  Use log-edit-extract-headers.
      * vc-git.el (vc-git-log-edit-mode): Remove.
      (vc-git-checkin): Remove extra arg.  Use log-edit-extract-headers.
      (vc-git-commits-coding-system): Rename from git-commits-coding-system.
      * vc-dispatcher.el (vc-log-edit): Shorten names for log-edit-show-files.
      (vc-start-logentry): Remove argument `extra'.
      (vc-finish-logentry): Remove extra args.
      * vc-bzr.el (vc-bzr-log-edit-mode): Remove.
      (vc-bzr-checkin): Remove extra arg.  Use log-edit-extract-headers.
      (vc-bzr-conflicted-files): New function.
      * log-edit.el (log-edit-extra-flags)
      (log-edit-before-checkin-process): Remove.
      (log-edit-summary, log-edit-header, log-edit-unknown-header): New faces.
      (log-edit-headers-alist): New var.
      (log-edit-header-contents-regexp): New const.
      (log-edit-match-to-eoh): New function.
      (log-edit-font-lock-keywords): Use them.
      (log-edit): Insert a "Summary:" header as default.
      (log-edit-mode): Mark font-lock rules as case-insensitive.
      (log-edit-done): Cleanup headers.
      (log-view-process-buffer): Remove.
      (log-edit-extract-headers): New function to replace it.
    • Juanma Barranquero's avatar
      Fix typos and spacing. · 50426a04
      Juanma Barranquero authored
    • Juanma Barranquero's avatar
      Don't depend on cm.c or termcap.c on Windows, use stubs. · 91eac4bb
      Juanma Barranquero authored
      * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
        ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
      * w32console.c (current_tty, cost): New vars; lifted from cm.c.
        (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
        (sys_tputs, sys_tgetstr): New stubs.
      * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
        (tputs, tgetstr): New; define to sys_*.
  2. 20 Apr, 2010 14 commits
    • Juanma Barranquero's avatar
    • Stefan Monnier's avatar
      Warn rather than error when making a local var inside a let. · 8b1e1112
      Stefan Monnier authored
      * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
      Just signal a warning rather than an error when inside a let.
      (Fmake_variable_frame_local): Add the same test.
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * buffer.h (struct buffer): Remove unused var `direction_reversed'. · b4bf28b7
      Stefan Monnier authored
      * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
      * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      (lisp-completion-at-point): Complete around point. · 6e610c72
      Stefan Monnier authored
      I.e. include text after point in the completion region.
      Also, return nil when we're not after/in a symbol.
    • Chong Yidong's avatar
    • Stefan Monnier's avatar
    • Eli Zaretskii's avatar
      Implement GUI display of R2L lines, fix TTY display of R2L lines. · 283ccc18
      Eli Zaretskii authored
       xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
       (set_cursor_from_row) <cursor_x>: Remove unused variable.  Fix
       off-by-one error in computing x at end of text in the row.
       (append_stretch_glyph): In reversed row, prepend the glyph rather
       than append it.  Set resolved_level and bidi_type of the glyph.
       (extend_face_to_end_of_line): If the row is reversed, prepend a
       stretch glyph whose width is such that the rightmost glyph will be
       drawn at the right margin of the window.  Fix off-by-one error on
       TTY frames in testing whether a line needs face extension.  Fix
       face extension at ZV.  If this is the last glyph row, use
       DEFAULT_FACE_ID, to avoid painting the rest of the window with the
       region face.
       (set_cursor_from_row, display_line): Use
       MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
       (next_element_from_buffer): Don't call bidi_paragraph_init if we
       are at ZV.  Fixes a crash when reseated to ZV by
       (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
       which happens with R2L glyph rows.  Fixes a crash when inserting a
       character at end of an R2L line.
       (set_cursor_from_row): Don't be fooled by truncated rows: don't
       treat them as having zero-width characters.  Improve comments.
       Don't reverse pos_before and pos_after for reversed glyph rows.
       Set cursor.x to negative value when the cursor might be on the
       left fringe.
       (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
       left fringe, not the right one.
       (notice_overwritten_cursor, draw_phys_cursor_glyph)
       (erase_phys_cursor): For reversed cursor_row, support cursor on
       the left fringe.
       fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
       of continuation indicators on the fringes.
       (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
       left fringe.
       w32term.c (w32_draw_window_cursor): For reversed glyph rows,
       draw cursor on the left fringe.
       xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
       cursor on the left fringe.
       dispnew.c (update_text_area): Handle reversed desired rows when
       the cursor is on the left fringe.
       (set_window_cursor_after_update): Limit cursor's hpos by -1 from
       below, not by 0, for when the cursor is on the left fringe.
       xdisp.c (unproduce_glyphs): New function.
       (display_line): Use it when produced glyphs are discarded from R2L
       glyph rows.
       (append_composite_glyph): In R2L rows, prepend the glyph rather
       than appending it.
        term.c (append_composite_glyph): In R2L rows, prepend the glyph
       rather than append it.  Set up the resolved_level and bidi_type
       attributes of the appended glyph.
       (produce_special_glyphs): Mirror the backslash continuation
       character in R2L lines.
    • Eli Zaretskii's avatar
      Fix R2L paragraph display on TTY. · 93d68d0c
      Eli Zaretskii authored
       xdisp.c (unproduce_glyphs): New function.
       (display_line): Use it when produced glyphs are discarded from R2L
       glyph rows.
       (append_composite_glyph): In R2L rows, prepend the glyph rather
       than appending it.
       term.c (append_composite_glyph): In R2L rows, prepend the glyph
       rather than append it.  Set up the resolved_level and bidi_type
       attributes of the appended glyph.
    • Jan Djärv's avatar
    • Kenichi Handa's avatar
      merge trunk · 1f2f0b28
      Kenichi Handa authored
    • Kenichi Handa's avatar
      charset.c (char_charset): Consider Vcharset_non_preferred_head only when the... · c0be27fd
      Kenichi Handa authored
      charset.c (char_charset): Consider Vcharset_non_preferred_head only when the arg CHARSET_LIST is nil.
    • Stefan Monnier's avatar
      Make variable forwarding explicit rather the using special values. · ce5b453a
      Stefan Monnier authored
      Basically, this makes the structure of buffer-local values and object
      forwarding explicit in the type of Lisp_Symbols rather than use
      special Lisp_Objects for that.  This tends to lead to slightly more
      verbose code, but is more C-like, simpler, and makes it easier to make
      sure we handled all cases, among other things by letting the compiler
      help us check it.
      * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
      Removing forwarding objects.
      (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
      (struct Lisp_Symbol): Make the various forms of variable-forwarding
      explicit rather than hiding them inside Lisp_Object "values".
      (XFWDTYPE): New macro.
      (XBUFFER_LOCAL_VALUE): Remove.
      (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
      (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
      Remove the Lisp_Misc_* header.
      (struct Lisp_Buffer_Local_Value): Redefine.
      (struct Lisp_Misc_Any): Add filler to get the right size.
      (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
      (DEFVAR_KBOARD): Allocate a forwarding object.
      * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
      (let_shadows_global_binding_p): New function.
      (union Lisp_Val_Fwd): New type.
      (make_blv): New function.
      (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
      (store_symval_forwarding, swap_in_global_binding, Fboundp)
      (swap_in_symval_forwarding, find_symbol_value, Fset)
      (let_shadows_buffer_binding_p, set_internal, default_value)
      (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
      (Fkill_local_variable, Fmake_variable_frame_local)
      (Flocal_variable_p, Flocal_variable_if_set_p)
      * xdisp.c (select_frame_for_redisplay):
      * lread.c (Fintern, Funintern, init_obarray, defvar_int)
      (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
      * frame.c (store_frame_param):
      * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
      * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
      value structure.
      * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
      (clone_per_buffer_values): Only adjust markers into the current buffer.
      (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
      (Fbuffer_local_value, set_buffer_internal_1)
      Adapt to the new symbol value structure.
      (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
      (defvar_per_buffer): Take a new arg for the fwd object.
      (buffer_lisp_local_variables): Return a proper alist (different fix
      for bug#4138).
      * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
      (Fgarbage_collect): Don't handle buffer_defaults specially.
      (mark_object): Handle new symbol value structure rather than the old
      special Lisp_Misc_* objects.
      (gc_sweep) <symbols>: Free also the buffer-local-value objects.
      * term.c (set_tty_color_mode):
      * bidi.c (bidi_initialize): Don't access the ->value field directly.
      * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
      a buffer_local_flags.
      * print.c (print_object): Get rid of impossible forwarding objects.
  3. 19 Apr, 2010 13 commits
  4. 18 Apr, 2010 8 commits
    • Juri Linkov's avatar
      Test for special mode-class in view-buffer instead of view-file (bug#5513). · fd5c9dfa
      Juri Linkov authored
      * view.el (view-file, view-buffer): Move test for special mode-class
      from view-file to view-buffer.
      * tar-mode.el (tar-extract): Turn if's into one cond
      like in arc-mode.el.
    • Katsumi Yamaoka's avatar
      Synch with Gnus trunk: · bff3818b
      Katsumi Yamaoka authored
      2010-04-17  Teodor Zlatanov  <tzz@lifelogs.com>
       * gnus.texi (Gnus Versions, Oort Gnus): Mention the Git repo instead of
       the CVS repo.  Put the Git repo in the news section.
       * gnus-coding.texi (Gnus Maintainance Guide): Fixed title typo.
       Removed some mentions of CVS.  Mention the new Git repo.
      2010-04-17  Teodor Zlatanov  <tzz@lifelogs.com>
       * smime.el: Don't mention CVS.
       * nnrss.el (nnrss-fetch): Don't mention CVS.
       * nnir.el: Don't mention CVS.
    • Juri Linkov's avatar
      Add 7z archive format support (bug#5475). · b3671a51
      Juri Linkov authored
      * arc-mode.el (archive-zip-extract): Try to find 7z executable.
      (archive-7z-extract): New defcustom.
      (archive-find-type): Add magic string for 7z.
      (archive-extract-by-stdout): Add new optional arg `stderr-file'.
      If `stderr-file' is non-nil, use `(t stderr-file)' for the
      `buffer' arg of `call-process'.
      (archive-zip-extract): Check `archive-zip-extract' for "7z" and
      call the function `archive-7z-extract' with the variable
      `archive-7z-extract' let-bound to `archive-zip-extract'.
      (archive-7z-summarize, archive-7z-extract): New functions.
      * international/mule.el (auto-coding-alist):
      * files.el (auto-mode-alist): Add 7z file extension.
    • Chong Yidong's avatar
      * programs.texi (Semantic): New node. · a42dbee1
      Chong Yidong authored
      * maintaining.texi (EDE): New node.
      * emacs.texi: Update node listing.
      * misc.texi (Gnus): Use the `C-h i' keybinding for info.
    • Stefan Monnier's avatar
      Hash-cons pure data. · e9515805
      Stefan Monnier authored
      * alloc.c (Fpurecopy): Hash-cons if requested.
      (syms_of_alloc): Update purify-flag docstring.
      * loadup.el: Setup hash-cons for pure data.
    • Stefan Monnier's avatar
      Fix duplicate entries in cedet's loaddefs.el files. · f8ea0098
      Stefan Monnier authored
      * emacs-lisp/autoload.el (autoload-file-load-name): Be more clever.
      Should make most file-local generated-autoload-file unnecessary.
      (print-readably): Silence warnings.
      (autoload-find-destination): Take load-name as an arg to make sure
      it's the same as the one that will be in the file.
      (autoload-generate-file-autoloads): Adjust to above changes.
      Try to make the dataflow a bit simpler.
    • Chong Yidong's avatar
      Bugfix for ede-proj-makefile-insert-variables. · 137327ef
      Chong Yidong authored
      * cedet/ede/pmake.el (ede-proj-makefile-insert-variables): Don't
      destroy list before using it.
    • Stefan Monnier's avatar