1. 16 Nov, 2010 8 commits
    • Chong Yidong's avatar
    • Chong Yidong's avatar
    • Stefan Monnier's avatar
      * lisp/progmodes/octave-mod.el: Rely on elecric-*-modes. · 03f70355
      Stefan Monnier authored
      (octave-mode-map): Don't bind ;, SPC, and LF.
      (octave-auto-indent, octave-auto-newline): Remove.
      (electric-layout-rules): Declare.
      (octave-mode): Set electric-layout-rules.
      (octave-indent-new-comment-line): Use reindent-then-newline-and-indent.
      (octave-reindent-then-newline-and-indent, octave-electric-semi)
      (octave-electric-space): Remove.
    • Stefan Monnier's avatar
      * lisp/electric.el (electric-layout-mode): New minor mode. · 7100ff98
      Stefan Monnier authored
      (electric--after-char-pos): New function.
      (electric-indent-post-self-insert-function): Use it.
      (electric-layout-rules): New var.
      (electric-layout-post-self-insert-function): New function.
      (electric-indent-mode): Make them interact better.
    • Chong Yidong's avatar
      Cleanup of window coordinate positioning code. · 77cd1a62
      Chong Yidong authored
      Now, text area click input events measure Y from the top of the text
      area, excluding the header line if any.
      * src/dispnew.c (buffer_posn_from_coords): Assume that X counts from
      the start of the text area.
      * src/keyboard.c (make_lispy_position): For text area clicks, record Y
      pixel position relative to the text area, excluding header line.
      Also change X and Y to Lisp_Objects, not pointers; don't return
      coordinate values via pointers.  Pass ON_TEXT_AREA coordinate to
      buffer_posn_from_coords counting from the start of the text area.
      (Fposn_at_x_y, make_lispy_event): Callers changed.
      * src/w32term.c (w32_read_socket):
      * src/msdos.c (dos_rawgetc):
      * src/xterm.c (handle_one_xevent): Likewise.
      * src/window.c (coordinates_in_window): Change X and Y to ints rather
      than pointers; don't return coordinates via pointers.
      (struct check_window_data): Change X and Y from pointers to ints.
      (window_from_coordinates): Remove args WX and WY; don't return
      coordinates via pointers.
      (Fcoordinates_in_window_p, window_from_coordinates):
      (check_window_containing, Fwindow_at): Callers changed.
      (window_relative_x_coord): New function.
      * src/window.h (window_from_coordinates, window_relative_x_coord):
      Update prototypes.
      * src/xdisp.c (remember_mouse_glyph): Change window_from_coordinates
      call.  Use window_relative_x_coord.
      (note_mouse_highlight): Change window_from_coordinates call.
    • Lars Magne Ingebrigtsen's avatar
    • Dan Nicolaescu's avatar
      Convert definitions to standard C. · d2762c86
      Dan Nicolaescu authored
      * src/strftime.c (LOCALE_PARAM_DECL): Update for standard C.
      (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
      (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
      Convert definitions to standard C.
      * src/regex.c: Do not include <stdlib.h>, config.h does it.
      Include unistd.h.
      (xrealloc, init_syntax_once, re_match, regcomp, regexec)
      (regerror, regfree): Convert definitions to standard C.
      * src/mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
      (__mktime_internal): Convert definitions to standard C.
    • Lars Magne Ingebrigtsen's avatar
      Allow gnus-html to register image displayer callbacks. · 0073e031
      Lars Magne Ingebrigtsen authored
      gnus-html.el (gnus-html-wash-images): Register a displayer.
      gnus-util.el (gnus-find-text-property-region): Return markers.
  2. 15 Nov, 2010 15 commits
  3. 14 Nov, 2010 6 commits
  4. 13 Nov, 2010 11 commits
    • Ken Manheimer's avatar
      (allout-keybindings), (allout-bind-keys), (allout-keybindings-binding), · 1c9b9df0
      Ken Manheimer authored
      allout-prefixed-keybindings, allout-unprefixed-keybindings,
      allout-preempt-trailing-ctrl-h, allout-keybindings-list,
      allout-mode-map-adjustments, (allout-setup-mode-map):
      Establish allout-mode keymaps as user customizable settings, and also
      establish a customizable setting which regulates whether or not a trailing
      control-h is reserved for use with describe-prefix-bindings - and inihibit
      it by default, so that control-h *is* reserved for
      describe-prefix-bindings unless the user changes this setting.
      (allout-hotspot-key-handler): Distinguish more explicitly and accurately
      between modified and unmodified events, and handle modified events more
      (allout-substring-no-properties): Alias to use or provide version of
      (allout-solicit-alternate-bullet): Use 'allout-substring-no-properties'.
      (allout-next-single-char-property-change): Alias to use or provide version
      of 'next-single-char-property-change'.
      (allout-annotate-hidden), (allout-hide-by-annotation): Use 'allout-next-single-char-property-change'.
      (allout-select-safe-coding-system): Alias to use or provide version of
      (allout-toggle-subtree-encryption): Use 'allout-select-safe-coding-system'.
      (allout-set-buffer-multibyte): Alias to use or provide version of
      (allout-encrypt-string): Use 'allout-set-buffer-multibyte'.
      (allout-called-interactively-p): Macro for using the different versions of
      called-interactively-p identically, depending on the subroutine's argument
      (allout-back-to-current-heading), (allout-beginning-of-current-entry)
      - use '(interactive "p")' instead of '(called-interactively-p)'.
      (allout-init), (allout-ascend), (allout-end-of-level),
      (allout-previous-visible-heading), (allout-forward-current-level),
      (allout-backward-current-level), (allout-show-children)
      - use '(allout-called-interactively-p)' instead of '(called-interactively-p)'.
      (allout-before-change-handler): Exempt edits to the (overlaid) character
      after the allout outline bullet from edit confirmation prompt.
      (allout-add-resumptions): Ensure that it respects correct buffer for
      (allout-beginning-of-line): Use
      'allout-previous-single-char-property-change' alias for the sake of diverse
      (allout-end-of-line): Use 'allout-mark-active-p' to encapsulate respect
      for mark activity.
      substitute "???" for "XXX" for non-urgent comment remarks.
    • Dan Nicolaescu's avatar
    • Dan Nicolaescu's avatar
      Fix compilation on Solaris. · ff2e8052
      Dan Nicolaescu authored
      * src/sysdep.c: Do not #include <term.h>.
      (tputs): Add declaration, similar to what cm.c does.  (Bug#7178)
    • Dan Nicolaescu's avatar
    • Eli Zaretskii's avatar
    • Jan D's avatar
      Fix Atoms and Lisp_Object mixup and related bugs. · 933e29ff
      Jan D authored
      * src/xselect.c (x_send_client_event): Move CHECK_STRING ...
      (Fx_send_client_event): to here.
      * src/xterm.c (set_wm_state): Don't put Atom in cons, call
      make_fixnum_or_float on them first.
      (x_term_init): Initialize Xatom_net_supporting_wm_check and
      Xatom_net_supported correctly.
    • Martin Rudalics's avatar
    • Chong Yidong's avatar
      Fix background-color setting in initial frame (Bug#7373). · 0216b738
      Chong Yidong authored
      * lisp/frame.el (frame-notice-user-settings): Don't clobber other
      user-set parameters when calling face-set-after-frame-default in
      response to background-color parameter (Bug#7373).
    • Eli Zaretskii's avatar
      lisp/ChangeLog: Fix last log entry. · 4a9f985c
      Eli Zaretskii authored
    • Eli Zaretskii's avatar
      Fix and document display of glyphless characters. · 0eb025fb
      Eli Zaretskii authored
       src/xdisp.c (set_cursor_from_row): Fix cursor positioning on
       zero-width characters.
       (syms_of_xdisp) <glyphless-char-display>: Doc fix.
       src/.gdbinit (pgx): Adapt to latest changes in `struct glyph'.
       src/w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
       box before drawing the glyphs inside it.
       src/dispextern.h (enum glyphless_display_method): Rename
       users changed.
       src/term.c (append_glyphless_glyph, produce_glyphless_glyph): Fix
       (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
       whitespace in "[]", to simulate a box.  Don't use uninitialized
       variable `width'.
       lisp/international/characters.el (glyphless-char-display-control):
       Renamed from glyphless-char-control; all users changed.  Doc fix.
       Signal an error if display method is not one of the recognized
       doc/emacs/rmail.texi (Rmail Coding): Characters with no fonts are not
       necessarily displayed as empty boxes.
       doc/emacs/mule.texi (Language Environments, Fontsets): Characters with no
       fonts are not necessarily displayed as empty boxes.
       doc/emacs/display.texi (Text Display): Document display of glyphless
       doc/lispref/display.texi (Usual Display): Characters with no fonts are not
       necessarily displayed as empty boxes.
       etc/NEWS: Document display of glyphless characters.
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-line-beginning-position) · 6e060cee
      Michael Albinus authored
      (tramp-compat-line-end-position): Remove them.
      * net/tramp.el (tramp-parse-rhosts-group)
      (tramp-parse-shosts-group, tramp-parse-sconfig-group)
      (tramp-parse-hosts-group, tramp-parse-passwd-group)
      (tramp-parse-netrc-group, tramp-parse-putty-group)
      * net/tramp-cmds.el (tramp-append-tramp-buffers)
      * net/tramp-sh.el (tramp-do-file-attributes-with-ls)
      (tramp-sh-handle-expand-file-name, tramp-find-executable)
      (tramp-wait-for-output, tramp-send-command-and-read)
      * net/tramp-smb.el (tramp-smb-read-file-entry)
      (tramp-smb-get-cifs-capabilities): Use `point-at-eol'.
      * net/tramp-sh.el (tramp-sh-handle-insert-directory) Use
      (tramp-remote-coding-commands): Add an alternative using "base64
      -d -i".  This is needed for older base64 versions from GNU
      coreutils.  Reported by Klaus Reichl