1. 15 Dec, 2010 1 commit
  2. 14 Dec, 2010 1 commit
  3. 06 Dec, 2010 1 commit
  4. 03 Dec, 2010 1 commit
  5. 24 Nov, 2010 1 commit
  6. 23 Nov, 2010 1 commit
  7. 21 Nov, 2010 3 commits
  8. 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
  9. 18 Nov, 2010 1 commit
  10. 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
  11. 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
  12. 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
  13. 12 Nov, 2010 1 commit
  14. 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
  15. 08 Nov, 2010 1 commit
  16. 07 Nov, 2010 1 commit
  17. 05 Nov, 2010 1 commit
  18. 03 Nov, 2010 2 commits
  19. 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
  20. 31 Oct, 2010 1 commit
  21. 29 Oct, 2010 1 commit
    • Stefan Monnier's avatar
      SMIE: change indent rules format, improve smie-setup. · c4d17d50
      Stefan Monnier authored
      * lisp/emacs-lisp/smie.el (smie-precs-precedence-table)
      (smie-merge-prec2s, smie-bnf-precedence-table, smie-prec2-levels):
      Mark them pure so the tables gets built at compile time.
      (smie-bnf-precedence-table): Store the closer-alist in the table.
      (smie-prec2-levels): Preserve the closer-alist.
      (smie-blink-matching-open): Be more forgiving in case of indentation.
      (smie-hanging-p): Rename from smie-indent--hanging-p.
      (smie-bolp): Rename from smie-indent--bolp.
      (smie--parent, smie--after): New dynamic vars.
      (smie-parent-p, smie-next-p, smie-prev-p): New funs.
      (smie-indent-rules): Remove.
      (smie-indent--offset-rule): Remove fun.
      (smie-rules-function): New var.
      (smie-indent--rule): New fun.
      (smie-indent--offset, smie-indent-keyword, smie-indent-after-keyword)
      (smie-indent-exps): Use it.
      (smie-setup): Setup paren blinking; add keyword args for token
      functions; extract closer-alist from op-levels.
      (smie-indent-debug-log): Remove var.
      (smie-indent-debug): Remove fun.
      * lisp/progmodes/prolog.el (prolog-smie-indent-rules): Remove.
      (prolog-smie-rules): New fun to replace it.
      (prolog-mode-variables): Simplify.
      * lisp/progmodes/octave-mod.el (octave-smie-closer-alist): Remove, now that
      it's setup automatically.
      (octave-smie-indent-rules): Remove.
      (octave-smie-rules): New fun to replace it.
      (octave-mode): Simplify.
      c4d17d50
  22. 26 Oct, 2010 1 commit
  23. 24 Oct, 2010 1 commit
    • Chong Yidong's avatar
      Merge read-color and facemenu-read-color (Bug#7242). · 9317e499
      Chong Yidong authored
      * lisp/facemenu.el (facemenu-read-color): Alias for read-color.
      (facemenu-set-foreground, facemenu-set-background): Use
      read-color.
      
      * lisp/faces.el (read-color): Use the completion code from
      facemenu-read-color.  Require match in completion.  Doc fix.
      
      * lisp/frame.el (set-background-color, set-foreground-color)
      (set-cursor-color, set-mouse-color, set-border-color): Use
      read-color.
      9317e499
  24. 23 Oct, 2010 2 commits
    • Jan Djärv's avatar
      Mention faceName for Lucid menu/dialog fonts. · a6ac7fc4
      Jan Djärv authored
      a6ac7fc4
    • Glenn Morris's avatar
      Replace digest-doc and sorted-doc C programs with Lisp commands. · 17284e30
      Glenn Morris authored
      * lib-src/digest-doc.c, lib-src/sorted-doc.c: Remove files.
      * lib-src/Makefile.in (UTILITIES): Remove digest-doc and sorted-doc.
      (digest-doc${EXEEXT}, sorted-doc${EXEEXT}): Remove rules.
      * lib-src/makefile.w32-in (ALL): Remove digest-doc and sorted-doc.
      ($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe, sorted-doc, digest-doc)
      ($(BLD)/digest-doc.$(O), $(BLD)/sorted-doc.$(O)): Remove rules.
      (install): Don't install digest-doc.exe or sorted-doc.exe.
      
      * lisp/help-fns.el (doc-file-to-man, doc-file-to-info): New commands.
      
      * doc/lispref/help.texi (Documentation Basics): Remove mentions of
      digest-doc and sorted-doc.
      
      * INSTALL, nt/README, nt/README.W32: Do not mention digest-doc and sorted-doc.
      
      * etc/NEWS: Mention this change.
      17284e30
  25. 19 Oct, 2010 1 commit
  26. 16 Oct, 2010 1 commit
    • Chong Yidong's avatar
      Move built-in theme directory to etc/. · 782b5e8d
      Chong Yidong authored
      * custom.el: Custom themes no longer use load-path.
      (custom-theme-load-path): New option.  Change built-in theme
      directory to etc/.
      (custom-enabled-themes): Add custom-theme-load-path dependency.
      (custom-theme--load-path): New function.
      (load-theme, custom-available-themes): Use it.
      
      * cus-theme.el (describe-theme-1): Use custom-theme--load-path.
      (customize-themes): Link to custom-theme-load-path variable.
      782b5e8d
  27. 15 Oct, 2010 3 commits
  28. 13 Oct, 2010 1 commit
    • Juanma Barranquero's avatar
      Rename `image-library-alist' to `dynamic-library-alist'. · 2e288d54
      Juanma Barranquero authored
      * etc/NEWS: Mention `dynamic-library-alist'.
      
      * lisp/image.el (image-library-alist): Declare as obsolete alias.
        (image-type-available-p): Use `dynamic-library-alist'.
      
      * lisp/term/w32-win.el (dynamic-library-alist):
        Use instead of `image-library-alist'.
      
      * nt/INSTALL: Refer to `dynamic-library-alist'.
      
      * src/image.c (Vimage_library_alist)
        (syms_of_image) <image-library-alist>: Move to src/emacs.c and rename.
        (lookup_image_type): Use Vdynamic_library_alist.
        (Finit_image_library): Doc fix.
      
      * src/emacs.c (Vdynamic_library_alist)
        (syms_of_emacs) <dynamic-library-alist>: Move from src/image.c and rename.
        Doc fix.
      
      * src/lisp.h (Vdynamic_library_alist): Declare extern.
      2e288d54