emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ELPA-diffs] /srv/bzr/emacs/elpa r281: * packages/csv-mode/csv-mode.el (


From: Stefan Monnier
Subject: [ELPA-diffs] /srv/bzr/emacs/elpa r281: * packages/csv-mode/csv-mode.el (csv-end-of-field): Don't skip TABs.
Date: Mon, 22 Oct 2012 17:58:24 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 281
committer: Stefan Monnier <address@hidden>
branch nick: elpa
timestamp: Mon 2012-10-22 17:58:24 -0400
message:
  * packages/csv-mode/csv-mode.el (csv-end-of-field): Don't skip TABs.
  (csv--skip-regexp): Rename from csv-skip-regexp.
modified:
  packages/csv-mode/csv-mode.el
=== modified file 'packages/csv-mode/csv-mode.el'
--- a/packages/csv-mode/csv-mode.el     2012-10-10 17:02:39 +0000
+++ b/packages/csv-mode/csv-mode.el     2012-10-22 21:58:24 +0000
@@ -126,7 +126,7 @@
   "Regexp to match a field separator.
 Set by customizing `csv-separators' -- do not set directly!")
 
-(defvar csv-skip-regexp nil
+(defvar csv--skip-regexp nil
   "Regexp used by `skip-chars-forward' etc. to skip fields.
 Set by customizing `csv-separators' -- do not set directly!")
 
@@ -154,7 +154,7 @@
               value)
         (custom-set-default variable value)
         (setq csv-separator-chars (mapcar 'string-to-char value)
-              csv-skip-regexp (apply 'concat "^\n" csv-separators)
+              csv--skip-regexp (apply 'concat "^\n" csv-separators)
               csv-separator-regexp (apply 'concat `("[" ,@value "]"))
               csv-font-lock-keywords
               ;; NB: csv-separator-face variable evaluates to itself.
@@ -597,7 +597,7 @@
   (barf-if-buffer-read-only)
   (csv-sort-fields-1 field beg end
                     (lambda () (csv-sort-skip-fields field) nil)
-                    (lambda () (skip-chars-forward csv-skip-regexp))))
+                    (lambda () (skip-chars-forward csv--skip-regexp))))
 
 (defun csv-sort-numeric-fields (field beg end)
   "Sort lines in region numerically by the ARGth field of each line.
@@ -651,17 +651,17 @@
 
 (defsubst csv-end-of-field ()
   "Skip forward over one field."
-  (skip-syntax-forward " ")
+  (skip-chars-forward " ")
   (if (eq (char-syntax (following-char)) ?\")
       (goto-char (scan-sexps (point) 1)))
-  (skip-chars-forward csv-skip-regexp))
+  (skip-chars-forward csv--skip-regexp))
 
 (defsubst csv-beginning-of-field ()
   "Skip backward over one field."
   (skip-syntax-backward " ")
   (if (eq (char-syntax (preceding-char)) ?\")
       (goto-char (scan-sexps (point) -1)))
-  (skip-chars-backward csv-skip-regexp))
+  (skip-chars-backward csv--skip-regexp))
 
 (defun csv-forward-field (arg)
   "Move forward across one field, cf. `forward-sexp'.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]