1. 16 Aug, 2010 2 commits
    • Chong Yidong's avatar
      Let all active regions set the primary selection. · 7c23dd44
      Chong Yidong authored
      This includes both temporarily active regions (mouse drag and
      shift-select) and those made with C-SPC and cursor motion.
      
      * lisp/cus-start.el: Change defcustom for select-active-regions.
      
      * lisp/simple.el (deactivate-mark): If select-active-regions is `only',
      only set selection for temporarily active regions.
      
      * src/insdel.c (prepare_to_modify_buffer): Handle `only' value of
      select-active-regions.
      
      * src/keyboard.c (command_loop_1): Avoid setting selection twice,
      since it's done in deactivate-mark as well.
      (Vselect_active_regions): Replace `lazy' value with `only',
      meaning to only set PRIMARY for temporarily active regions.
      7c23dd44
    • Chong Yidong's avatar
      Fix mouse dragging of words and lines (Bug#6840). · 6d3e82d2
      Chong Yidong authored
      * mouse.el (mouse--drag-set-mark-and-point): New function.
      (mouse-drag-track): Use LOCATION arg to push-mark.  Use
      mouse--drag-set-mark-and-point to take click-count into
      consideration when updating point and mark (Bug#6840).
      6d3e82d2
  2. 15 Aug, 2010 1 commit
  3. 14 Aug, 2010 5 commits
  4. 13 Aug, 2010 1 commit
    • Jan D's avatar
      Fix handling of tool-bar-position, also put into default-frame-alist. · 2b4e6277
      Jan D authored
      * lisp/menu-bar.el (menu-bar-set-tool-bar-position): New function.
      (menu-bar-showhide-tool-bar-menu-customize-enable-left)
      (menu-bar-showhide-tool-bar-menu-customize-enable-right)
      (menu-bar-showhide-tool-bar-menu-customize-enable-top)
      (menu-bar-showhide-tool-bar-menu-customize-enable-bottom): Call
      menu-bar-set-tool-bar-position.
      
      * src/frame.h (Qtool_bar_position): Declare.
      
      * src/xfns.c (Fx_create_frame): Call x_default_parameter for
      Qtool_bar_position.
      2b4e6277
  5. 12 Aug, 2010 5 commits
    • Stefan Monnier's avatar
      Introduce a new comment style "c" flag. · c5683ceb
      Stefan Monnier authored
      * src/syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
      (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
      (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
      (syntax_prefix_flag_p): New function.
      (Fstring_to_syntax): Understand new "c" flag.
      (Finternal_describe_syntax_value): Recognize new flag; use the
      SYNTAX_FLAGS_* macros.
      (scan_sexps_forward, Fparse_partial_sexp): Change representation of
      comment style to accomodate the new styles.
      (back_comment, forw_comment, Fforward_comment, scan_lists)
      (scan_sexps_forward): Update code to obey the new comment style flag.
      * src/syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
      * src/casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
      * lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use the new "c"
      comment style.
      * lisp/progmodes/scheme.el (scheme-mode-syntax-table):
      * lisp/emacs-lisp/lisp-mode.el (lisp-mode-syntax-table): Remove spurious
      "b" flag in "14b" syntax.
      
      Fixes: debbugs:6834
      c5683ceb
    • Stefan Monnier's avatar
      Fix last change. · 7e82caa7
      Stefan Monnier authored
      * lisp/progmodes/octave-mod.el (octave-mode-syntax-table):
      Better describe the problem.
      (octave-fill-paragraph): Also update caller.
      (octave-completion-at-point-function): Fix up typo.
      7e82caa7
    • Stefan Monnier's avatar
      Misc code cleanup of octave-mode.el. · c82d5b11
      Stefan Monnier authored
      * lisp/progmodes/octave-mod.el (octave-mode-map): Remove special bindings
      for (un)commenting the region and performing completion.
      (octave-mode-menu): Use standard commands for help and completion.
      (octave-mode-syntax-table): Support %{..%} comments (sort of).
      (octave-mode): Use define-derived-mode.
      Set completion-at-point-functions and don't set columns.
      Don't disable adaptive-fill-regexp.
      (octave-describe-major-mode, octave-comment-region)
      (octave-uncomment-region, octave-comment-indent)
      (octave-indent-for-comment): Remove.
      (octave-indent-calculate): Rename from calculate-octave-indent.
      (octave-indent-line): Update caller.
      (octave-initialize-completions): No need to make an alist.
      (octave-completion-at-point-function): New function.
      (octave-complete-symbol): Use it.
      (octave-insert-defun): Use define-skeleton.
      c82d5b11
    • Stefan Monnier's avatar
      * lisp/progmodes/octave-mod.el (octave-mode-map): Use comment-dwim. · dc94fc85
      Stefan Monnier authored
      (octave-mode): Set comment-add.
      
      Fixes: debbugs:6829
      dc94fc85
    • Antoine Levitt's avatar
      * lisp/cus-edit.el (custom-save-variables, custom-save-faces): Fix up · 61b6abbd
      Antoine Levitt authored
      indentation of inserted comment.
      61b6abbd
  6. 11 Aug, 2010 1 commit
    • Jan D's avatar
      Take colors for region face (selected text) from the Gtk+ theme. · 3a46642b
      Jan D authored
      * lisp/dynamic-setting.el (dynamic-setting-handle-config-changed-event):
      Handle theme-name change.
      
      * lisp/faces.el (region): Add type gtk that uses gtk colors.
      
      * src/gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
      (xg_create_frame_widgets): Connect theme name changes to
      style_changed_cb.
      
      * src/gtkutil.h (xg_check_special_colors): Declare.
      
      * src/xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
      first.
      3a46642b
  7. 10 Aug, 2010 5 commits
  8. 09 Aug, 2010 3 commits
    • Chong Yidong's avatar
      Use version-list-* functions in package.el. · 148cef8e
      Chong Yidong authored
      * emacs-lisp/package-x.el (package-upload-buffer-internal): Use
      version-to-list.
      (package-upload-buffer-internal): Use version-list-<=.
      
      * emacs-lisp/package.el (package-version-split)
      (package--version-first-nonzero, package-version-compare):
      Functions removed.
      (package-directory-list, package-load-all-descriptors)
      (package--built-in, package-activate, define-package)
      (package-installed-p, package-compute-transaction)
      (package-read-all-archive-contents)
      (package--add-to-archive-contents, package-buffer-info)
      (package-tar-file-info, package-list-packages-internal): Use
      version-to-list and version-list-*.
      148cef8e
    • Kenichi Handa's avatar
      Fix typo in lisp/ChangeLog · 231e5e5f
      Kenichi Handa authored
      231e5e5f
    • Kenichi Handa's avatar
  9. 08 Aug, 2010 6 commits
    • Chong Yidong's avatar
    • Juanma Barranquero's avatar
      Fix typos in ChangeLogs. · 8d9e03e4
      Juanma Barranquero authored
      8d9e03e4
    • Chong Yidong's avatar
      Fix 2010-07-03 change to mouse-drag-track. · 7adf5fdc
      Chong Yidong authored
      * mouse.el (mouse-drag-track): Remove accidentally-removed check
      for `double' value of mouse-1-click-follows-link (Bug#6807).
      7adf5fdc
    • Johan Bockgård's avatar
      Fix query-replace-regexp incomplete highlighting (Bug#6808). · e54a1075
      Johan Bockgård authored
      * replace.el (replace-highlight): Bind isearch-forward and
      isearch-error, ensuring that highlighting is updated if the user
      switches the search direction (Bug#6808).
      
      * isearch.el (isearch-lazy-highlight-forward): New var.
      (isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
      (isearch-lazy-highlight-update): Use it.
      e54a1075
    • Ulf Jasper's avatar
      Fixed bug#6766 (icalendar.el) · 81ee9410
      Ulf Jasper authored
      lisp/ChangeLog:
      
      	* calendar/icalendar.el (icalendar-uid-format): Doc fix.
      	(icalendar--split-value): Fixed splitting regexp. (Bug#6766)
      	(icalendar--get-weekday-numbers): New
      	(icalendar--create-uid, icalendar-export-region)
      	(icalendar--parse-summary-and-rest): Code formatting.
      	(icalendar--convert-recurring-to-diary): Handle multiple byday
      	values in weekly rules. (Bug#6766)
      
      test/ChangeLog:
              
      	* icalendar-testsuite.el (icalendar-testsuite-run): Added internal tests.
      	(icalendar-testsuite--trim, icalendar-testsuite--compare-strings)
      	(icalendar-testsuite--run-internal-tests): New.
      	(icalendar-testsuite--test-convert-ordinary-to-ical)
      	(icalendar-testsuite--test-convert-block-to-ical)
      	(icalendar-testsuite--test-convert-anniversary-to-ical)
      	(icalendar-testsuite--test-parse-vtimezone)
      	(icalendar-testsuite--do-test-export): Code formatting.
      	(icalendar-testsuite--test-parse-vtimezone): Doc fix.
      	(icalendar-testsuite--do-test-import)
      	(icalendar-testsuite--do-test-cycle): Use icalendar-testsuite--compare-strings
      	(icalendar-testsuite--run-import-tests): Comment added.
      	(icalendar-testsuite--run-import-tests)
      	(icalendar-testsuite--run-real-world-tests): Fixed expected results.
      81ee9410
    • Jay Belanger's avatar
      calc.el (calc-trail-mode,calc-refresh): Use `face' property to italicize headers. · 2c695727
      Jay Belanger authored
      (calc-highlight-selections-with-faces): New variable.
      (calc-selected-face, calc-nonselected-face): New faces.
      
      calccomp.el (math-comp-highlight-string): Use
      `calc-highlight-selections-with-faces' to determine how to highlight
      subformulas.
      
      calc-sel.el (calc-show-selections): Change message to something
      appropriate. 
      
      calc.texi (Making Selections, Selecting Subformulas)
      (Customizing Calc): Mention how to use faces to emphasize selected
      subformulas.
      2c695727
  10. 07 Aug, 2010 4 commits
    • Michael Mauger's avatar
      * progmodes/sql.el (sql-mode-sqlite-font-lock-keywords): Added · b93d4f22
      Michael Mauger authored
              SQLite 3 keywords, functions and datatypes.
              (sql-interactive-mode): Removed `comint-process-echoes' set to t
              (Bug#6686).
      b93d4f22
    • Chong Yidong's avatar
      Change `select-active-region' mechanics. · 9852377f
      Chong Yidong authored
      Save region text prior to buffer modification.
      Set window selection lazily, during `deactivate-mark' or after each
      command when the region is temporarily active.
      
      * lisp/cus-start.el: Add custom declaration for select-active-regions.
      
      * lisp/mouse.el (mouse-drag-track): Remove hacks to deal with old
      select-active-regions implementation.
      (mouse-yank-at-click): Doc fix.
      
      * lisp/simple.el (select-active-regions): Move to keyboard.c.
      (deactivate-mark): Used saved-region-selection.
      (select-active-region): Function removed.
      (activate-mark, set-mark, push-mark-command)
      (handle-shift-selection): Don't call it.
      (keyboard-quit): Avoid adding the region to the window selection.
      
      * src/insdel.c (prepare_to_modify_buffer): Save active region text to
      Vsaved_region_selection.
      
      * src/keyboard.c (Vselect_active_regions): Move from simple.el.
      (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
      vars.
      (command_loop_1): Set window selection prior to deactivating the
      mark.
      
      * src/xselect.c (QPRIMARY): Move to keyboard.c.
      9852377f
    • Eli Zaretskii's avatar
      simple.el (delete-forward-char): Doc fix. · 4c5130d6
      Eli Zaretskii authored
      4c5130d6
    • Eli Zaretskii's avatar
      Evaluate file-local variables in tutorials. · 822775bf
      Eli Zaretskii authored
       tutorial.el (help-with-tutorial): Hack safe file-local variables
       after reading the tutorial.
      822775bf
  11. 06 Aug, 2010 5 commits
  12. 05 Aug, 2010 2 commits
    • Juanma Barranquero's avatar
      f6b55526
    • Eli Zaretskii's avatar
      Rename src/unexec.c => src/unexcoff.c. · 29cf3e20
      Eli Zaretskii authored
       src/unexcoff.c: Renamed from unexec.c.
       src/deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
       configure.in (UNEXEC_OBJ): Rename unexec.o => unexcoff.o.
       admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
       etc/AUTHORS: Rename unexec.o => unexcoff.o.
       etc/PROBLEMS: Rename unexec.o => unex*.o.
       lisp/emacs-lisp/find-gc.el (find-gc-source-files): Rename
       unexec.c => unexcoff.c.
       lisp/emacs-lisp/authors.el (authors-fixed-entries): Rename
       unexec.c => unexcoff.c.
       msdos/sed1v2.inp (UNEXEC_OBJ): Edit to unexcoff.o, due to renaming of
       unexec.c => unexcoff.c.
      29cf3e20