1. 03 Jan, 2011 1 commit
  2. 26 Dec, 2010 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/rx.el: Make it a superset of sregex. · 723ee192
      Stefan Monnier authored
      (rx-constituents): Add `any => "."', mark `repeat' as taking any number
      of args, add `regex' alias.
      (rx-info): Add arg to distinguish head and standalone forms.
      (rx-check, rx-form): Pass the corresponding arg.
      (rx-**): Simplify.
      (rx-repeat): Make it work for any number of args.
      (rx-syntax): Make it accept syntax chars as is.
      * lisp/obsolete/sregex.el: Move from emacs-lisp/.
      * lisp/emacs-lisp/re-builder.el: Remove sregex support.
      * lisp/emacs-lisp/edebug.el (sregexq, rx): Remove redundant defs.
      723ee192
  3. 25 Dec, 2010 1 commit
    • Eli Zaretskii's avatar
      More fallout from fixing bug #7587. · 2e4ab211
      Eli Zaretskii authored
       src/xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
       the basic faces are supported.
       doc/lispref/modes.texi (Emulating Mode Line): Fix last change.
       etc/NEWS: Remove the entry about format-mode-line accepting only
       basic faces.
      2e4ab211
  4. 24 Dec, 2010 2 commits
  5. 20 Dec, 2010 2 commits
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      Implement tool-bar separators for non-GTK tool-bars. · 94975270
      Chong Yidong authored
      * lisp/tool-bar.el (tool-bar--image-expression): New function.
      (tool-bar-local-item, tool-bar--image-exp): Use it.
      (tool-bar-setup): Initialize tool-bar-separator-image-expression.
      Use :enable instead of :visible to avoid changing the tool-bar
      configuration unnecessarily.
      
      * src/keyboard.c (Vtool_bar_separator_image_expression): New variable.
      (parse_tool_bar_item): Use it to obtain image separators for
      displays not using native tool-bar separators.
      
      * src/xdisp.c (build_desired_tool_bar_string): Don't handle separators
      specially, since this is now done in parse_tool_bar_item.
      
      * lisp/info.el (info-tool-bar-map): Add separators.
      94975270
  6. 18 Dec, 2010 1 commit
    • Eli Zaretskii's avatar
      Fallout from fixing bug #7587. · 287e63bb
      Eli Zaretskii authored
       doc/lispref/modes.texi (Emulating Mode Line): Update documentation of
       format-mode-line according to changes that fixed bug #7587.
      
       etc/NEWS: Mention the incompatible change in format-mode-line wrt its
       FACE argument.
      287e63bb
  7. 17 Dec, 2010 1 commit
    • Chong Yidong's avatar
      Support for menu separators in the GTK tool-bar. · 4039c786
      Chong Yidong authored
      * src/gtkutil.c (XG_BIN_CHILD): New macro.
      (xg_get_menu_item_label, xg_update_menubar)
      (xg_update_menu_item, xg_tool_bar_menu_proxy)
      (xg_show_toolbar_item, update_frame_tool_bar): Use it.
      (separator_names, xg_separator_p): Move to keyboard.c.
      (create_menus, xg_update_submenu, update_frame_tool_bar): Use
      menu_separator_name_p.
      
      * src/keyboard.c (parse_tool_bar_item): Allow menu separators in
      tool-bar maps.
      (menu_separator_name_p): New function, from gtkutil.c.
      (separator_names): Move from gtkutil.c.
      
      * src/keyboard.h (menu_separator_name_p): Add prototype.
      
      * src/nsmenu.m (name_is_separator): Function deleted.
      (addItemWithWidgetValue): Use menu_separator_name_p.
      
      * src/w32menu.c (name_is_separator): Function deleted.
      (add_menu_item): Use menu_separator_name_p.
      4039c786
  8. 16 Dec, 2010 2 commits
  9. 15 Dec, 2010 1 commit
  10. 14 Dec, 2010 1 commit
  11. 06 Dec, 2010 1 commit
  12. 03 Dec, 2010 1 commit
  13. 24 Nov, 2010 1 commit
  14. 23 Nov, 2010 1 commit
  15. 21 Nov, 2010 3 commits
  16. 20 Nov, 2010 2 commits
    • Chong Yidong's avatar
      Document VC headers and other VC changes. · 1aaae3f3
      Chong Yidong authored
      * maintaining.texi (Version Control): Say "commit", not "check in".
      (Version Control Systems): Simplify descriptions.
      (VCS Merging, VCS Changesets, VCS Repositories): New nodes, split from
      VCS Concepts.
      (VC Mode Line): Update example.
      (Old Revisions): Document revert-buffer for vc-diff.
      (Log Buffer): Promote to a subsection.  Document header lines.
      
      * emacs.texi (Top): Update node listing.
      1aaae3f3
    • Chong Yidong's avatar
      Document some Emacs 23.3 changes in manuals. · ec8a6295
      Chong Yidong authored
      * doc/emacs/macos.texi (Mac / GNUstep Basics): Document
      ns-right-alternate-modifier.
      
      * doc/lispref/numbers.texi (Float Basics): Document float-e and float-pi.
      
      * doc/lispref/symbols.texi (Creating Symbols): Using unintern without an
      obarray arg is now obsolete.
      
      * doc/lispref/text.texi (Kill Functions, Kill Functions)
      (Low-Level Kill Ring, Low-Level Kill Ring): Remove obsolete
      YANK-HANDLER args.
      
      * doc/lispref/variables.texi (Defining Variables): Change "pi" example to
      "float-pi".
      ec8a6295
  17. 18 Nov, 2010 1 commit
  18. 17 Nov, 2010 1 commit
    • Chong Yidong's avatar
      Cleanup of window coordinate positioning code. · 9173a8fb
      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.
      9173a8fb
  19. 16 Nov, 2010 3 commits
    • Chong Yidong's avatar
    • 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.
      7100ff98
    • 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.
      77cd1a62
  20. 13 Nov, 2010 3 commits
    • Eli Zaretskii's avatar
    • 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
       GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.  All
       users changed.
       src/term.c (append_glyphless_glyph, produce_glyphless_glyph): Fix
       comments.
       (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
       symbols.
       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
       characters.
       doc/lispref/display.texi (Usual Display): Characters with no fonts are not
       necessarily displayed as empty boxes.
       etc/NEWS: Document display of glyphless characters.
      0eb025fb
    • Glenn Morris's avatar
      Document count-words-region. · ea4f7750
      Glenn Morris authored
      * doc/emacs/basic.texi (Position Info): Add M-x count-words-region.
      
      * doc/lispintro/emacs-lisp-intro.texi: Rename the `count-words-region' example,
      since there is now a standard command of that name.
      
      * etc/NEWS: Mention it.
      ea4f7750
  21. 12 Nov, 2010 1 commit
  22. 11 Nov, 2010 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/modula2.el: Use SMIE and skeleton. · cbf83ce9
      Stefan Monnier authored
      (m2-mode-syntax-table): (*..*) can be nested.
      Add //...\n.  Fix paren syntax.
      (m2-mode-map): Remove LF and TAB bindings.
      (m2-indent): Add safety property.
      (m2-smie-grammar): New var.
      (m2-smie-refine-colon, m2-smie-refine-of, m2-smie-backward-token)
      (m2-smie-forward-token, m2-smie-refine-semi, m2-smie-rules): New funs.
      (m2-mode): Use define-derived-mode.
      (m2-newline, m2-tab): Remove.
      (m2-begin, m2-case, m2-definition, m2-else, m2-for, m2-header)
      (m2-if, m2-loop, m2-module, m2-or, m2-procedure, m2-with, m2-record)
      (m2-stdio, m2-type, m2-until, m2-var, m2-while, m2-export)
      (m2-import): Use define-skeleton.
      * test/indent/modula2.mod: New file.
      cbf83ce9
  23. 08 Nov, 2010 1 commit
  24. 07 Nov, 2010 1 commit
  25. 05 Nov, 2010 1 commit
  26. 03 Nov, 2010 2 commits
  27. 01 Nov, 2010 2 commits
    • Chong Yidong's avatar
      etc/NEWS: Remove VC changes, since they are backported to 23.3. · 42d9cffa
      Chong Yidong authored
      Edit selection changes.
      42d9cffa
    • Chong Yidong's avatar
      Backport VC improvements from trunk. · 98cfec0d
      Chong Yidong authored
      * vc/log-edit.el (log-edit-rewrite-fixes): New var.
      (log-edit-author): New dynamic var.
      (log-edit-changelog-ours-p, log-edit-insert-changelog-entries):
      Use it to return the author if different from committer.
      (log-edit-insert-changelog): Use them to add Author: and Fixes headers.
      
      * vc/vc-hooks.el (vc-default-mode-line-string): Doc fix.
      
      * vc/vc.el (vc-deduce-backend): New fun.  Handle diff buffers.
      (vc-root-diff, vc-print-root-log, vc-log-incoming)
      (vc-log-outgoing): Use it.
      (vc-diff-internal): Set diff-vc-backend.
      
      * vc/diff-mode.el (diff-vc-backend): New var.
      
      * vc/vc.el (vc-diff-internal): Set `revert-buffer-function'
      buffer-locally to lambda that re-runs the vc diff command.
      (Bug#6447)
      
      * vc/log-view.el (log-view-mode-map): Bind revert-buffer.
      
      Make 'g' (AKA revert-buffer) rerun VC log, log-incoming and
      log-outgoing commands.
      * vc/vc.el (vc-log-internal-common): Add a new argument and use it
      to create a buffer local revert-buffer-function variable.
      (vc-print-log-internal, vc-log-incoming, vc-log-outgoing): Pass a
      revert-buffer-function lambda.
      
      Improve VC create/retrieve tag/branch.
      * vc.el (vc-create-tag): Do not read the directory name for VCs
      with repository revision granularity.  Adjust the tag/branch
      prompt.  Reset VC properties.
      (vc-retrieve-tag): Do not read the directory name for VCs
      with repository revision granularity.  Reset VC properties.
      
      Add optional support for resetting VC properties.
      * vc-dispatcher.el (vc-resynch-window): Add new optional argument,
      call vc-file-clearprops when true.
      (vc-resynch-buffer): Add new optional argument, pass it down.
      (vc-resynch-buffers-in-directory): Likewise.
      
      Improve support for special markup in the VC commit message.
      * vc-mtn.el (vc-mtn-checkin): Support Author: and Date: markup.
      * vc-hg.el (vc-hg-checkin): Add support for Date:.
      * vc-git.el (vc-git-checkin):
      * vc-bzr.el (vc-bzr-checkin): Likewise.
      
      Add support for vc-log-incoming, improve vc-log-outgoing for Git.
      * vc-git.el (vc-git-log-view-mode): Fix font lock for
      incoming/outgoing logs.
      (vc-git-log-outgoing, vc-git-log-incoming): New functions.
      
      * vc-git.el (vc-git-log-outgoing): Use the same format as the
      short log.
      (vc-git-log-incoming): Likewise.  Run "git fetch" before the log
      command
      
      Add bindings for vc-log-incoming and vc-log-outgoing.
      * vc-hooks.el (vc-prefix-map): Add bindings for vc-log-incoming
      and vc-log-outgoing.
      * vc-dir.el (vc-dir-menu-map): Add menu bindings for vc-log-incoming
      and vc-log-outgoing.
      
      Improve state updating for VC tag commands.
      * vc.el (vc-create-tag, vc-retrieve-tag): Call vc-resynch-buffer
      to update the state of all buffers in the directory.
      
      * vc-dir.el (vc-dir): Don't pop-up-windows.  (Bug#6204)
      
      * 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-git.el (vc-git-checkin): 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-bzr.el (vc-bzr-checkin): Use log-edit-extract-headers.
      (vc-bzr-conflicted-files): New function.
      
      * log-edit.el (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-edit-extract-headers): New function to replace it.
      
      * vc-dispatcher.el (vc-finish-logentry): Don't mess so badly with
      the windows/frames.
      
      * vc-bzr.el (vc-bzr-shelve-apply): Don't use *vc-bzr-shelve*.
      
      * vc-dir.el (vc-dir-kill-line): New command.
      (vc-dir-mode-map): Bind it to C-k.
      (vc-dir-headers): Abbreviate the working dir.
      
      * vc-git.el (vc-git-revision-table): Include remote branches.
      
      New VC methods: vc-log-incoming and vc-log-outgoing.
      * vc.el (vc-print-log-setup-buttons, vc-log-internal-common)
      (vc-incoming-outgoing-internal, vc-log-incoming, vc-log-outgoing):
      New functions.
      (vc-print-log-internal): Just call vc-log-internal-common.
      (vc-log-view-type): New permanent local variable.
      
      * vc-hooks.el (vc-menu-map): Bind vc-log-incoming and vc-log-outgoing.
      
      * vc-bzr.el (vc-bzr-log-view-mode): Use vc-log-view-type instead
      of the dynamic bound vc-short-log.
      (vc-bzr-log-incoming, vc-bzr-log-outgoing): New functions.
      
      * vc-git.el (vc-git-log-outgoing): New function.
      (vc-git-log-view-mode): Use vc-log-view-type instead
      of the dynamic bound vc-short-log.
      
      * vc-hg.el (vc-hg-log-view-mode): Use vc-log-view-type instead of
      the dynamic bound vc-short-log.  Highlight the tag.
      (vc-hg-log-incoming, vc-hg-log-outgoing): New functions.
      (vc-hg-outgoing, vc-hg-incoming, vc-hg-outgoing-mode):
      (vc-hg-incoming-mode): Remove.
      (vc-hg-extra-menu-map): Do not bind vc-hg-incoming and vc-hg-outgoing.
      
      Fix default-directory for vc-root-diff.
      * vc.el (vc-root-diff): Bind default-directory to the root
      directory for the diff command.
      
      * vc-hg.el (vc-hg-push, vc-hg-pull): Use `apply' when calling
      `vc-hg-command' with a list of flags.
      
      * vc-bzr.el (vc-bzr-log-edit-mode): Add --fixes support to
      log-edit-before-checkin-process.
      
      * vc.el (vc-modify-change-comment): Pass MODE to vc-start-logentry.
      
      * vc-bzr.el, vc-hg.el (log-edit-mode): Declare.
      
      * vc-dispatcher.el (vc-start-logentry): Doc fix.
      (log-view-process-buffer, log-edit-extra-flags): Declare.
      
      Add special markup processing for commit logs.
      * log-edit.el (log-edit): Add new argument MODE.  Use that mode
      when non-nil instead of the log-view-mode.
      
      * vc.el (vc-default-log-edit-mode): New function.
      
      * vc-dispatcher.el (vc-log-edit): Add a mode argument, pass it to
      log-edit.
      
      Support for shelving snapshots and for showing shelves.
      * vc-bzr.el (vc-bzr-shelve-show, vc-bzr-shelve-show-at-point)
      (vc-bzr-shelve-apply-and-keep-at-point, vc-bzr-shelve-snapshot):
      New functions.
      (vc-bzr-shelve-map, vc-bzr-shelve-menu-map)
      (vc-bzr-extra-menu-map): Map them.
      98cfec0d
  28. 31 Oct, 2010 1 commit