From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: dptd dptd Newsgroups: gmane.emacs.devel Subject: mark-whole-buffer and unnecessary (point) call Date: Sat, 28 Jan 2017 11:37:47 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_8B5337C1-2228-4E3D-955F-81E40F02E197" X-Trace: blaine.gmane.org 1485596296 19655 195.159.176.226 (28 Jan 2017 09:38:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2017 09:38:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 28 10:38:12 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXPSJ-0003yE-Aw for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2017 10:37:59 +0100 Original-Received: from localhost ([::1]:51028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXPSM-0002Sf-R8 for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2017 04:38:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXPSG-0002SY-Rq for emacs-devel@gnu.org; Sat, 28 Jan 2017 04:37:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXPSB-00028n-S2 for emacs-devel@gnu.org; Sat, 28 Jan 2017 04:37:56 -0500 Original-Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:35782) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXPSB-00025o-L6 for emacs-devel@gnu.org; Sat, 28 Jan 2017 04:37:51 -0500 Original-Received: by mail-wm0-x241.google.com with SMTP id d140so64002648wmd.2 for ; Sat, 28 Jan 2017 01:37:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=kNdNAHDGlw7oBxO5J0sdlNITFQp+tNUgIee8+EiIZ+I=; b=mUqVjFFvgVRK6An6u4jIuyHWcJ3XoZkDLVn7IT6JA9D8OsKXKNvgIFmcoP64H5vuF8 bF4BnqIQ+V/XjCgg+JDmRsMHHT9xpHjxjZrS05ZZYeUDLGd/aZVonDnEwbo011WsrCmF 8+iQfOltiQT7aC22Ej6jI0mXp9jkBqjppb3fojwfZgibG50qYNjvJ9rM10utL3ytapAM yVDzFBmSsKIxlaX5q4KgL0j2CHzhniB/OhPfw5bR94qoq5AFHkj4PEgaVBBPqbLFanae Z+Y9t4raFciUn5Mzd8Bcge851oOJ4orwJl51rq9tIlF9SwIjbULbXXyLHg22L3vBXw2e w+sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=kNdNAHDGlw7oBxO5J0sdlNITFQp+tNUgIee8+EiIZ+I=; b=cGdEkXmECS8zur/24UUhMmLVUQGRHE22DhIOH0nBm5BiHePKH7C+iK8KtK1saA2JNH I07hzJVWK7w1aPhE76vV6HtYNOjNnifDgeQ8wdVd+ddCrqXM/V8zYipeY+cYzhYIF4sN cOQy39WJCymLEG3RPEQftTU8CQKpdrvJEBDNZv9ecZra3vkgkQabpZFYSgAEWE4eFjFt L6X1lLUAiCG/+ayU6pEEuTR84wHlyK1O0RGSktPYqgULTV0EBPyDwU3S2h6fai8YmLzs QPNoZQWC61v4uBCX0c9/T1WU7Ns08Nvycrq3DRjWYGSFCpkHcLfJWtx+a0NJUOFYyPlu DuXg== X-Gm-Message-State: AIkVDXJDHeVR7R5xoLHvLvH6ysoIJlDOmBvwRk1ftpwXHYAoxFeSxDFf5AaMzErskpWUpA== X-Received: by 10.223.134.253 with SMTP id 58mr13081854wry.46.1485596268953; Sat, 28 Jan 2017 01:37:48 -0800 (PST) Original-Received: from [192.168.60.140] ([212.50.23.124]) by smtp.gmail.com with ESMTPSA id x25sm12071363wrx.27.2017.01.28.01.37.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jan 2017 01:37:48 -0800 (PST) X-Mailer: Apple Mail (2.3259) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::241 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211678 Archived-At: --Apple-Mail=_8B5337C1-2228-4E3D-955F-81E40F02E197 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 = =E2=80=9CAn Introduction to Programming in Emacs Lisp=E2=80=9D and in = the section 4.3.1 Body of mark-whole-buffer there is this text: "I don=E2=80=99t 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.=E2=80=9D 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= --Apple-Mail=_8B5337C1-2228-4E3D-955F-81E40F02E197 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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 =E2=80=9CAn Introduction to = Programming in Emacs Lisp=E2=80=9D and in the section 4.3.1 Body of = mark-whole-buffer there is this text:
"I don=E2=80=99t 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.=E2=80=9D

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
= --Apple-Mail=_8B5337C1-2228-4E3D-955F-81E40F02E197--