all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: $EDITOR to open at file end?
Date: Mon, 09 Mar 2015 01:11:17 +0100	[thread overview]
Message-ID: <8761abc9ne.fsf@debian.uxu> (raw)
In-Reply-To: mailman.1714.1425857102.31049.help-gnu-emacs@gnu.org

Bob Proulx <bob@proulx.com> writes:

>> emacs +`perl -MPOSIX -le 'print INT_MAX'` FILE
>> which uses data in /usr/include/limits.h.
>
> That just swaps 999999 for a larger value of
> LARGENUMBER. I don't think it intrinsically changes
> the flavor of the issue.

In practice, it is worse because it requires an extra
processes to be launched as well as Perl to be
installed on a POSIX system. No, it is only
"poster politics" - it never feels good to hard code
anything. That's a good gut feeling to have acquired,
but one should be aware when the (most often) healthy
gut feeling crosses the line and gets irrational. On
the third hand, if it bugs you enough, who cares if it
is irrational as long as it works and is interesting
to do. Then what is rational about it is that it works
and is interesting to do and doesn't bug you.

For example, how does this look:

    (setq last-char-english-alphabet "z")
    (setq english-alphabet-number-of-chars 26)

compared to this?

    (setq english-alphabet '("a" "b" "..." "z"))
    (setq english-alphabet-number-of-chars (length english-alphabet))
    (setq last-char-english-alphabet (car (last english-alphabet)))

> Upon reflection I think the +999999 wasn't so bad.
> Although I like the exactness of the solution for
> (goto-char (point-max)). Having implemented that
> already using a helper script I probably won't walk
> away from it.

If the options on both sides of FILE isn't a problem
that is the best solution I can think of.

-- 
underground experts united


      parent reply	other threads:[~2015-03-09  0:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05  7:29 $EDITOR to open at file end? Bob Proulx
2015-03-05  7:42 ` Alexis
2015-03-05  7:59 ` Philipp Stephani
     [not found] ` <mailman.1367.1425541338.31049.help-gnu-emacs@gnu.org>
2015-03-06  0:09   ` Emanuel Berg
2015-03-07  0:48     ` Bob Proulx
2015-03-07  0:57       ` Bob Proulx
2015-03-07  2:17         ` Alexis
2015-03-07 14:33       ` Robert Thorpe
2015-03-09  0:18         ` Bob Proulx
2015-03-09  2:52           ` Robert Thorpe
2015-03-09  5:14             ` Bob Proulx
2015-03-09  5:39               ` Alexis
     [not found]     ` <mailman.1547.1425689344.31049.help-gnu-emacs@gnu.org>
2015-03-07 16:17       ` Emanuel Berg
2015-03-08 23:24         ` Bob Proulx
     [not found]         ` <mailman.1714.1425857102.31049.help-gnu-emacs@gnu.org>
2015-03-09  0:11           ` Emanuel Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761abc9ne.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.