all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* visual-line-mode and line wrapping
@ 2010-05-24 14:09 Leo
  2010-05-24 14:12 ` Lennart Borgman
  2010-05-24 17:34 ` Stefan Monnier
  0 siblings, 2 replies; 36+ messages in thread
From: Leo @ 2010-05-24 14:09 UTC (permalink / raw)
  To: emacs-devel

Hello,

In the discussion of the trashbin feature, visual-line-mode came up. It
seems many of us would like it to be able to wrap lines at a position
other than the window edge.

I wonder if someone has a patch to do this? Thanks. The feature would be
very useful to me at the moment.

Cheers,
Leo




^ permalink raw reply	[flat|nested] 36+ messages in thread
* Re: visual-line-mode and line wrapping
@ 2010-05-25  2:52 MON KEY
  0 siblings, 0 replies; 36+ messages in thread
From: MON KEY @ 2010-05-25  2:52 UTC (permalink / raw)
  To: emacs-devel

> You're preaching to the choir here (why do you think we have an "80
> columns max" limit on C and Elisp code?).

This limit has really been on my mind lately. FTMP I agree with the
rationale, its benefits, and am (in general) a strong advocate.

However, something I find really disconcerting (and biased) is that
there is a fundamental difference between (E)lisp code and C code, and
the 80 col limit is far more C centric. Moreover, the convention is
not particularly friendly to code that employs features from the CL
package. Likewise, in the absence of _real_ namespacing third party
fncns must extend by at least two extra tokens for each def* in order
not to step on Emacs' core fncns. In the aggregate these factors can
make it particularly difficult for third party code to meet with the
80 col rule. Following are examples of moderately sized lambda lists
(with IMHO unreasonably truncated arg names):

A conventional Elisp fncn from Emacs' lisp/* directory:

(defun elisp-fun (arg1 arg2 &optional arg3 &rest arg4)
^^^^^!^^^^^^^^^!^^^^^!^^^^!^^^^^^^^^^^^^^!^^^^^^^^^^^!
     5        15    21   26             41          53

Same Elisp fncn from Emacs' lisp/* directory with CL features:

(defun* elisp-fun (arg1 arg2 &optional (arg3 arg3-dflt) &rest arg4)
^^^^^^!^^^^^^^^^!^^^^^!^^^^!^^^^^^^^^^^^^^^!^^^^^^^^^^!^^^^^^^^^^^!
      6        16    22   27              44         54          66

Same(ish) but w/ CL packages keywords feature:
(defun* elisp-fun (arg1 arg2 &rest arg4 &key arg3 arg3-alt)
^^^^^^!^^^^^^^^^!^^^^^!^^^^!^^^^^^^^^^!^^^^^^^^^!^^^^^^^^^!
      6        16    22   27         38        47        58

User function with four token textual namespace:
(defun usr-elisp-fun (arg1 arg2 &optional arg3 &rest arg4)
^^^^^!^^^^^^^^^^^^^!^^^^^!^^^^!^^^^^^^^^^^^^^!^^^^^^^^^^^!
     5            15    25   30             45          57

It would be an interesting exercise to do a count of the number of defun,
defsubst,, defmacro forms in lisp/* which have their parameter
list split over two or more lines to accommodate the 80 limit.

--
/s_P\



^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2010-06-07 20:34 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-24 14:09 visual-line-mode and line wrapping Leo
2010-05-24 14:12 ` Lennart Borgman
2010-05-24 15:08   ` Leo
2010-05-24 15:29     ` Lennart Borgman
2010-05-24 16:42       ` Leo
2010-05-24 17:41         ` Lennart Borgman
2010-05-24 17:34 ` Stefan Monnier
2010-05-24 19:18   ` Leo
2010-05-24 19:31     ` Chong Yidong
2010-05-24 19:53       ` Leo
2010-05-24 20:33         ` Lennart Borgman
2010-05-24 19:58       ` Lennart Borgman
2010-05-24 20:27         ` Leo
2010-05-24 20:36           ` Lennart Borgman
2010-05-25  1:05         ` Johan Bockgård
2010-05-24 20:26     ` Stefan Monnier
2010-05-24 21:26       ` Lennart Borgman
2010-05-25 12:59         ` Sean Sieger
2010-05-25  5:10       ` Leo
2010-05-25  7:37   ` Miles Bader
2010-05-25 10:05     ` João Távora
2010-05-25 11:11       ` Lennart Borgman
2010-05-25 13:27         ` João Távora
2010-05-25 11:09     ` Lennart Borgman
2010-05-25 14:04     ` Stefan Monnier
2010-05-25 14:18       ` Lennart Borgman
2010-05-25 15:06         ` Drew Adams
2010-05-25 14:49       ` Drew Adams
2010-05-25 16:33       ` Leo
2010-05-25  8:36   ` Uday S Reddy
2010-05-25 11:48     ` Stephen J. Turnbull
2010-05-25 13:16       ` Uday S Reddy
2010-05-25 14:40         ` Drew Adams
2010-06-05  9:21     ` Uday S Reddy
2010-06-07 20:34       ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2010-05-25  2:52 MON KEY

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.