all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dptd dptd <dptdescribe@gmail.com>
To: emacs-devel@gnu.org
Subject: mark-whole-buffer and unnecessary (point) call
Date: Sat, 28 Jan 2017 11:37:47 +0200	[thread overview]
Message-ID: <BC300764-1EAC-4F22-A538-8AA47D7F9936@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

Hello everyone,
This is my first e-mail to the emacs-devel so I hope my question will not be the stupidest one in this mailing list history. I am an Emacs newbie but I love it. I am also very interested in the lispy languages and this is why I am learning elisp - I want to contribute. I am reading “An Introduction to Programming in Emacs Lisp” and in the section 4.3.1 Body of mark-whole-buffer there is this text:
"I don’t know why the expression in mark-whole-buffer is written (push-mark (point)) and the expression in beginning-of-buffer is written (push-mark). Perhaps whoever wrote the code did not know that the arguments for push-mark are optional and that if push-mark is not passed an argument, the function auto- matically sets mark at the location of point by default.”

I have checked the newest source from the git repo and this (point) call is still there. I removed it, evaluated and checked if the function still works and yes - it works. Is there any reason why this call is still there? I was wondering if I could / should remove it and submit my first change request. However I assume that I do not understand something here because everyone who have read this introduction knows about it.

Thanks in advance!

Best regards,
dptd

[-- Attachment #2: Type: text/html, Size: 1695 bytes --]

             reply	other threads:[~2017-01-28  9:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-28  9:37 dptd dptd [this message]
2017-01-28  9:55 ` mark-whole-buffer and unnecessary (point) call Eli Zaretskii
2017-01-28 10:28   ` Eli Zaretskii
2017-01-28 10:43     ` dptd dptd
2017-01-28 11:37       ` dptd dptd
2017-01-28 13:54         ` Eli Zaretskii

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=BC300764-1EAC-4F22-A538-8AA47D7F9936@gmail.com \
    --to=dptdescribe@gmail.com \
    --cc=emacs-devel@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.